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 Java 8 in Action this week in the Java 8 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: 39575
What does "sending a file" mean - uploading via HTTP? And what is "some error"? TellTheDetails

Ping & DNS - updated with new look and Ping home screen widget
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: 9280

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