Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Web and WebWorks Development

Reply
Developer
Posts: 30
Registered: ‎06-14-2012
My Device: 9810

Invalid type - class net.rim.device.apps.internal.browser.olympia.dom.ScriptObjectShadow

[ Edited ]

Hi guys, I got this error when I try to :

var oFile = document.getElementById("uploadImage").files[0]; alert('Ini adalah isi dari oFile '+oFile);
 try {
 var fileAsBase64String = blackberry.utils.blobToString(oFile, "BASE64");
 var blob_data = blackberry.utils.stringToBlob(fileAsBase64String, "US-ASCII");
 alert(blob_data);
} catch (e) {
 document.getElementById("base64").innerHTML = "Error in supported: " + e;
}

 

I really need help in here, it's already spend 2 weeks to figure out how to send an image(base64 encrypted) to server