I have a web-based application in which user can view his respective reports in PDF format. And after reviewing he/she can stamp those reports. Stamp is a PDF feature i have used a separate API for stamping those reports.
Now, My problem starts with stamping the reports. Actually, after reviewing report User submits any stamp he needs to embose on report. My application then download PDF report from report server to application server via FTP.
After successfully downloading the report it stamps it and again upload the report from application server to report server.
Now, when user submits the stamp within a 1 minute of review, my application wont be able to download the report from report server. As it gives ACCESS is Denied. But if user waits for more then 1 minute, then my applciation successfully downloads the report from report server to application server and process it appropriately.
I am truly embarassed with such FTP annoying issue.
Please help me out. As you guys always do.