See the image of applicationStorageDirectory

Hello

I would like to see a picture form the applicationStorageDirectory but I get a URL not found error.

var imgLoad: Image = new Image();
imgLoad.setImage (File.applicationStorageDirectory.nativePath + "/ test.png");
imgLoad.setSize(1024, 600);

The test.png image is present in this directory, but I can't load it.

Does anyone have a solution?

Hey Tjitte.

It was bugs me too but then saw closer, documentation and assistance from harry_dodgson. in the setImage method requires a URL entry not only an absolute path. so follow these steps:

change:

imgLoad.setImage(File.applicationStorageDirectory.nativePath + "/test.png");

to do this:

imgLoad.setImage("file://" + File.applicationStorageDirectory.nativePath + "/test.png");

and you should be golden. hope that helps! Good luck!

Edit: from the documentation:

"... The image parameter can be a string as a URL to an external image... »

Tags: BlackBerry Developers

Similar Questions

  • I can't see the images received by using my Yahoo email in my MacBook Air, but I can see them in my iPhone 6, no idea why this is happening?

    I can't see the images received by using my Yahoo email in my MacBook Air, but I can see them in my iPhone 6, no idea why this is happening?

    Hello

    If you access your Yahoo mail via Mac Mail application, in the Mail menu bar, click Mail > Preferences , and then select the display tab to assure you that:

    Display remote messages HTML images is selected.

  • Can not see the images of the patent (i.e., D/359 691) on research of patent USPTO.gov, it tells me I need a plugin (7.7.1.0 Quicktime) that I've already updated.

    Can not see the images of the patent (that is, D/359 691) on USPTO.gov patent search, it tells me I need a plugin (Quicktime) that I've already updated.
    In the 'quick search' I give terms & it compiles a list. I have then cross to every doc and look to see the doc and associated drawings. I don't know what to say at this stage.

    Thank you.

    QuickTime cannot handle images in TIFF format.

    You can watch AlternaTIFF - http://www.alternatiff.com/

  • How to optimize the area available for a character that I can see the image correctly?

    Currently I can't see the image very well because it covers the navigation bar. But if I do the bar disappear, the region because the image becomes smaller too! How can I make the box for the character picture matches the size of the actual image?

    This has happened

    Each time Firefox opened

    == I started using Firefox

    Add toolbars to see the entire height of the image of persona is 3000px by 200px (I don't think that all of the personality of image width can be seen on anything except a screen wide TV screen).

    Firefox comes with 3 tool bars, bar menus, Navigation bar and toolbar of bookmarks. It can vary depending on your operating system and if you have of large or small icons toolbar selected, but on my system, I need to have 10 Toolbars list to see the entire height of the character, I chose.
    YMMV

    View > Toolbars - Customize
    Then click on the Add New Toolbar button, name the new toolbar (I named spacer them 1-7)and then add a space to each new toolbar. Repeat until you have 7 more toolbars. When you are finished - click " fact ".

  • Is no longer able to see the images from YouTube after update (stupid)... ARGH and HELP!

    After you install an update to my windows explore (pop had been posted for a long time and in a moment of weakness, I went ahead and installed without really looking at the news) I am no longer see the images on YouTube. Help!

    Do a restore of the system in Mode safe for a time
    before the problem started, may be worth a try.

    See the following articles:

    (306084) how to restore Windows XP to a
    previous state
    http://support.Microsoft.com/?kbid=306084

    How to restore a Windows XP system to a previous state using system restore
    http://bertk.MVPs.org/

    (315222) a Description of the Safe Mode
    Boot into Windows XP options
    http://support.Microsoft.com/?kbid=315222

    How to start safe mode in Windows XP
    http://bertk.MVPs.org/html/SafeMode.html

  • could not see the image tiff, printed using Microsoft Office Image writer

    My OS is Windows Vista Home Premium.

    I am able to print a document using the printer, but when I print the same document by selecting the Microsoft Office Image writer, I cannot find the image file to the location that I saved. I am able to see the image immediately after printing, but does not after the closing of the window. I am able to see the document I'm trying to attach it to an email in the file to be attached to window, but if I join I get an error message saying that the file is not found at the location. If anyone can help...?

    Ooes that happen with all the tiff images or just a specific document?  It happens with any other type of file?

    If it occurs with a single document and works very well with other tiff files, then I would say that the file is corrupted.  Can you open it directly?  It may be a problem with Office Image Writer, and possibly your e-mail program - but it's not likely if they work with other files, tiff and other file types.

    Maybe the Office has a feature to repair corrupted files.  Also if the problem affects all files tiff and other types of files when you use Image Writer, I suggest that repost you your question in the Forum of the Office to: http://www.microsoft.com/office/community/en-us/flyoutoverview.mspx where the experts at the office will be more than happy to help you with your problem.  You can also find 3rd-party file corruption repair sofware online by searching for what I said just to www.download.com, www.tucows.com, Bing and Google.  If you use Outlook for e-mail, you can after there as well to cover the messaging problem you described.  If you use another e-mail program, answer simply by name.

    I hope this helps.

    Good luck!

    Lorien - MCSA/MCSE/network + / has + - if this post solves your problem, please click the 'Mark as answer' or 'Useful' button at the top of this message. Marking a post as answer, or relatively useful, you help others find the answer more quickly.

  • When, in my pictures page, I can't see the image of the picture, just a flower of orange tree, how to fix this?

    On the page of the main screen when I click on the photos, I used to be able to see the image, without having to click on preview, how to change it so I can see the picture without having to hit a snippet. I want photos to show on the thumbnails.

    I think that the excerpts come from thumbnails cache. And clear the cache of thumbnails is certainly worth it. See How do I clear the Cache of thumbnails in Windows 7 and Windows Vista by using the disk cleanup utility.

  • How did I can't see the images sent from iphone or ipad in my email?

    How did I can't see the images sent from iphone or ipad in my email?

    I use Microsoft. It does not even show that there is an attachment, but there is a box to images and when I right click click on see photo, the area of the image disappears and no picture appears.

    I can't see any of my email accounts.

    Help, please.

    How did I can't see the images sent from iphone or ipad in my email?

    I use Microsoft. It does not even show that there is an attachment, but there is a box to images and when I right click click on see photo, the area of the image disappears and no picture appears.

    I can't see any of my email accounts.

    Help, please.

    ==============================
    It seems that the pictures are not sent.

    Try to send a picture to yourself a
    your phone and see if you can see.

  • I can't see the images in miniature with windows 8

    I can't see the images in miniature

    All my images showing the image of a mountain and only I can see it to open the image, how do I see the images?

    I can't see the images in miniature

    All my images showing the image of a mountain and only I can see it to open the image, how do I see the images?

    Hello

    Looks like you are describing the view thumbnails of image files.

    Open File Explorer , and then click the view tab in the toolbar.

    On the right-hand side, click Options.

    In the Folder Options window, click the view tab.

    Remove the check mark from the option always show icons, never thumbnails .

    Click Apply/OK.

    The results of the tests.

    Concerning

  • I do not see the image when I layer 2 images

    I try to layer 2 in PS JPEG files and tried to open the 2 files and copy / paste it and also tried to drag and drop.  A new layer is created, but I do not see the image so that I can resize.  Went through all the tutorials and answers to similar questions but no luck.  Tired - I'm sure this must be a very simple thing to do.  Thank you.

    I figured well tones to be involved, but with a jpg that wouldn't be a problem anyway.

    What did you do for troubleshooting so far?

    Restoration of preferences after checking all the presets custom like stocks, models, brushes etc. have been saved can be a good starting point:

    https://helpx.Adobe.com/Photoshop/KB/basic-trouble-shooting-steps.html

  • When I import my photos into lightroom, the images are completely black, so I can only see the image in the browser. How can I solve this?

    When I import my photos into lightroom, the images are completely black, so I can only see the image in the browser. How can I solve this?

    Go to Lightroom preferences

    Click the performance tab

    Deselect the graphics processor

    Restart Lightroom

    Kind regards

    ~ Mohit

  • After the last LR update is not seeing the images on the iPhone to import?

    Until this last update I could directly import photos from my iphone.  Now, LR is not all the photos (there is no phone is connected).

    Thanks for your reply...

    In fact, the issue has been resolved - and it seems to do more with the end of the phone - possibly after a recent update it?  I had to open my phone and 'Trust' of the computer - something that's never happened before - but then I could see the images. (LR seen my phone before that but not images)

    I discovered this because I tried to open the preview and a message "Please unlock iphone".

  • I do not see the image in Camera raw program?

    I use Photoshop cloud first. I can see the images in bridge, but when I click on the image and go to raw space camera I see no picture. I don't see the blue screen. Photo was taken with the Canon 7DmkII and it in CR2 file?

    Disable "Use graphics processor" in the preferences.

  • If I Zoom in an image appears a large black squares and I do not see the image, I use a CC 2015 Photoshop in a Mac, can anyone help me please?

    If I Zoom in an image appears a large black squares and I do not see the image, I use a CC 2015 Photoshop in a Mac, can anyone help me please?

    There are three things to try. If this image has been opened through Adobe Camera Raw 9.0, unchecking the GPU in ACR preferences. 9.1 is up-to-date and should have corrected it.

    Second: Photoshop Preferences > Performance > GPU settings advanced, tamp him drawing to this Basic Mode.

    If it does not, uncheck the box "Use Graphics Processor" in Photoshop preferences until there is a fix.

    I don't think that OSX allowed for graphics drivers updated by author GPU like Windows does.

  • When you try to crop an image in Lightroom develop I get a blue screen of overlay and can not see the image

    When you try to crop an image in Lightroom develop I get a blue screen of overlay and can not see the image. I uninstalled and reinstalled but same result. How can I get this reset to display the selected image and handles of the crop?

    Go to your Lightroom preferences, the performance tab and uncheck the box "use GPU processor."

Maybe you are looking for