Click here to Skip to main content
Rate this: bad
Please Sign up or sign in to vote.
See more: VB.NET
dear all,

i have developed window application to upload files through http.
now my doubt is if connection failure occurs during sending files what happens?is it possible to send the remaining after connection failure through http?
please clear my doubts.thanks in advance.
Posted 14-Dec-12 1:16am

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

It is not possible. The reason behind this is that http is a stateless protocol. When we send any request over http it creates a temporary session & maintain state for that request only. Once connection with server break, all the information on server is lost regarding state. The developer has to manually manage the state.

In this case when you are sending a file, the file uploaded in packets & server keeps it in memory till complete file is not uploaded. After receving If connection break, the server release memory & anything uploaded will be lost.
It is mandatory to upload once again.
I hope this would answer your query. Let me know if you need more clarity on this.
jai_mca at 15-Dec-12 0:50am
Thanks d2niraj..while sending file conection disconnected.half of the file sent.if we connect again the remaining file send or it will start from the begining?
d2niraj at 17-Dec-12 5:17am
if disconnected & you re-upload the file.. It will start again. Nothing would be retained between different sessions
jai_mca at 17-Dec-12 6:50am
thanks dear..

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 CHill60 365
1 Sergey Alexandrovich Kryukov 245
2 Peter Leow 180
3 CPallini 150
4 Zoltán Zörgő 150
0 Sergey Alexandrovich Kryukov 9,208
1 OriginalGriff 6,796
2 Peter Leow 4,417
3 Zoltán Zörgő 3,849
4 CHill60 2,702

Advertise | Privacy | Mobile
Web01 | 2.8.150128.1 | Last Updated 14 Dec 2012
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100