It's strange the way Palm desktop  works.. sometimes it put the photos into "My Images" folder, sometimes not.
But it puts the photos in pdb format in other backup folder. Looking for a solution I opened the pdb photo and the foto in jpg format in a Hex editor and started compare... Then I found a way to convert them.
 
Converting that PDB file to JPG:
 
*If you use a hex editor you can see that the firsts bytes are the picture name in the photolib.
 
From the start delete all bytes up to find the sequence:
 
0x44 0x42 0x4C 0x4B 0x00 0x00
 
delete all these bytes and delete the two next bytes too.
 
Now, all others bytes must be in the file, except some some sequences you'll find in the
middle..
 
Find again other sequences (equal)
 
0x44 0x42 0x4C 0x4B 0x00 0x00
and again delete the two next bytes.

Save the edited file with .jpg and you can see the image!!
 
 
Daniel

 
2006/8/9, Eric Lyons <[EMAIL PROTECTED]>:
Daniel,

First, DmWrite the photo data into your own database/record scheme on the
handheld.  This scheme will have to split photos larger than 64K in length
into multiple records.  The maximum length of a Palm OS database record is
64K.

Second, write a conduit to read data from this scheme, reconstruct the photo
data from the multiple records and write the JPG to the desktop.

We wanted to avoid this work in our application.  We wrote the photos to the
expansion card and read them using the Virtual File System API in the
conduit.  We avoided the custom multiple record issue that way.

An alternative may be adding the photo to a "photo album" using
PalmPhotoAddImageV2, allowing the Media conduit to upload the image from the
album to the desktop.  You fish out that photo from whatever the Palm
Desktop stores photos.  Of course, this solution is subject to Palm's whim
of where photos are stored in the Media conduit in future releases....

Eric Lyons




"Daniel Brocco" < [EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
After hotsync the pictures are put into a folder in pdb file format...
How can i convert that pdb photo file from Palm to .jpg file?
I need a way convert using my hotsync conduit..

Daniel



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

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

Reply via email to