how to determine the checksum for Remote file
HI,
My progarm is for uploding and downloading of the files.
Now before downloading i want to check the checksum of the remote file , if it is same, then will allow to download....
Actually problem occurs when uploading and downloading of the same file takes place at the same time.
Any suggestions would be appreciated.
systa,
I'm not clear on what you're after.
I think you want to
1. upload a file from the client to server
2. compare the checksum of the original file on the client with the one on the server
3. serversCopy.downloadable = (originalFile.checksum == serversCopy.checksum)
I think the hard part will be calculating the MD5 of the original file on the client.
Are you writing the client, the server, or both? What kind of client? fat-client, applet, or webapp?
keith.
Thanks for the reply,
Let me clear the prob i am facing.
If i am uploading a big file, definately it will take some time to upload. while uploading is going, if some other client try to download the same file which is still uploding on the server then problem which i am facing is nt who downlaoads the half uploaded file gets currupted after downloaded.
This is what i want to restrict being a developer.