Hi Markus and Lukas,
Hi Lukas and Masashi,
I really like to be able to store binary data in the xml-file very much
(I wasn't aware of that functionality of SmaCC),
so at least please keep it for me (and certainly fix it if necessary and
possible :-), as I want to make heavy use out of it in the near future.
Currently SIXX serializes binary data in a rather naive format
like this:
<sixx.object sixx.id="0" sixx.type="ByteArray" >#( 1 2 3 4
5 )</sixx.object>
It is sufficient for small data. But of course it is not so well if the data
is big.
The best solution I think is to zip the data and write it in base64 format.
Actually, in the SixxMorphMemento example (included in SIXX for Squeak -
maybe you are using SIXX for VW?), I use the method. (It is also a sample
of not adding 'sixx*' methods to existing classes, but ignore this aspect).
In the sample, very complex object (morph) is stored in XML.
But its downside is portability. There is no standard way in current
Smalltalks to make the binary data zipped (or base64).
So if you use this solution, your code will not run in other Smalltalks.
(like my SixxMorphMemento example).
But if you really have needs to do it in a portable manner, you can
add some indirect layer to achieve this by writing wrapper classes.
Cheers,
---
[:masashi | ^umezawa]