1. ThinkQwick's Avatar
    Thanks to SCrApps for the WebWorks File API Framework.

    I'm having some trouble.

    First, I see that the "toBlob" code is encapsulated at the start of the function but in a manner I'm not familiar with: it starts with


    which isn't a syntax I've ever seen so if you could help me understand how that works that would be step one :-)

    In service to the new multiple Cover sizes (on the Passport only at the moment) I'm trying to rewrite my app Cover generator code to generate .png files to save to the temp folder (using "toDataUrl" is not supported in BB WebWorks, so I have to save a .png file) but through use of toDataUrl I've confirmed that my canvas looks good and exists. Now I just need to save it as a .png

    I'm using the Simulator running OS 10.3.1

    I'm trying to use saveCanvas(), but it's not working: I've sprinkled in some console.log message "checkpoints". I'm not seeing errors in the console, and I think I've got everything right, but I don't get a file (and on the simulator it's difficult to even know if a file exists)

    Because it is a Cover graphic, I am not using the 'picker' argument.

    Here's the function call:

    saveCanvas(theActiveFramesCanvasObjectArray[theFrameName], theCoverFileFullPath);

    theActiveFramesCanvasObjectArray[theFrameName] is a canvas object

    theCoverFileFullPath is the destination path for the .png file which is based on blackberry.io.home:

    is it possibly something with the file system permissions? or is it an artifact of running on the simulator vs. a device?

    EDIT another question: is the argument that is documented as "canvas" supposed to be a "[object HTMLCanvasElement]"? That's what the object I am sending shows when display it in the console.log.
    Last edited by ThinkQwick; 03-27-15 at 11:20 AM.
    03-27-15 08:00 AM
  2. SCrid2000's Avatar
    The canvas to blob code doesn't work in some versions of bb10.3 I believe. What OS version are you using?
    04-26-15 10:31 PM

Similar Threads

  1. BlackBerry Link backup files missing
    By crackberry_geek in forum Ask a Question
    Replies: 3
    Last Post: 04-01-15, 06:16 PM
  2. Anybody hear using whatsapp calling.....?
    By anishchowdary in forum BlackBerry Q10
    Replies: 4
    Last Post: 03-27-15, 06:36 PM
  3. Replies: 7
    Last Post: 03-27-15, 10:34 AM
  4. Why am I unable to open an .REM file?
    By Sourabh Sharma4 in forum Ask a Question
    Replies: 1
    Last Post: 03-27-15, 07:55 AM
  5. How do I transfer a file from BB Link to Classic?
    By CrackBerry Question in forum BlackBerry Motion
    Replies: 1
    Last Post: 03-26-15, 08:18 PM