Discussion Board

Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    Sep 2011

    java.io.EOFException while reading PNG 8 bit in J2ME

    Hi All,

    I am getting following exception while trying to render to 8bit PNG image.

    I am using the code:- backgroundImage = Image.createImage("/res/background.png");

    at javax.imageio.stream.ImageInputStreamImpl.readFully(Unknown Source)
    at java.io.DataInputStream.readUTF(Unknown Source)
    at javax.imageio.stream.ImageInputStreamImpl.readUTF(Unknown Source)
    at com.sun.kvem.png.PNGImageReader.parse_iTXt_chunk(Unknown Source)
    at com.sun.kvem.png.PNGImageReader.readMetadata(Unknown Source)
    at com.sun.kvem.png.PNGImageReader.readImage(Unknown Source)
    at com.sun.kvem.png.PNGImageReader.read(Unknown Source)
    at com.sun.kvem.midp.GraphicsBridge.loadImage(Unknown Source)

    but when i use same iamge in PNG 24bit , it works perfectly. But I want to use 8 bit for optimization purposes.

  2. #2
    Nokia Developer Expert
    Join Date
    Aug 2007

    Re: java.io.EOFException while reading PNG 8 bit in J2ME

    Hello NishantP007,

    and welcome to Nokia Developer Discussion Boards!

    It seems like a support issue, that is, it could be that the 8 bit format is not supported in your development setup. However to ensure, could you possibly provide information on the setup as follows:

    -are you using some Nokia device or SDK emulator which reproduce the described issue? If yes, which one?

    [URL="http://library.forum.nokia.com/java"][B] >>> Java Developer's Library <<<[/B][/URL]
    [URL="https://www.developer.nokia.com/Resources/Support/Technical_support.xhtml"] [B]>>> Technical Support for Java ME development <<<[/B][/URL]
    [URL="https://publish.ovi.com/info/"][B]>>> Nokia Publish: reach millions of Nokia users worldwide through Nokia Store <<<[/B][/URL]

Similar Threads

  1. EOFException while reading the openInputStream : SocketConnection
    By jithesh@axxonet in forum Mobile Java Tools & SDKs
    Replies: 4
    Last Post: 2010-08-17, 11:38
  2. java.io.eofexception session failed
    By rj12info in forum Mobile Java Tools & SDKs
    Replies: 0
    Last Post: 2010-07-16, 08:45
  3. J2me MIDlet to Servlet HttpPost connection Exception java.io.EOFException
    By sumanbera in forum Mobile Java Tools & SDKs
    Replies: 5
    Last Post: 2008-01-11, 12:29
  4. Nokia N95 - java socket connection problem EOFException
    By chris.gr in forum Mobile Java Networking & Messaging & Security
    Replies: 2
    Last Post: 2007-11-23, 11:40
  5. Can anyone help me with this EOFException?
    By chizuoka in forum Mobile Java General
    Replies: 1
    Last Post: 2003-06-05, 13:40

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts