File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Struts and the fly likes Struts File Upload Problem - File is written but empty 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 » Frameworks » Struts
Bookmark "Struts File Upload Problem - File is written but empty" Watch "Struts File Upload Problem - File is written but empty" New topic
Author

Struts File Upload Problem - File is written but empty

Timothy Sam
Ranch Hand

Joined: Sep 18, 2005
Posts: 746
Hi guys, I'm trying to upload images through my action class. I'm quite sure the image is cached in the server memory but when I output to a file, the file is created but empty... Here is my servlet code...





I hope you could help me guys... Kinda feeling tired now... Thanks!


SCJP 1.5
http://devpinoy.org/blogs/lamia/ - http://everypesocounts.com/
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Struts File Upload Problem - File is written but empty
 
Similar Threads
Unable to create StAX reader or writer
Displaying file content in a jsp page
Upload and Resize Advice
struts, where files are uploaded ??
Where should I perform validation with database connectivity?