jQuery in Action, 3rd edition
The moose likes Servlets and the fly likes Accessing an uploaded file's stream directly Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "Accessing an uploaded file Watch "Accessing an uploaded file New topic

Accessing an uploaded file's stream directly

Ketan KC Chachad
Ranch Hand

Joined: Nov 23, 2003
Posts: 77

I want to know if there is any method for accessing a file uploaded in a JSP and sent to a servlet in an HttpResponse object. I have seen the code using the org.apache.commons.fileupload.* package classes.

My problem is that using the org.apache.commons.fileupload.FileItemFactory or org.apache.commons.fileupload.FileItem object, the uploaded file gets temporarily stored onto the disk. Is there any other method by which I can access the file stream from the HttpResponse object directly?

Regards,<br />Ketan KC Chachad
I agree. Here's the link: http://aspose.com/file-tools
subject: Accessing an uploaded file's stream directly
It's not a secret anymore!