[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[news.eclipse.platform.swt] Conversion: from "Image" to "File"

Hello,
I'm using swt libraries to handle images, and I need to convert an Image 
into a File, and viceversa.
I could convert a file into an image :
Image img = new Image(null,file.getAbsolutePath());
but I sometimes get java.lang.OutofMemory exception, when the image is 
really big.

I also need to do the viceversa, and I have NO clue how to convert an image 
into a file. I mean I know you can do it using an ImageLoader and saving it, 
but if possible, I'd like not to save it on hard disk.
Any hints?
Thanks a lot,


Larissa