tags:

views:

49

answers:

2

I have made a upload page to upload dll to server, many of the times the dll gets corrupt on upload. How do I detect that the file uploaded is corrupt or not in asp.net?

+1  A: 

There's no way to detect a corruption without something else as a reference (eg, MD5 sum). Any file can contain any data, so simply inspecting a file without any semantics at all won't tell you anything.

Andrew
A: 

Is it only dll files that get corrupted? Not sure why this would be the case, but zipping them might help? You would need to create some kind of late binding test method or something to test the dll.

Mark Redman