The UNF file contains the UNF header (the record length and comma),
followed by the remaining bytes from the record structure, followed by a
CR/LF pair.
So, export your first record this way, strip off the UNF header (up
through the comma), then remove the filename and length columns, and
then truncate the CR/LF pair at the end. Note that you MUST use a hex
editor (like Hex Workshop) to avoid making major changes to the data
structure.
You may also be able to read the data directly via the Btrieve
interface. However, this is only simple for records up through 64K in
size. Beyond that, you'll have to use "chunking" operations, which are
a bit more complicated.
Of course, it is ALSO possible that the application that stores the data
modifies it in some way, making it unusable. Some applications store
data in OLE format, which is quite different from a simple JPG memory
dump or PDF.
Goldstar Software Inc.
Pervasive-based Products, Training & Services
Bill Bach
BillBach@goldstarsoftware.com
http://www.goldstarsoftware.com
*** Next Pervasive Service & Support Class - Nov 2008 ***
> Hi All,
>
[quoted text clipped - 29 lines]
>
> Thanks in Advance for you help.
golisatish@gmail.com - 29 Aug 2008 19:12 GMT
Bill,
Thank you for the quick response and pointing me to use the HEX
editor. I was able to retrive the BOLB images. There is a lot of
Manual work involved to clean up the files using HEX editor but No
Complains.
once again THANKS A TON.
BtrieveBill - 29 Aug 2008 20:55 GMT
If you're a programmer, then it should be easy: Read in the record
length first (up to the comma). Then, read THAT number of bytes for the
record image. Write out the data that you just read in, skipping the
first set of bytes that comprise the data header (filename, etc.) to the
target file. Finally, read the next two bytes (the CR/LF pair).
Loop until you hit EOF.
> Bill,
>
[quoted text clipped - 4 lines]
>
> once again THANKS A TON.