Skip to main content

Exception when dragging Applet out of browser

No replies
jimaltio
Offline
Joined: 2008-03-13
Points: 0

I have been trying out the cross-domain access feature of the Update 10 plugin, which works fine and I can download images into the Applet directly from Flickr. I have noticed that if I drag the Applet out of the browser before the images have finished downloading though I get the Exception below:

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.(Unknown Source)
at com.sun.imageio.spi.InputStreamImageInputStreamSpi.createInputStreamInstance(Unknown Source)
at javax.imageio.ImageIO.createImageInputStream(Unknown Source)
at javax.imageio.ImageIO.read(Unknown Source)
at com.altio.client.ui.ImageManagerImpl$LoadImageLater.run(ImageManagerImpl.java:1109)
at com.altio.client.RunQueueThread.run(RunQueueThread.java:81)

So I guess that ImageIO is trying to write a local temp file for the image when it has been dragged out of the browser, but even though it is outside of the browser it is still an Applet at that point, and so doesn'y have access to the local drive.