thaihv wrote:
Thank Jonas
As i said i am very new to palm OS. I dont know even if what tools is used
to embed the image into PDB file (this file in PC, not in handhelds),
too.Fisrt and foremost i want somebody in this forum could tell me how the
image jpg is embedded in the PDb file (how to read it).
I used Google to download an example (jpegsample) using 3rd party jpeg
library. This example is created in Code Warrior 9.0. It works well. Really
sorry but I cant use a different image format.
All I can tell you is how Zire71 stores the photos captured in its camera. I creates a DB per picture. Then it divides the file among records. Maybe because there is some limitation in a record size... it's my best guess. The first bytes in each records are the size of the record, in bytes. Don't remember exactly if it uses 2 or 4 bytes to store this size. And that's it. I did a program that sends a JPG file to a ftp server, all I had to do was to open the records and send raw data (except to the first bytes).
Again, I'm not sure if other applications also store JPG files this way.


        HTH,
        Luciano


-- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/

Reply via email to