开发者

Resume in upload file control

I did read the following posts:

  1. Pause/Resume Upload in C#
  2. 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开发者_如何学Python is uploaded and how much more needs to be and append it to that file? If yes, how?


  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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜