pxd119 / as3-rpclib

Automatically exported from code.google.com/p/as3-rpclib
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

XML-RPC Base64 Encoding does not work correctly #8

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
In current SVN version of the library the XML-RPC Base64 encoding does not
work.  There is an encodeBase64 function but it is not used (nor correct). 

Small patch is enclosed that will correctly base64 encode a ByteArray object.

Original issue reported on code.google.com by marc...@gmail.com on 11 Feb 2008 at 5:18

Attachments:

GoogleCodeExporter commented 8 years ago
Inputting en.toString() for whatever reason gives me an error (that the function
toString doesn't exist for the class Base64Encoder). Weird but true. I am not
familiar with that class and its not documented if you could probably tell me 
what
could be wrong that would be great

Original comment by akeemphi...@gmail.com on 17 Apr 2008 at 1:31

GoogleCodeExporter commented 8 years ago
Doing some more research it seems that Base64Encoder was undocumented in Flex 2 
and
"enc.flush()" was the way to get the encoded string.  I was using Flex 3.

Base64Encoder is documented in the Flex 3 livedocs:

http://livedocs.adobe.com/flex/3/langref/mx/utils/Base64Encoder.html

It appears that the flush method is still there in Flex 3 and works the same, 
so I
guess you'll can change it to that for Flex 2/Flex 3 compatibility.

Original comment by marc...@gmail.com on 17 Apr 2008 at 2:00

GoogleCodeExporter commented 8 years ago

Original comment by akeemphi...@gmail.com on 17 Apr 2008 at 3:40