02-17-2011 09:19 AM
I tried the following code using both "base64" and "utf-8" encoding with phone simulator and playbook simulator.
var strBlob = blackberry.utils.blobToString(blob, "utf-8");
Its working perfectly with phone simulator. But not working with playbook simulator.
Thanks.
02-17-2011 09:45 AM
Hi kalan,
Currently blobToString() is not supported on PlayBook in the WebWorks Beta. The list of currently supported Beta APIs are here:
http://www.blackberry.com/developers/docs/webworks
02-17-2011 10:30 AM
Can you suggest me a method to convert a string to "base64" encoded string.
var blob = blackberry.utils.stringToBlob(authToken, "utf-8"); var strBlob = blackberry.utils.blobToString(blob,"base64");
I use this code with the phone app. Can you suggest me if there any alternative method available which can be used with playbook?
Thanks.
02-22-2011 05:08 AM
http://code.google.com/p/stringencoders/source/bro
This code of converting binary data to base64 and vise versa works perfectly with phone API. But not works in playbook.
I can't understand why is that? Can someone explain me?
Thanks.