I want to read the images saved in the device and display on canvas of my application.
I am able to read the image stream using fileconnection api.
I could suceffully create the connection, read the stream and also the file size.
But when I try to create image using Image.createImage(InputStream is) or createImage(bytearray,offset,size)
methods, I am facing exceptions. (out of memory,IOException,IlegalArgumentException).
The problem is with the image sizes.
Did any one face such problems?
I would be happy if anyone has solutions for this problem..
Waiting for the replies.