Re: [flexcoders] Re: How to save a bytearray to a database

2009-10-28 Thread Guy Morton
You should be able to store the data in binary format in your  
db...then you could use a binary encoding for transferring the data  
(like AMF) and leave the data in binary.


Note I've not tried this myself but in theory it should work, no?


On 28/10/2009, at 4:58 PM, bsyyu wrote:


encode the bytearray to base64
http://dynamicflash.com/goodies/base64/

--- In flexcoders@yahoogroups.com, flexaustin flexaus...@...  
wrote:


 So I am trying to save a bytearray to a database. I tried  
bytearray.toString, which works as expected.


 But on retrieving the string (bytearray) from the database how  
would I convert it back to a bytearray?


 Thx, J








[flexcoders] Re: How to save a bytearray to a database

2009-10-27 Thread bsyyu
encode the bytearray to base64
http://dynamicflash.com/goodies/base64/


--- In flexcoders@yahoogroups.com, flexaustin flexaus...@... wrote:

 So I am trying to save a bytearray to a database.  I tried 
 bytearray.toString, which works as expected.  
 
 But on retrieving the string (bytearray) from the database how would I 
 convert it back to a bytearray?
 
 Thx, J