How to check for corrupted downloaded file?

  • Thread starter Thread starter Polaris
  • Start date Start date
P

Polaris

Hi :

Is there a way (programingly) to validate a file to make sure it is not
corrupted?

Thanks in Advance!

Polaris
 
Polaris said:
Hi :

Is there a way (programingly) to validate a file to make sure it is not
corrupted?

Thanks in Advance!

Polaris
Of course there is. Many ways in fact. But only if the provider of the file
is cooperating. One of the most common ways is to compare the MD5 hash
values (go to Google and ask it to "define: MD5") of the sent and received
files. Additionally if the file in question is a ZIP archive it will be
checked for corruption before the contents are extracted -- but this is less
robust that using MD5.
--
John McGaw
[Knoxville, TN, USA]

Return address will not work. Please
reply in group or through my website:
http://johnmcgaw.com
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top