Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
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
Author

Accessing an uploaded file's stream directly

Ketan KC Chachad
Ranch Hand

Joined: Nov 23, 2003
Posts: 76
Hi,

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
 
wood burning stoves
 
subject: Accessing an uploaded file's stream directly
 
Similar Threads
Save File on Client Machine
Doubt
Error occured while trying to read the data from the HTTPResponse
Doubt
servlet redirection