This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
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


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
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: 60739
    
  65

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


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