Jan,

Let me rephrase.  :)

Palm.* has historically discouraged bypassing the APIs and reading and 
writing its data structures directly.  That's why they provide APIs.  Their 
data structures are subject to change between Palm OS revisions and hardware 
architectures.

I would not recommend non-official methods of reading that file stream PDB 
on the desktop even though the file stream implementation probably hasn't 
changed recently...

Eric Lyons


"Jan Slodicka" <[EMAIL PROTECTED]> wrote in message 
news:[EMAIL PROTECTED]
> It is really so that if you can read individual stream records, then it is
> enough to skip first 8 By and concatenate the record leftovers.
> Reading records at the PC side should not be difficult either. They have
> constant length of 4104 By.
> Sources of par program can be traced somewhere - they can serve as a
> guidance to understanding the pdb format.
>
> With best regards,
>    Jan Slodicka
>    Resco, Palm Division
>
>
>
> ----- Original Message ----- 
> From: "Eric Lyons" <[EMAIL PROTECTED]>
> Newsgroups: palm-dev-forum
> To: "Palm Developer Forum" <[email protected]>
> Sent: Thursday, August 10, 2006 4:31 PM
> Subject: Re: Converting PDB to JPG
>
>
>> Daniel,
>>
>> This reverse engineering of the file stream format works until the
> sequence
>> 0x44 0x42 0x4C 0x4B 0x00 0x00 is image data and not a file stream block
>> marker.
>>
>> In other words, this reverse engineeering of the file stream format isn't
>> reliable...
>>
>> Eric Lyons
>>
>>
>>
>> "Daniel Brocco" <[EMAIL PROTECTED]> wrote in message
>> news:[EMAIL PROTECTED]
>> 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
>>
>>
>>
>> -- 
>> 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