Resizing Images in fly (while downloading)

I have a program which downloads images in to File System and show it to the user, like an online album.The images are downloaded in multipart.Before showing the full image we first show the album (thumbnails).

The problem we are facing is that the images downloaded are of very large byte length.To create thumnail of every images , we first create the image and then manipulate the pixels of the image using getRGB () to resize.

But if the image is of larger byte lenght holding that much array or image crash the phone(Motorola V3i , )

Do any one know about any reference we can look so that we can create the thumnail image from the byte array while it is been downloaded ?

cheers

Abhijith

[731 byte] By [abhijithvra] at [2007-11-26 18:24:22]
# 1
You should resize your images on the server, so the phones will receive a small, fitting image.This is not only faster, it also takes up far less data.
deepspacea at 2007-7-9 5:58:26 > top of Java-index,Java Mobility Forums,Java ME Technologies...
# 2

This option is already there.The problem comes when we are loading images from phone gallery,which were taken using device's native camera.

When we create image for the thumnail creation the app crashes or shows out of memory.We are forced to show a message to the use that , the image is large and can not be shown into display.

abhijithvra at 2007-7-9 5:58:26 > top of Java-index,Java Mobility Forums,Java ME Technologies...
# 3
see http://developers.sun.com/techtopics/mobility/reference/techart/design_guidelines/image_resizing.html
junaid-shabbira at 2007-7-9 5:58:26 > top of Java-index,Java Mobility Forums,Java ME Technologies...