> I am trying to do a checksum on an installed application, which requires
> that I read the application in small (5k or so) chunks.  Whenever I try to
> open the application using FileOpen, I get an error 5649. (fileErrNotStream)

  i reverse engineered this baby a long time ago :)

  the file streaming format is not really documented anywhere, but
  internally, it is stored in a standard .pdb file format, in 4Kb 
  chunks :) - each starting with a label of "DBLK".
 
> Can anyone point me to some information on how I can use the File Streaming
> API commands on an installed application?

  well.. not possible :) the .prc file is not in the same format as
  required to read a file stream :)

  what you need to do is

    a) open the database (.prc)
    b) get each resource one by one..
    c) stream each chunk :)

  not too difficult :) your hardest part will be re-constructing the
  resource table + .prc header..

// az
[EMAIL PROTECTED]
http://www.ardiri.com/    <--- free games!


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

Reply via email to