• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Jeanne Boyarsky
  • Ron McLeod
Sheriffs:
  • Paul Clapham
  • Liutauras Vilda
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

image deconding problem

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
It's fun to be me, and still legal in 9 states! Wanna see my tiny ad?
Smokeless wood heat with a rocket mass heater
https://woodheat.net
reply
    Bookmark Topic Watch Topic
  • New Topic