File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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 Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "sending a file" Watch "sending a file" New topic

sending a file

karimkhan pathan
Ranch Hand

Joined: Jul 14, 2008
Posts: 86

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 ..

Ulf Dittmer

Joined: Mar 22, 2005
Posts: 41155
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

Joined: Aug 03, 2008
Posts: 9291

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

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
Similar Threads
Out of memory error when opening an XML of size 18 MB
jsp page appears in xml tree format. how can i fix this?
Sun J2EE RI 1.4 deployment problem.
Download the .lzh file with prompting file save dialog