my external provides access directly to a relational database.
the users would like to be able to store the database info (which can
be quite big) in the max patch.
the database info is typically stored as an XML file. optimistically
spoken the database is about 3 MB.
realistically spoken, it's about 64 MB. zlib will bring that down
but... HOW do i get it into my binbuf... using binbuf_text()
crashes if I pass a pointer to my XML data.
what I would like to see is :
short binbuf_bin(void* bb, char* data, long numBytes);
i understand that if you were to use binbuf_bin to store for example
sample data in the max patch, if the end-user were to open up the max
patch as a text file there would be a (very) big binary fart there.
in my case they would probably see alot of XML stuff (if i don't
the typical (provisional) solution to this problem is of course to
store the binary data into a seperate file, and store the path to
that file in the binbuf. that's of course what i have to do for
now... but... the big problem is that if the user copies the max
patch (to a different machine for example) and forgets to copy the
data file along with it (and put it in the right place...) well, it
just don't work no more and causes headaches for the user.
any ideas? thanks!