Re: Unable to create temporary file ImageIO.read
phil89 wrote:
Hi
I have following error messgz
http://192.168.17.2:80/infodev/ima-cli/horloge2%20avec%20un%20nom%20b...
Unable to create temporary file
java.lang.SecurityException: Unable to create temporary file
at java.io.File.checkAndCreate(Unknown Source)
at java.io.File.createTempFile(Unknown Source)
at javax.imageio.stream.FileCacheImageInputStream.<init>(Unknown
Source)
at
com.sun.imageio.spi.InputStreamImageInputStreamSpi.createInputStreamInstanc??e(Unknown
Source)
at javax.imageio.ImageIO.createImageInputStream(Unknown Source)
at javax.imageio.ImageIO.read(Unknown Source)
My Image is drawing into an JSCROLLEPANE and juste before i have
resize it and i need to change visible parameter to show my scollbar
this.setPreferredSize(otmpfond.getScrollSize());
this.setVisible(false);
this.setVisible(true);
Regards
Philippe
try putting
javax.imageio.ImageIO.setUseCache(false);
before you read the image.
--
Daniel Pitts' Tech Blog: <http://virtualinfinity.net/wordpress/>