Re: not quite struts: handling Images

2004-07-27 Thread Koon Yue Lam
Hi all ! I have similar problem to ron1 and these mails really help ! However if I want to extract the exif metadata of JPEG, can it be done in Java without third party component? Regards - To unsubscribe, e-mail: [EMAIL PROTECTE

Re: not quite struts: handling Images

2004-07-27 Thread Kris Schneider
One thing to keep in mind with ImageIO and a long-running process, like an app server, is its potential use of a disk-based cache. You may end up with lots of temporary files that will only be removed if the VM exits normally. See: http://java.sun.com/j2se/1.4.2/docs/api/java/io/File.html#deleteOn

Re: not quite struts: handling Images

2004-07-27 Thread Mark Lowe
Not sure about the resize and save (3-4) but the rest i use for ensuring users dont upload any old sizes.. java.io.ByteArrayInputStream; java.awt.image.BufferedImage; javax.imageio.ImageIO; byte[] image = form.getImage().getFileData(); ByteArrayInputStream stream = new ByteArrayInputStream(image