Alex Mottram - 2003-11-03

Greetings!

I'm trying to use libOle to access the data streams inside a MS Streets & Trips .EST format file. 

The problem is...  Some of the streams extract properly, and others do not.  I've compiled both under Win32 (mingw/msys) and linux (redhat based, egcs 1.1.2 / glibc  2.1.2). 

Under win32, I always seem to get a "Bad read of 512 bytes"  when trying to extract data via ole-dump.  Using linux, I can extract at least one of the streams properly, but the others all appear to be starting at the wrong offset in the OLE file (valid data from the file, just the wrong data). 

Istorage.exe (http://bonedaddy.net/pabs3/prog.html#istorage) seems to extract the data properly, but I was really looking for something that was (or will be) GPL'd as to include it in another GPL'd project, GPSBabel (http://gpsbabel.sf.net/).

Since I don't know much about the internals of OLE files, I'm wondering if someone can give me a hand here. 

For what it's worth, I've place an .EST file online at http://www.cox-internet.com/alexm/sw/cache_run.est if anyone is interested in taking a look at it.  In this file, ole-dump will extract the UserData stream properly, but not the rest.  I'm initially interested in the Annotations, UserData, and Journey streams.

Thanks for your time!

Alex Mottram