> i ran the following command
> 
> par c -a stream test.pdb testdb <type??> ABCD test.txt
> 
> to generate test.pdb with the name testdb, of type/creator test,ABCD
> with data from the file test.txt..where test.txt
> 
> just contains
> this is a test
> this is line two
> EOF

  ok.. see the problem straight away :)
 
> but opening it with the streaming API gives me the error:
> "MyApp (unknown version) reports "FileStream.c, Line:2332, invalid data
> block signature"

  well.. i posted some info about this previously :) what you should have
  in test.txt is:

---
DBLKjust contains
this is a test
this is a line two
EOF
---

  see the DBLK? thats the block signature :P what you also face here is
  that each "test.txt" can be AT MAX 4096 bytes in size. the file
  streaming data blocks are 4K in size.

  you should then create the database with the file "test.txt" as
  a record. for example, i used a util called 'files2pdb', using 
  the following command:

    files2pdb -n "my_filestream" -a 128 -v 1 -t TTTT -c CCCC test.txt

  i could be wrong about the attribute.. its been a while :P if you
  are interested, i will make the applications that i use (files2pdb
  etc available on www.ardiri.com)..

  [was away for a few minutes]..

  ok.. its available here:

    http://www.ardiri.com/index.cfm?redir=palm&cat=devkit&subcat=tools

  i didn't write the tools, you can go to Ken Shirrif's home page and
  email him if you have problems :P i just use them when i need to :P

  enjoy!
  
// 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