Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Upload and Resize Advice

 
Oliver Moore
Ranch Hand
Posts: 44
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,
I've written some code based on the struts upload example to upload an image, and then resize it. Unfortunately, to do this I first have to write the file to disk, then access it again to resize it. It'd be really nice to do this all in one action. I've posted my code below, if anyone has any suggestions, they'd be extremely helpful.
The main problem is that I can't use ImageIO.read on a FormFile object to create the BufferedImage, but can't get hold of the file from the jsp using a File object...

Regards,
Ols
 
Oliver Moore
Ranch Hand
Posts: 44
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
My new solution...
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!