File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Accessing an uploaded file's stream directly

 
Ketan KC Chachad
Ranch Hand
Posts: 77
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
Don't get me started about those stupid light bulbs.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic