File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Servlets and the fly likes upload image using ServletInputStream Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "upload image using ServletInputStream" Watch "upload image using ServletInputStream" New topic
Author

upload image using ServletInputStream

Abhishek Reddy
Ranch Hand

Joined: Mar 28, 2006
Posts: 259
This is what i have done...through this method i can able to upload text,pdf files successfully...but iam unable to upload image files, can anyone let me know where i went wrong..



Note: I just want to use only ServletInputStream...

thanks in advance


Abhishek
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60782
    
  65

I see nowhere where you are parsing the multi-part request.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: upload image using ServletInputStream
 
Similar Threads
Soap & attachments: encoded or literal??
HTTP Status 404 - Servlet is not available
org.apache.jasper.JasperException: java.lang.ArrayIndexOutOfBoundsException: 8
still running the old servlet
Hello world ejb3 problem