New Message on dotNET User Group Hyd

Validation for any corrupted file before uploading to an application

Reply
  Reply to Sender   Recommend Message 2 in Discussion
From: Srinivas_MCP

Hi Sunitha,
 
 There is no direct solution for your scenario. But we can do it in work around process.
While uploading the file, we know the file name, path and  extension (say .doc). Write seperate method such that if you pass the same file details it needs to check the file extension and try to open the same file with the related object (or some other way). If it opens then close it immediately, so we had known it is correct file if not that is corrupted file.
if it is corrupted you obviously gives a message " File is Corrupted".
This is a work around solution, for this you need to have seperate module to be written to check for file which is correct or corrupted one.
 
Let me know if you have any further information. Once you done with your task plz let me know if have you used any other logic for this scenario.
 
Regards,
Srinivasa Rao G
Sr. Software Engineer

View other groups in this category.


Also on MSN:
Start Chatting | Listen to Music | House & Home | Try Online Dating | Daily Horoscopes

To stop getting this e-mail, or change how often it arrives, go to your E-mail Settings.

Need help? If you've forgotten your password, please go to Passport Member Services.
For other questions or feedback, go to our Contact Us page.

If you do not want to receive future e-mail from this MSN group, or if you received this message by mistake, please click the "Remove" link below. On the pre-addressed e-mail message that opens, simply click "Send". Your e-mail address will be deleted from this group's mailing list.
Remove my e-mail address from dotNET User Group Hyd.

Reply via email to