i was using the following code which was posted by Sun on one of their article where u can select the file and export it to differnet formats.
the link to the article is
http://java.sun.com/developer/technicalArticles/Media/AdvancedImage/index.html here is the code
String name = prompt.getText(); //The name and path of the tif image
File file = new File(name);
if (file.exists()) {
BufferedImage image =
ImageIO.read(file.toURL());
as soon as it comes to the above line it throws
java.lang.OutOfMemoryError
Any help.
Rashid