Discussion Board

Results 1 to 1 of 1
  1. #1
    Registered User
    Join Date
    Jun 2010

    Problems with loading part of JPEG files from webcam


    I'm developing an application which downloads JPEG pictures via sockets that come from an Internet camera. I'm testing it on Nokia N95 8GB (S60v3) and Samsung i8910 (S60v5).
    I'm having troubles with loading big part of JPEG them. Some of them load fine and some of them give Exception (bad image format) on line:
    lastImage = Image.createImage(buffer.buf[slot], 0, buffer.len[slot]);
    where buffer.buf[slot] is a byte array and buffer.len[slot] is length of the JPEG data in this array (buffers are bigger than images).

    The exceptions are not thrown and all JPEG files load ok on the Sun's WTK emulator. I checked the data that are received by the phone by saving them to files with FileConnection API and the erroneous ones are displayed fine e.g. by the Resco Photo Viewer on the phone or by any PC app on Windows, but are not displayed by the S60 gallery.

    Here are links to example good and bad image:
    Good one
    Bad one

    I suppose it's some bug in Symbian JPEG loading lib, but is there any work-around for this? Did anybody experience such issue? Can it be fixed by e.g. changing some bytes in the header? Are there any JPEG gurus here that know exactly what bytes in this JPEG file are not tolerated by the phone?
    Last edited by mastakrishna; 2010-07-06 at 18:45.

Similar Threads

  1. Select and save part of a jpeg picture
    By mcgs60 in forum Symbian
    Replies: 4
    Last Post: 2009-06-05, 15:35
  2. Problems showing jpeg-part in a MMS-file in a 7210 simulator
    By a0100025 in forum General Messaging
    Replies: 3
    Last Post: 2003-07-13, 13:31
  3. Problems loading files
    By ch1b in forum Mobile Java General
    Replies: 0
    Last Post: 2003-03-13, 10:48
  4. Problems loading images from files
    By epelde in forum Mobile Java General
    Replies: 3
    Last Post: 2003-03-12, 08:58
  5. Problems loading ott files...
    By dwneonstar in forum Mobile Java General
    Replies: 1
    Last Post: 2003-02-17, 21:31

Posting Permissions

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