aspose file tools*
The moose likes Servlets and the fly likes sending a file Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "sending a file" Watch "sending a file" New topic
Author

sending a file

karimkhan pathan
Ranch Hand

Joined: Jul 14, 2008
Posts: 86
Hi,

What happens when I'm trying to send a file in a servlet ,suddenly some error occurs like app server crash ..
What happens to the upload ..


karim
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 42286
    
  64
What does "sending a file" mean - uploading via HTTP? And what is "some error"? TellTheDetails


Ping & DNS - my free Android networking tools app
karimkhan pathan
Ranch Hand

Joined: Jul 14, 2008
Posts: 86
yes uploading via HTTP ..
sorry for not providing details ..
Ankit Garg
Sheriff

Joined: Aug 03, 2008
Posts: 9305
    
  17

karimkhan pathan wrote:suddenly some error occurs like app server crash

If the server crashes, the upload will stop. Your question is still not very clear because "some error" is quite a broad range...


SCJP 6 | SCWCD 5 | Javaranch SCJP FAQ | SCWCD Links
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

It also depends on how the server is handling the upload; you might get a partial file, you might get nothing.
 
 
subject: sending a file