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

New Contributor
Posts: 8
Registered: ‎10-21-2011
My Device: Developer
My Carrier: NA

Problem with invoked

I'm trying to use the invoked framework with images but when I get the URI and try to read the file using the webworks file utilitis I get an error  that the file cannot be found. Any tips hints our there, has anyone else tried this?

<feature id="blackberry.invoke" />


<rim:invoke-target id="com.chilisabls.bb.memegenerator.creatememe">
<property var="uris" value="file://,data&colon;//local"/>


blackberry.event.addEventListener("invoked", function (invocationInfo){

blackberry.io.sandbox = false;

function initFS(fs){
fs.root.getFile(invocationInfo.uri, {}, function(fileEntry) {

var reader = new FileReader();

reader.onload = function(e) {
bb.pushScreen('memecreator.htm', 'memecreator', {img: e.target.result});

reader.onerror = function() {
var a="bnasdf";

}, errorHandler);

window.requestFileSystem(window.PERSISTENT, 5*1024*1024, initFS, errorHandler);