BB10 Webworks - jpg sending the www folder

I am trying to send a picture using following code, and it fails. The only thing that I'm not sure is part of the URI. I am I was right the use of blackberry.io.home to access www folder in my webworks app?

The sent jpg is located in the www/img folder

Here's the code.

function sendCardFB() {}
          
BlackBerry.Invoke.Invoke ({}
target: "Facebook."
Action: "bb.action.SHARE."
type: "image/jpeg"
URI: "file://"+blackberry.io.home+"/img/wp"+theid+".jpg".
(}, onSuccess, onError);
}

The code simply calls onError in this case.

Instead of:
'file://"+blackberry.io.home+"/img/wp"+theid+".jpg '.

This gives a shot:
'local:///img/wp"+theid+".jpg '.

This should give you access to the resources packaged with your BAR file.

Tags: BlackBerry Developers

Similar Questions

  • My C drive is nearly full, can I send the 'Users' folder to 'C' on another disk "D"?

    I am usiinf Windows 7 Professional, my 'C' drive is an SSD with 'only' 56 Gig. My hard drive "D" is a one terabyte with more than 900 GB of space left on it.

    My file 'Users' is 13 Gig.

    DAVID BROOKER

    I don't think you can move the Users folder, but you can disable Hibernate and move your pagefile to free space, and you can move your Documents, music, pictures and videos folders.  You can uninstall some programs, and then reinstall them using the custom option and put them on the D: drive too.

    Good luck.

  • Helps export jpg in the same folder with the psd files

    It's maybe a stupid question, but I can't understand this.  When I use CS4 for working on a photo it is important (self stacked) with the original CR2 (Canon) file without problem.  What I understand to convert the PSD file to jpg, it must be exported as a jpg.  When I do that and check the box to stack with original and then go into the library; I see not the jpg until I sync the folder.  Is it possible to have the jpg file appear in the stack without having to SNYC manually whenever I have it change?  I hope that makes sense!

    Alan

    In the export dialog box where you configure all of your options.  Under Export location, there is a checkbox "add to catalogue".  If you check that option can also stack the copies with others.

  • < img > image not cached in app BB10 Webworks

    Hello

    Is there some configuration setting, that I need to use to get Webworks (on BB10) to cache images served from a server?

    I have a BB10 Webworks app that dynamically adds and remove the DOM html.  Images referenced in items loading as expected, but if the item is removed from the DOM, and later added again, Webworks reloads the image file from the server, rather than using a cached version.  (I can watch what is happening in the Web Inspector).

    If I run the code in a browser, Chrome on Windows, it behaves correctly, by using the cached copy of the image when the new item is added to the Dom.

    The frequency from the server HTTP headers are:

    Cache-Control, must-revalidate
    Content-length: 1730
    Content-Type: image / jpeg
    Date: Mon, 21 October, 2013 21:18:34 GMT
    ETag:c4863b363e4536f8d854d721092cf528
    Expires on: Wednesday November 20, 2013 21:18:34 + 0000
    Last modified: Monday February 4, 2013 17:20:13 + 0000
    MicrosoftOfficeWebServer:5.0_Pub
    Server: Microsoft-IIS/6.0
    X-Powered-ByHP/5.2.13, ASP.NET

    So, with response codes above, Chrome set cache the image as expected, while the BB10 Webworks reload from the server each time (no caching).

    I'm running on a version of the software Blackberry Z10, model number STL100-3, 10.1.0.4181, and the app is created using Blackberry 10 Webworks SDK 1.0.4.11.

    What Miss me?

    Thank you

    Terry

    My apologies for the confusion.  The purpose of qnx is only available in a native extension running inside the app - not directly from JavaScript running in your application.

    Here is an example of an extension that uses the qnx object:

    https://github.com/BlackBerry/WebWorks-community-APIs/tree/master/BB10/PreventSleep

    Specific location where it is used:

    https://github.com/BlackBerry/WebWorks-community-APIs/BLOB/master/BB10/PreventSleep/ext/community.PR...

    What is your comfort level write / using native extensions?  You will need to create your own, to interact with this API.

  • Save a file opened under PSD in the current folder without prompting?

    I'm trying to find a way to save an open file as a PSD (from JPG) in the current folder without me.  It seems that it should be so simple.  I use CC 2014.  Using the Image Processor would work, but it creates a new PSD file.  (I tried to modify the imageprocessor.jsx to remove the path, but it did not... maybe because I tried to run the jsx to my office instead of the script folder?  I don't have access to modify the original unfortunately.)

    So yes, just trying to make an action that does stuff and then record it without requiring any interaction.   The closest thing I've found is this script that does everything I want EXCEPT the active document remains a jpg instead of becoming the new DSP.  so I end up having to save anyway and the open the PSD again to continue editing.

    Save the copy under PSD

    var doc = app.activeDocument;

    var Path = doc.path;

    var Name = doc.name.replace (/ \.) [ ^\.] +$/, '');

    Var suffix = "-copy";

    var saveFile = file (path + "/" + Name + ".psd");

    SavePSD (saveFile, 8);

    function SavePSD (saveFile) {}

    psdSaveOptions = new PhotoshopSaveOptions();

    psdSaveOptions.embedColorProfile = true;

    psdSaveOptions.alphaChannels = true;

    activeDocument.saveAs (saveFile, psdSaveOptions, true,

    Extension.LOWERCASE);

    }

    Thank you!

    Change

    activeDocument.saveAs (saveFile, psdSaveOptions, true, Extension.LOWERCASE);

    TO

    activeDocument.saveAs (saveFile, psdSaveOptions, false, Extension.LOWERCASE);

  • Then a script, I would like to save in the current folder.

    Hello, during a script I would save my. In PSD. JPG in the current folder (I own the CS6 version).

    Example:

    I have several file Win7: 001, 002, 003...

    Text for example my file 001 then I created in this folder of the UN 001.psd.

    I would so that when I run my script with a "save under" or no "save pour web" that he carries a copy of this file in. JPG, but in this current folder 001.

    The same so pour the other folders. If I run my script from file 002. PSD so the 002. JPG will have to register in case 002 so now...

    As indeed the srcipts registered each time a specific path.

    Do you have a solution? (I also said that I have a very good level in photoshop)

    Thanks for your help.

    Learn Photoshop menu file > Scripts > image processor.  The plug-in version even better is that you can download and install on the Image Processor Pro web. Once installed you access using the File menu > Automate > Image Processor Pro.

  • How do I send the email from BB10 webworks app

    I want to have a module in my BB10 WebWorks app that will allow users to compose a message by entering the information in a form, which will then be sent by e-mail to an e-mail address.

    I guess this could be done by using the EmailComposerOptions API, but I don't know how to use it.

    Any help will be appreciated.

    Have you looked at the code example in the API document?

    https://developer.BlackBerry.com/HTML5/APIs/BlackBerry.Invoke.card.html#.invokeEmailComposer

    < script="text/javascript">
    //simply invoke email composer, with no options and callbacks
    blackberry.invoke.card.invokeEmailComposer();
    
    //invoke email composer with subject, body, to, cc and attachment options
    blackberry.invoke.card.invokeEmailComposer({
        subject: "Email subject",
        body: "Email body",
        to: ["[email protected]", "[email protected]"],
        cc: ["[email protected], [email protected]"],
        attachment: ["/path/to/an/attachment.txt", "path/to/another/attachment.txt"]
    }, function (done) {
        console.log(done);
    }, function (cancel) {
        console.log(cancel)
    }, function (invokeError) {
        console.log(invokeError);
    });
    
    

    Once the function is called, map of composer email will slip into the view with all pre-filled fields and the user can then click on send.

  • option to return to the original folder sends me to the last email instead

    Started Firefox mail - without any input from me - back me the last email open (first e-mail Options option, under "Général": after move/delete the message):
    Display the message
    Go back into the original folder)

    Repeatedly, I chose "Return to the original folder", but Firefox wants to make his way. What gives?

    Firefox send an e-mail, it's a web browser.

    If you use Firefox to access your e-mail, you use "webmail". You must seek assistance from your service provider or a forum for this service.

    If your problem is with Mozilla Thunderbird, check out this forum for support.
    http://www.mozillamessaging.com/en-us/support/

    or this one

    http://forums.mozillazine.org/viewforum.php?f=39

  • Call my app when clicking on a specific URL in the BB10 webworks

    Hi all

    I want to register my application to open a specific URL (like: http://www.xyz.com) on impact on the browser. Below is the contents of the config.xml file, I tried. This does not work for me.

    
    
        
            APPLICATION
            
                bb.action.OPEN
                text/plain //tried with * also
            
            
        
    

    I tried several configuration in the config.xml file, but no luck. Also researched a lot on forums and found below URL for native code.

    http://supportforums.BlackBerry.com/T5/native-development/how-to-invoke-my-app/m-p/2734705#M57010

    Is this possible in BB10 Webworks?

    Finally found the solution which shows pop up to open my application by hitting a specific URL in the browser. Here's the changes to make in the config.xml file.

    
            APPLICATION
    
            
              bb.action.VIEW
              *
              
            
    
            
              activetext:
            
    
        
    
  • Send Messages to the custom folder

    Hello

    I need to make a request that can record messages from that specific sender in the specific folder. Is this possible? If yes then how?

    I need advice with some snippet or link.

    Thank you

    http://www.BlackBerry.com/developers/docs/7.1.0api/NET/RIM/BlackBerry/API/mail/folder.html#deleteMes... Deletes the message from the record 1, http://www.blackberry.com/developers/docs/7.1.0api/net/rim/blackberry/api/mail/Folder.html#appendMes... add to folder 2.

    There is no method to move or copy.

  • BB10 Webworks packaging "interrupted (quit)" error of the emulator of the ripple

    I am trying to build a BB10 webworks app using Sencha Touch 2.2 and packaging using ripple and get Interrupted errors (abandonment of the). Is anyone else seeing this? I noticed that I am able to clear this error if the .sass_cache is filled in/resources/sass Sencha Touch project folder. Changes in error on what file it is interrupted.

    out:  (deflated 71%)
      adding: touch/src/XTemplateCompiler.js (deflated 72%)
      adding: touch/src/XTemplateParser.js (deflated 76%)
      adding: touch/version.txt (stored 0%)
      adding: twitter_bb.js (deflated 61%)
      adding: webworks-1.0.4.11.js
    out: 
    
    out:
    zip error: Interrupted (aborting)
    
    error response - {"code":1,"msg":"\nzip error: Interrupted (aborting)\n","data":null}
    2013-06-13 11:48:44 GET /ripple/build_status/1021 200
    

    After trying various things, I came across the solution, by sheer luck, I guess. When you compile a Sencha Touch app, it compiles the sass file and creates a cache. Sencha Touch is not delete the folder ".sass_cache" once it did the compilation. This seemed weird questions with the operation of a BB10 webworks app package. He would stop with the message above on the different file compression.

    After you have removed all the contents of the folder '.sass_cache' using ' rm - rvf *' I was able to do this successfully the package.

  • When transferring a message from the sent folder, it does not select the default identity, but one of the others. How to configure it to send to my address

    If I am sending an e mail to my sent folder, the field does not automatically select the default identity but insterad he sends e-mail to e of my daughter and I select the default value in the drop-down list. can it be configured to send the file sent using my default email instead of having to remember to change on the menu drop-down

    Looks like this add-on is more suited to your needs:

    https://addons.Mozilla.org/en-us/Thunderbird/addon/folder-account/

  • When I send a message, it seems to go OK, but Thunderbird then hangs up trying to copy the message in the sent folder. How do I overcome this?

    A pop-up window headed ' Send Message - Re:...» "reports status as"Copy of record Message. "" "... »
    with a progress bar that is large and green, but it never ends. If I abandon the process and close Thunderbird, when I open it the message is not in the "sent" folder.

    Try to repair the "sent" folder:

    • Right-click mouse on envoys > > Properties > > File Repair

    Try also to compact your folders:

  • All of a sudden, the emails I am dial are a building block in the middle of the screen.  I can't minimize or move the drive to refer to another email.  Must send to the project folder.  Boring!  Why is this happening?

    Hello!  All of a sudden, the emails I am dial are a building block in the middle of the screen.  I can't minimize or move them if I need to take a break to refer to another email.  I send email partially completed to the drafts folder.  It is extremely annoying.  How to do this?  Operating system is OS X Yosemite (10.10.5) on a MacBook Pro.   Thank you!

    You are using the full screen? Try the command - command - F.

    Try a reboot.

    Make a backup using Time Machine or a cloning program, to ensure that data files can be recovered. Two backups are better than one.

    Try to set up another admin user account to see if the same problem persists. If back to my Mac is enabled in system preferences, the guest account will not work. The intention is to see if it is specific to an account or a system wide problem. This account can be deleted later.

    Isolate a problem by using a different user account

    If the problem is still there, try to start safe mode using your usual account.  Disconnect all devices except those necessary for the test. Shut down the computer and then put it up after a 10 second wait. Immediately after hearing the startup chime, hold down the SHIFT key and continue to hold it until the gray Apple icon and a progress bar appear. Startup is considerably slower than normal. This will reset some caches, forces a check for directory and disables all start-up and connection, among other things. When you restart normally, the initial restart may be slower than normal. If the system is operating normally, there may be 3rd party applications that pose a problem. Try to delete/disable the third-party applications after a reboot using the UN-Installer. For each disable/remove, you need to restart if you do them all at once.

    Safe mode - subject

    Safe mode - Yosemite

  • When I send an email, it appears in my own Inbox and not the sent folder.

    emails sent appear in the Inbox clean.

    When I send an email, it appears in my own Inbox and not the sent folder.  Even if the box is checked, staging elements to move to the folder sent sent.  Any thoughts?

    Go to file | Identities and establish a new identity.  Then add your e-mail account.  When this works, then use a file | Import messages to import from the old identity.

    If you do not OE, then after return e-mail you what program use.

    Steve

Maybe you are looking for

  • Clean install / restore to fail Internet

    I'll put up a 2010 MacBook Pro start as new for a next project. After erasing HD for a clean install, the installer returned a message that says El Capitan could not be verified or may have been corrupted. I resorted to the recovery of the internet,

  • What Type of PCMCIA is supported by Equium A200-1ED?

    Hello They gave me this old Equium A200-1ED which is too slow for window 8. Putting aside the expensive option of a SSD, I thought to install windows on an SD card but the BIOS do not see it as a boot device and the driver seems not to recognize as e

  • How to remove unwanted updates which are options without updating

    There are several optional updates (languages, etc.) I would like to delete.  How is that possible?  Using Windows 7 Ultimate. Thank you, crpet1

  • dv7t 3300 i7 720 1st Gen 4 GB memory upgrade to 8B

    How much memory the system can support? Is - this ddr3? Probably go up to 8 GB but curious to know if it will take longer. And no info on the search for the correct module. Any help is greatly appreciated, thank you

  • X 301 and F3507g

    Hi, I have a X 301, model 2774-18U, under XP/SP3. I bought F3507g Ericsson which is supposed to be compatible with X 301 after a few pages support and software readme.txts. However, after installing the card, F3507g does not appear in Device Manager,