views:

75

answers:

1

I did read the following posts:

  1. http://stackoverflow.com/questions/1048330/pause-resume-upload-in-c
  2. http://stackoverflow.com/questions/1830130/resume-uploads-using-http

But didn't got a perfect solution to my problem.

  1. In the above posts, one of the answers says "client and server needs to identify the file some how i suggest the use of a Guid so the server knows what file to append the extra data too." Request you to plz visit the first link of the aobve and find that answer. This answer is all about streaming. Can someone plz provide links using which I can build such kind of code?

  2. In these posts one of the answer said "you can send several small file pieces and rebuild them server side"...HOW?

  3. Can't I use something like checksum etc to detect how much part is uploaded and how much more needs to be and append it to that file? If yes, how?

+2  A: 
  1. Streams are a fairly fundemental concept in working with files on the .NET platform (as it is in Java, C and other languages). You should start by reading about them and how to use them. See the Stream class on MSDN.

  2. HOW? By using streaming - you stream parts of the file, in small chunks (using an offset into the file and the size of chunk). Again, see Stream documentation.

  3. You could, but checksums of different files may be the same - with a GUID the chance of a collision is pretty small compared to checksums.

Oded
+1 For answering all the questions...But could u plz elaborate more about the (3) point. How can I achieve my requirements using GUID method, links to code etc?
Manish