Display image captured after taking photo

/*******
works when "Take Photo" button clicked
********/
function takePicture() {
    var result = blackberry.media.camera.takePicture(successCB);
}

/*******
post processing of photo click event
********/
function successCB(filePath) {
    try{
        blackberry.media.camera.close();
        var imagePath = "file://" + filePath;
        document.getElementById('images').setAttribute('src', imagePath.toString());
        document.getElementById("photoDetails").innerHTML = imagePath;
    }
    catch(e) {
        document.getElementById("photoDetails").innerHTML = e.ToString();
    }
}


//ConfigFile includes the following,  
  • image
  • image

the imagePath variable print successfully-online "file:///store/home/user/camera/IMG-20120118-00001.jpg." but the picture does not appear.

I don't understand what the problem with the code I wrote. path of the image was.

Strangely when I hard imagePath under a src of the image -code, it can show the image. but when I put in successCB() using javascript, it does not work. I tested the functionality of my javascript code in firefox. She works in basic html. I use Blackberry 9700 with os 6 bundle 2921. I need immediate assistance. Please I'm stuck with it for a whole day


Tags: BlackBerry Developers

Similar Questions

  • 3.0.98 (2.1) camera problem: not shown on the big screen after taking photo

    It's strange to me that no one has noticed this earlier. Here's what's happening. When I take a picture, after the message "Capture."... "on the screen that will briefly dark, unlike in 1.5 (or any other phone or camera non-telephone), it is no more that 3-4 seconds while you can see the last picture taken. The captured image will immediately in the small tile in the corner of the screen. Whereas, on the backflip (even with the review of photo 1, 5), the last photo you see and the image that is actually taken can be very different, I see this as potentially troublesome for users. It is if they need to click on the thumbnail of each time they want to check if the picture is good because the thumbnail does not provide any information on sharpness.

    Someone else can also try to take a picture and check if this is the case for all phone?

    Not confirmed - there is no setting to photo review in camera and the photo taken just does not control when you take a picture.

    Edit: just looked at my original phone and it doesn't have a framework of control of the image, it just makes.

    I know that when I use my digital camera still disable the functionality of review when I need take snapshots of back to back quickly. A setting to turn this power would provide the best user experience.

  • Does not display Image webcam after upgrade to XP PROFESSIONAL


    I called and spoke with the technical support of Lenovo. After the restoration of the original image of the XP Home Edition system, the camera still does not work and Lenovo technology composed in my computer to confirm that it is a faulty webcam. I'll post an update on my tech support experience in a short time (in the main forum).

    John in Indiana

  • Import Photos with Image Capture

    Hi people, I do not know if I am posting this in the right forum. If this isn't the case, feel free to have moved him.

    I did some research trying to help this user and also to learn.

    Import all pictures (including photos from iTunes backup) iPhone to mac

    I have a Mac and a PC but I use the PC for my main photo library. When I import pictures from my iPhone to the PC using the Import Wizard, Windows 10 maintains a cache to remember photos that have been previously imported so that they don't re - import. I can post the path to the cache but it is useless, the cache is a file system, called "PreviouslyAcquired.db".  If I remove photos from my PC which have been imported and you want then re - import, I have to reset this cache (delete) so that the photos to import again. Otherwise the photos already imported are ignored and only new ones appear on the Import Wizard.

    The reason for this post is that I wonder if OS X (Photos or Image Capture) retains the same type of cache. I also wonder if this is the reason why the OP on the wire above cannot re - import the photos that have been restored from their old iPhone.

    So my questions are:

    (1) with OS X Image Capture, can a photo to reimport previously imported?

    (2) no OS X maintains a similar to Windows cache and if so where is it and how it is reset? I looked on my MBP 10.11.5 but nothing helped. It is obviously not the iPod Photo Cache - that one is associated with iTunes synchronizes only. I also started the Image Capture, but cannot see any parameter for this purpose.

    (3) I.C. will give me the opportunity to re - import if it imported the same before pictures? I could make an experience, but the bright minds here probably know the answers.

    Any info appreciated...

    I have found no Apple documentation on it, but when I use the Image Capture to import from a camera or card in a folder in the Finder, I can import the same items over and over again. There is no control for imports carried out previously.

    Only when I import using a photo app that maintenance photo library (Photos, iPhoto, Aperture) pictures will be checked for duplicates when importing.  But even with Photos, iPhoto, Aperture can I restore deleted photos by import since the device again, if I removed them from the library.

  • Problems with image capture.

    Anyone has this problem. When I connect my iPhone 5 to my macbook and use Image Capture to transfer photos image capture will sometimes see not all the photos. Ex I have 25Photos on the phone, but only sees the image capture 20. The other 5 are displayed.

    Several other similar reports here. No solution.

    If your workflow allows it, use my photo stream to sync your iPhone to your computer. Seems to work more reliably than the manual method.

  • Canon t5i lcd turns off after taking pictures

    I just got my Canon T5i... I noticed that the LCD screen turns off sometimes after taking photos or videos. I don't know why... I did not press the "info" button and it will not turn back even if I press the shutter button to halfway... I know that the camera is still on though because if I press on the screen it will take a picture and this picture is stored on the card (after that I turned off the camera completely and wait a few minutes and turn it back on)...

    When the LCD is turned off, I can't get it on... I will touch the screen and try to press the display button to see photos, but it will start...

    and Yes, I disabled the auto lcd off etc...

    Here is a little video I made sure to show you what I saw. http://www.YouTube.com/watch?v=TroZa5xLduM

    Should I have a defective camera?

    I noticed in the video that she has Lieview, take a picture and then the picture does not appear, and there is more no Liveview display.  She then press the Liveview button and nothing happens. There's no other option I can think of that allows you to turn off the LCD screen back when you're in Liveview. That tells me that the device is defective.

  • Image capture does not load the thumbnails of all the photos detected

    MacBook Pro (retina, 15 inches, end of 2013), 2.6 GHz Intel Core i7, 16 GB 1600 MHz DDR3,

    iPhone 6 s, iOS 9.0.2

    OSX using 10.11.5, running the Image Capture

    Connecting iPhone and started the image capture.

    Capturing images don't load picture thumbnails.

    Left the application here to give time for it to load, but still the same

    Exit and restart Capture of Image, some of the miniatures that failed to load previously managed to load, but a lot are all still not loaded.

    Exit and relaunch Image Capture, some of vignettes that has not charged the 1st time and instructed the 2nd time, failed to load now. seems to be back to square 1.

    Its a hit and Miss sort of thing.

    This has been hard for some time already, can't remember how far behind you.

    Any advice would be greatly appreciated.

    Thank you.

    Hey there, at0m87!

    Thank you for using communities Support from Apple. I understand from the information you provided, when you connect your iPhone and open picture Capture, there are missing thumbnails. I manage my own photos on my Mac, so I can understand wanting and needing these thumbnails to display correctly. I have a few things you can try to help him.

    1. Eject your iPhone from the computer and stop Capture of Image. Press in and hold the SHIFT key on your keyboard while reopening of Capture of Image again. Connect your iPhone and the test of the miniatures.
    2. Restart your Mac. Stop the Image Capture, eject your iPhone from the computer, and then click the menu  Apple in the upper left corner of your screen. In the menu, choose "restart". When you start the computer, open picture Capture and connect your iPhone. Test the thumbnails.
    3. Look for updates on Mac and your iPhone.

      The following article will help to check and install updates for your Mac.

      Update the software on your Mac

      The following article will help you to check and install updates for your iPhone.

      Update the software on your iPhone, iPad or iPod touch iOS

    4. Check Image Capture thumbnails in safe mode. Eject your iPhone from the computer, and then follow the steps outlined in the article below the link to start in safe mode

      Try safe mode if your Mac does not end commissioning

      Even if the title of the article is not specific to your question, safe mode is always a good step to take. It performs several checks of your system during the boot process, and disables some software that could cause a conflict.

    5. Try the Image Capture in a new user account. The article in the link below will give you instructions on the implementation of a new account, as well as some information as to why this may be useful.

      How to test a question in another account on your Mac.

    Have a great day!

  • image capture does not work with the epson scanner after macOS sierra upgraded

    Image capture no longer works with epson scanner v800 after upgrade. I installed the new drivers from epson, and it still does not work. Just says: "waiting for scanner", but nothing ever happens.

    Drivers Epson macOS 10.12.x specific https://www.epson.com/cgi-bin/Store/support/supDetail.jsp?oid=256062 & infoType = Do wnloads & platform = OSF_M_X12 do not work?

  • After taking a picture, and expand you the enlarged image can be saved. Thank you

    After taking a picture, and expand you the enlarged image can be saved. Thank you

    It is already saved, you have just expanded in the same way as it did on the screen of your computer.

  • I can't display image icons when working with my photo folder. How can I see the photos without having to click on them in preview mode?

    I can't display image icons when working with my photo folder. How can I see the photos without having to click on them in preview mode?

    -It used to work and for some reason, now it does not work

    Greetings, d_chiuch1104,

    There is one thing that I know that you need to check that COULD be your problem.  Open Control Panel (in Classic view) and click Folder Options (or, in Control Panel, click on appearance and personalization and then Folder Options).

    Open the view tab and make sure that "Always show icons, never thumbnails" is NOT checked.

    It would be good to hear from you as to whether that was the problem!

    GL - Bob

  • Windows Live Photo Gallery: Error Code 0 x 8007000. an error is preventing the photo or video to be displayed, unable to display images.

    I have Windows 7 64 bit. I can't see the photos with Windows Live Photo Gallery. If I try I get this error: error code 0 x 8007000. an error is preventing the photo or video to be displayed, unable to display images. I can open the images with other applications.

    Can you access the properties of the files and check your username on the Security tab on the computer that has problems with them, opening

    Not being able to do something with these points of shared files to a problem of permissions with the files.

    You should also ask for help on this forum,

    Sometimes, it takes 3 or 4 days before a tech react,

    http://windowslivehelp.com/forums.aspx?ProductID=20

    Better put online now.

  • Edited in Photoshop does not correctly display in Lightroom after recording the images

    Hello

    I recvently EU cloud Adobe and upgraded from Lightroom 3 or 4.  Since the upgrade I had problems with Lightroom not correctly display images edited in Photoshop.  Instead of the photoshop image, it creates a new jpeg image and appears in the library.  the PSD is not loaded into the library.

    I take a jpeg image of my library and shoosing the change based on Photoshop.  By selecting Edit a copy, I'm tried with the original and edit a copy with lightroom adjustments as well as with the same results.

    In Photoshop, I duplicate the base layer, the image upscaling, running some filters, addition of volunteering adjustment layers.

    I save the image in Photoshop format in the original folder where the original jpeg was in the Lightroom library.  I record with maximize compatibility on.

    When I return to Lightroom, the catalog displays the two files, the original jpeg and a copy identical to it, NOT the new file in photoshop with alterations.  If I go in the folder images occupy in the Finder using the Finder command show two images link to the same original jpeg format.  The modified file to photoshop is there in the folder but does not appear in Lightroom unless I drag and drop it.

    I've disabled all the filters and ensured that the sort is sort by name.  The image does not automatically appears in Lightroom after mounting.  Any suggestions?

    Thanks for any help!

    PS. I'm not looking for the subject, and there are discussions since 2007 and lightroom 2 but their solution was to start from scratch basically and I have a carefully labeled, starred and labeled catalog of more than 30 000 images and really don't want to do that

    Images that are edited in Photoshop will be displayed automatically in Lr only when the image file saved in Photoshop is identical to open LR.

    You say you open a jpg of Lr, then edit in PS-among other things-adding a few layers. Layers are not supported in JPG format, so you must either save it as a psd or a copy in jpg.

    In both cases, is not the same image as the one opened in Lr file, so it will have to be imported into Lr appears. If flatten you your image after editing in PS and then do a to your JPG - not a - it will be displayed in Lr.

    PS: the only exception is when you open a raw image from Lr into PS and you save it to PS in the format of file specified in Lr for external mounting. The saved file is automatically displayed in LR.

    Post edited by: web-Weaver; PS added

  • display a capture image using Subvi

    Hi, I have a problem... I hope that it is easy to solve.

    I did a VI using enter IMAQdx so that I can acquire images from a USB camera and record a video. It works great and I acquire and store the video. The problem is that when I try to do this as a Subvi VI it does not work. For the Subvi I use a terminal to display the images. When I run the program I do not see any image (all of the images because I use grab and looks like a video), but it seems that woks of Subvi because when I open the file where the video was recorded, the video is there but I can't see at the moment on the front panel...

    Any suggestions?

    Your main vi will not update the image that you acquire in the sub vi because you will perform your sub vi inside a loop (I guess). What you can do is to create a global variable of indicator to display Image and update the indicator inside the Sub vi. In the main vi create another loop while and read the global variable and display it in the main vi. Need a better solution? Please your postal code.

  • iPhone 5 s 10.0.2 update cannot use image capture

    I have a mac pro running 10.6.8. Since I upgraded my iphone 5s today 10.0.2, I am unable to use Image Capture on my mac to transfer your photos, iphoto does not work either. I get a message on my phone to the computer I chose to 'trust', then I get an error message in the Image Capture in saying that I have to enter a password on my phone but the password is not displayed at the time.

    Hello pwexford,

    Thank you for using communities of Apple Support. It is my understanding that you were unable to use transfer pictures from your iPhone to the Image Capture. It is very important to save valuable images of your phone. I want to make sure that you are able to transfer this content correctly.

    His expected behavior to be prompted for a password if the phone is locked. Please, try the following steps.

    1. Connect your device to your computer, and then turn on the unit.

      If the device is locked with a password, enter it.

    2. In the Image Capture, select the device from the list of devices.
    3. Use the buttons at the bottom of the window to Capture of Image to display thumbnails in a list or as icons to change the size of thumbnails, or to rotate or remove images.
    4. In the pop-up menu to import to, choose where to save images or what application to use to open the image.
    5. To import only some of the photos, select the photos you want, and then click Import. To import all the photos, click Import all.

      Choose AutoImporter menu drop-down ' connection opens this [device] ' to transfer images from a device to your computer whenever you connect it to your computer.

    6. Select "Delete after import" to remove parts of the instrument after transfer to your computer. You can also select individual items on your device, and then press Delete on your keyboard.

    Image capture: Image transfer and other elements of your device

    Have a wonderful day!

  • Deleting photos on an iPhone 6 after importing Photos

    I used 6 (iOS 9.2.1) photos to import photos from my iPhone but can't seem to delete them from my phone because I'm running out of space. I can't find an option in Photos for me to do. I use iCloud library but tired of receiving messages telling me I am out of space and need to buy more. I was using the iPhone Optimize Storage option, so when I try to turn off iCloud, he tells me I'm losing photos. I guess that it space to store all of the photos uploaded to iCloud original is much more than the space I have left on my phone. So why would I back up my photos to a photo library. Yes, I could go through frame by frame making sure that they are all there, but there are more than 2500 and would prefer to delete automatically the picures copied after importation. Make sense?

    Import Photos Panel has a check "Remove items after importing" below the toolbar. If you enable this, before importing items, they will be automatically deleted.

    You don't see this check box, because you have activated on your iPhone photo library iCloud.  As long as you use iCloud photo library, the Mac cannot delete the photos, because they are stored in iCloud and only mirrored on your iPhone.

    "Remove items after importation" is to risk anyway. I would not use this option. First, it is safer to check if the import was successful before deleting the photos from the iPhone.  Sometimes it happens that photos will be removed from the device, even if the import was not successful.

    So why would I back up my photos to a photo library. Yes, I could go through frame by frame making sure that they are all there, but there are more than 2500 and would prefer to delete automatically the picures copied after importation. Make sense?

    Since all the pictures are in the library of iCloud, download them by creating a new library of Photos on your Mac and enable it in your library to iCloud.  It will download all photos in iCloud.

    You are you sure, that all the photos are safely on your Mac, disable iCloud photo library on your iPhone.  Then you can connect the iPhone to a USB port and use Image Capture to remove all the photos from the iPhone.

    You can also download pictures from iCloud by using the web interface of your iCloud to www.icloud.com account.  Launch the Photos.app on this page and select the photos to download.

Maybe you are looking for