Right now to create the object I make this call (generalized)
- Code: Select all
var ba:ByteArray = new ByteArray();
SaveDataToByteArray( ba );
ba.compress();
client.BigDB.createObject( "myObjects", fileName, ba, createdHandler, errorHandler );
It successfully is created
To retrieve the data
- Code: Select all
...
client.BigDB.loadObject( "myObjects", fileName, successHandler, errorHandler );
...
private function successHandler(o:DatabaseObject):void {
var objectId:String = o.key;
var ba:ByteArray = ???? // I don't see the data as part of the returned object
Do I need to add a tag to the byteArray?
Any hints would be great appreciated.
I have read thru all of the examples,
but I can't find anything that accesss binary data.
Thanks
Bob