I am having a problem in creating an image by using createImage() method when trying to load large files.
FileConnection fc = (FileConnection) Connector.open("file:///" + path + "/",Connector.READ);
InputStream fis = (InputStream) fc.openInputStream();
image = Image.createImage(fis); // I got the out of memory exception here.
Are there any ways to resize the image from the stream first before using createImage()?