I posted this a while back...  

http://tech.groups.yahoo.com/group/flexcoders/message/65507

 

import mx.utils.Base64Encoder;

import mx.utils.Base64Decoder;

 

private function base64Encode( data : ByteArray ) : String

{

            var encoder : Base64Encoder = new Base64Encoder();

            encoder.encodeBytes( data );

            return encoder.flush();

}

 

private function base64Decode( string : String ) : ByteArray

{

            var decoder : Base64Decoder = new Base64Decoder();

decoder.decode( string );

            return decoder.flush();

}

 

 

_____________________________________

Andrew Trice

Cynergy Systems, Inc.

http://www.cynergysystems.com

 

Blog: http://www.cynergysystems.com/blogs/page/andrewtrice

Email: [EMAIL PROTECTED]

Office: 866-CYNERGY 

 

________________________________

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Alex Harui
Sent: Friday, March 09, 2007 5:41 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Converting string to base64Binary

 

Google: Base64 Actionscript

 

________________________________

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Brian Holmes
Sent: Friday, March 09, 2007 2:15 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Converting string to base64Binary

 

Does anybody have an example of how I can do this? Everything I've tried
blows up.

 

Thanks,

 

b..

________________________________

***
The information in this e-mail is confidential and intended solely for
the individual or entity to whom it is addressed. If you have received
this e-mail in error please notify the sender by return e-mail delete
this e-mail and refrain from any disclosure or action based on the
information.
*** 

 

Reply via email to