hi pranav,
what I've done in a similar case is using ordinary castLibs with a
certain member arrangment or naming convention as my own compound file
format, and to attach and detach them at runtime with the freeware xtra
CastControl. You can give them your own file type ending (eg. *.mix or
whatever), so no one knows it's a castLib, and a doubleclick (on windows
or os x) wouldn't open them in director, but you can still attach them
as castLib, director doesn't care (for os 9 you could change the
type/creator as well).
if you need additional "protection", you could eg. strip the first 4
chars ("XFIR") with binaryIO, and add them again before attaching.
it doesn't matter that you movies are protected, you can still use
unprotected castLibs.
valentin
----- Original Message -----
From: "Pranav Negandhi" <[EMAIL PROTECTED]>
To: "Lingo-L" <[EMAIL PROTECTED]>
Sent: Monday, February 09, 2004 7:46 AM
Subject: <lingo-l> File storage
> I'm building an editor that lets users create simple templatised
> presentations and publish them. Users can import their own
backgrounds,
> images and video clips and place text in predefined fields. The
presentation
> has a fixed number of screens of information.
>
> The movies will have to be protected ofcourse, so using savecastLib or
> saveMovie is out of the question. My plan is to make a playback engine
that
> retrieves the contents of each screen and plunk them into their
respective
> fields. The content files can reside in a subfolder, but I'd like to
go for
> a safer solution such as combining all the images, text and video
clips into
> one big data file. I know BinIO can do this...but there was a solution
using
> FileIO for the same thing someplace. Can someone point me to that?
>
> As an aside, I've _never_ ever created binary files. So one thing
stumps me
> off - how in heavens name will I know at which position does one file
end
> and another begin? Is there a commonly used end-of-chunk character? I
need
> to be certain that the same character will not be used in any of the
other
> files too, else that info will go kaput. Pointers, pointers...anyone?
>
> I'm running this on Windows so far, but somewhere along the line I
might
> have to make this x-plat.
>
> Pranav Negandhi
> concept-I
> www.cimultimedia.com
>
> [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!]
[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!]