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.
02-17-2011 09:45 AM
Currently blobToString() is not supported on PlayBook in the WebWorks Beta. The list of currently supported Beta APIs are here:
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?
02-22-2011 05:08 AM
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?