I'm hoping someone can give me some ideas here. My boss approached me yesterday with an interesting problem. A product we're building for a client as a package of servlets and JSP's is going to involve uploading graphics, but the graphics need to be resized, on upload, to a standard size for use in a template. Is there anyway to accomplish this in the servlet when it's uploaded? We're not talking something on the output (though I had suggested to her to simply use image-size tags on the JSP page when it is output) but a permanent change to the image as it's uploaded. Thanks! ------------------ Theodore Jonathan Casser Sun Certified Programmer for the Java2 Platform
Theodore Jonathan Casser
SCJP/SCSNI/SCBCD/SCWCD/SCDJWS/SCMAD/SCEA/MCTS/MCPD... and so many more letters than you can shake a stick at!
David Freels
Ranch Hand
Joined: Feb 01, 2001
Posts: 102
posted
0
Try scaling the image and writing it to file. Image has a getScaledInstance method available. David Sun Certified Programmer for the Java2 Platform