This week's giveaway is in the EJB and other Java EE Technologies forum.
We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line!
See this thread for details.
The moose likes Java Micro Edition and the fly likes image deconding problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Mobile » Java Micro Edition
Bookmark "image deconding problem" Watch "image deconding problem" New topic
Author

image deconding problem

Dave Dearma
Greenhorn

Joined: Jun 23, 2004
Posts: 1
Hi everyone,

So the problem I am having is decoding a png file when I run my app on my palm device. The code I am having problems with is:
try {
map = Image.createImage("/thirdFloor.png");
}
catch (IOException e) {
throw new RuntimeException("Unble to load image:" + e);
}

I am developing in eclipse using the eclipseme plugin to develope using j2me. So I run my program and using the defaultColorPhone emulator the image loads and displays fine. However, after I use the PRC conversion tool to create my prc and I run the app on my simulator and actual palm decive I get the following error:

Unable to load image:java.io.IOException ata could not be decoded

Anyone have any suggestions? I am completely stumped

Cheers,
Dave
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: image deconding problem
 
Similar Threads
is Palm v series PDA Supports PIM optional package or not?
unable to test midp on Palm emulator need help
images in palm
is possible to add Image or Image item ?
not able to load .png image file