in the following code :
var benq:Base64Encoder = new Base64Encoder(); benq.encode('force',0,5); var tmp:String = benq.toString();
‘tmp’ turns out to be an empty string, i.e. with length 0. why? how to encode a string using base64encoder?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Are you sure that your code isn’t working. I just copied and pasted it into a test app and it returned tmp as ‘Zm9yY2U=’
Are you doing anything else to the var tmp? if debugging make sure that it has processed the var tmp:String…. line when your checking the output