This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread for details.
The moose likes Java Micro Edition and the fly likes how to get image from java to j2me Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Mobile » Java Micro Edition
Reply Bookmark "how to get image from java to j2me" Watch "how to get image from java to j2me" New topic
Author

how to get image from java to j2me

pradeepu nair
Greenhorn

Joined: Feb 25, 2006
Posts: 3
friends please help me with this problem
i connected a j2me application with a jdbc application...it retreives an image and sends it as bytes to the j2me application but the j2me application displays an error message saying
java.lang.error ut of memory
what shall i do?
Rashid Mayes
Ranch Hand

Joined: Jan 11, 2006
Posts: 160
Indeed you may be downloading an image that is too large for the device. Do you know the size of the image that your are downloading?

Try sending the width and height of the display to the server when requesting the image. You could the scale the image according to the dimensions on the server and send back a much smaller file.


Rashid Mayes
http://www.hostj2me.com/ - http://www.worlddeveloper.org/
pradeepu nair
Greenhorn

Joined: Feb 25, 2006
Posts: 3
thnx i got it..
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: how to get image from java to j2me
 
Similar Threads
Downloading an Image from servlet
cropping image in servlet
J2me Application Icon and title bar ImageIcon
Converting Images to Bytes in a J2ME
printing api for j2me application