Thanks Tab, Gretchen. I hit upon the same solution 10 minutes after I hit send. Thanks for confirming my idea. I plan to split the info in two files - a structure file for recording the presentation details and the media lengths, and a media file for storing the binary information. I've come up with the following format for the structure file. Can someone please have a look at it and tell me if its OK? It would save me some trial and error.
_ = blank byte / = endofchunk --------------------------- HEADER - 258 bytes --------------------------- esf_presentationname 255 bytes / templateid 1 byte / pagecount 2 bytes / --------------------------- CONTENT 4 + 264 + 2 = 270 bytes --------------------------- PAGE START TAG - 4 bytes pagenum 2 bytes / fieldcount 2 bytes / FIELD TAG - 2 + 255 + 3 + 4 = 264 bytes * fieldcount fieldid 2 bytes/ filename 255 bytes / extension 3 bytes / filelength 4 bytes / PAGE END TAG - 2 bytes __/ --------------------------- The content portion of the file is replicated for each page, and each media field in the page. As in, if I have 4 pages, or screens in my presentation, I'll save the number 4 in the header in the last 2 bytes. Each page will contain the number of fields that are present. Finally, field information will be stored in 264 byte chunks, nested between the page start and page end markers. Pranav Negandhi concept-I www.cimultimedia.com <snip> > Pranav, > > If you want to make one big file with lots of little binaries in it, and > will just use a straight binary writer (as opposed to a > database), then you > will have to put up front (or in a separate info file or > something) a table > of contents, or at a minimum, before you write each chunk of data > write the > length. <snip> [To remove yourself from this list, or to change to digest mode, go to http://www.penworks.com/lingo-l.cgi To post messages to the list, email [EMAIL PROTECTED] (Problems, email [EMAIL PROTECTED]). Lingo-L is for learning and helping with programming Lingo. Thanks!]
