Displaying a saved image

Hi,
In my app, after I save the image (as JPG file) in the App's sandbox, I am able to read it back in the same execution instance of the app, and the picture is displayed. However, when I quit the app and reload the data, the image is not displayed. There are no errors reported on the read. Has anyone run into this issue?
Thx, Sam

Hi Scott,
Thanks for you response and suggestions. I made sure that the Image files are present. I get the App's sandbox location (which changes every time it is launched) programmatically and append "/Documents" to it to complete the path before I write/read the Image files. I can see them in the Finder also. The following shows that:
1. The sandbox location is different for each invocation of the app
2. The image files are present at each invocation
Sam.
First compile/run: (Save the image from the view as "1.jpg")
2009-07-18 09:30:18.480 iNotate[1379:20b] /Users/sam/Library/Application Support/iPhone Simulator/User/Applications/4F18313D-BD72-4EB9-B3B2-9C2F1F74BB66/Documents/1.jp g
sams-imac:~ sam$ ls -l "/Users/sam/Library/Application Support/iPhone Simulator/User/Applications/4F18313D-BD72-4EB9-B3B2-9C2F1F74BB66/Documents"
total 1992
-rw-r--r-- 1 sam staff 457423 Jul 18 09:30 1.jpg *<<<< able to load the image*
Second compile/run: (Load the image in the view from "1.jpg")
2009-07-18 09:34:49.480 iNotate[1379:20b] /Users/sam/Library/Application Support/iPhone Simulator/User/Applications/CFB8E542-2BE2-42AA-B559-FA22D919DFDE/Documents/1.jp g
sams-imac:~ sam$ ls -l "/Users/sam/Library/Application Support/iPhone Simulator/User/Applications/CFB8E542-2BE2-42AA-B559-FA22D919DFDE/Documents"
total 1992
-rw-r--r-- 1 sam staff 457423 Jul 18 09:30 1.jpg *<<<< file read, no image shown*

Similar Messages

  • Saved image displays differently outside Photoshop

    When I save an image I've been working on in Photoshop, then open the saved file outside Photoshop, the image looks quite different than it does inside Photoshop, much drabber and less saturated. I have both Photoshop and the display program set to sRGB.  I figure that I should have consistency within the monitor, whether it's calibrated or not.  I'm sure I'm missing something basic here.  I'd appreciate any help here, because my prints wind up drab, too.  Many thanks!

    LBJack wrote:
    I overlooked one switch in the Save dialog.  Now the images display correctly.
    Can you be more specific, please?
    Were you saving images without a color profile before, and some application(s) in your system were displaying them improperly?
    Problem is, in that case one wouldn't really expect to see the kind of difference you describe unless your document profile really wasn't sRGB IEC61966-2.1.
    Is it possible you're editing your images in the Adobe RGB 1998 color space?  That could happen if you're opening images through Camera Raw, as the color space it's set to deliver is configured separately (via the link at the bottom-center of the Camera Raw dialog) from the Photoshop defaults.
    By the way, if you don't already know, you can easily set the status block in the lower-left of the Photoshop window to show you the color space of your current document:
    -Noel

  • How to display a binary image in a webpage?

    Hi,
    I want to display a binary image in a webage. The image has been stored in a DB as binary format. I am using servlet. How could I retrieve it and display it on a webpage? Could you give me some suggestions?
    I have read some metrial about JAI, the method 'createImageEncoder( )', which seems very helpful! I am on the right way, right? Thanks for your any comments!
    Best Regards,
    Hai

    Here is my idea to display the pic on the webpage:
    The pic is stored in DB as binary, after retrieving it, the binary data will be converted to JPEG pic. Then, the pic will be saved to the local machine automaticly. After that, I get the pic's SRC, and use html display it.
    My code is as follow (not completed), some errors in it.     public static String getPayoffSRC(Services serv, long fileId)
                                                                    throws FileNotFoundException,
                                                                  DBException,
                                                                  DbFileNotFoundException,
                                                              IOException {
            BufferedImage buffy = new BufferedImage(300, 400,
                                                        java.awt.image.BufferedImage.TYPE_INT_RGB);   
            FileOutputStream out = new FileOutputStream(serv.getFileManager().getFileDb(fileId).getFileName());
            JPEGImageEncoder jencoder = JPEGCodec.createJPEGEncoder(out);
            JPEGEncodeParam enParam = jencoder.getDefaultJPEGEncodeParam(buffy);
            enParam.setQuality(1.0F, true);
            jencoder.setJPEGEncodeParam(enParam);
            jencoder.encode(buffy);
            out.close();
            return Pic's SRC,
        }

  • Image path displays instead of image

    Firefox v20.0.1, Win7 32 bit.
    This web page ( http://zone.ni.com/devzone/cda/epd/p/id/5336 ) does not display the "flowchart"image at the bottom of the page immediately following the text "The following is a map of other documents..." On a correctly working page, the image is a flowchart "navigation" image that opens new pages depending on where you click on it. In firefox only a box with an ftp path to the image is displayed in its place. I have seen the problem on other web pages as well.
    Actions taken:
    The pages displays correctly in IE v10. This problem happens on one computer. Different computer, same firefox version displays correctly. Different computer older firefox version (v17?) displays correctly.
    * I have tried disabling all plug-ins and extensions.
    * I have created a new profile. Seems like the first time I did this, the page displayed correctly, but when I refreshed (F5) the image is gone and the ftp path box is displayed. Subsequently created new profiles do not display the page correctly.
    * I have tried resetting Firefox and the page still is not displayed correctly.
    Troubleshooting:
    Ctrl-shif-K, opened the Web Console, cleared the console output, refreshed the page by pressing Ctrl-F5. The following is several lines following the first error on the console:
    [09:12:29.360] Unknown property '-moz-border-radius'. Declaration dropped. @ http://zone.ni.com/widgets/share/addthis/1.0/css/share.css:11
    [09:12:29.360] Expected declaration but found '*'. Skipped to next declaration. @ http://zone.ni.com/widgets/share/addthis/1.0/css/share.css:13
    [09:12:29.406] GET http://ct1.addthis.com/static/r07/core076.js [HTTP/1.1 200 OK 167ms]
    [09:12:29.392] Unknown property 'size'. Declaration dropped. @ http://zone.ni.com/css/global/us/zoneprint.css:15
    [09:12:29.392] Expected declaration but found '@bottom-center'. Skipped to next declaration. @ http://zone.ni.com/css/global/us/zoneprint.css:17
    [09:12:29.497] GET http://zone.ni.com/css/global/us/thecore.css [HTTP/1.1 200 OK 26ms]
    [09:12:29.452] Expected identifier for class selector but found ' '. Ruleset ignored due to bad selector. @ http://zone.ni.com/css/global/us/thecore.css:115
    [09:12:29.453] Error in parsing value for 'filter'. Declaration dropped. @ http://zone.ni.com/css/global/us/thecore.css:259
    [09:12:29.453] Error in parsing value for 'cursor'. Declaration dropped. @ http://zone.ni.com/css/global/us/thecore.css:259
    Any help is greatly appreciated.

    You can remove all data stored in Firefox from a specific domain via "Forget About This Site" in the right-click context menu of an history entry ("History > Show All History" or "View > Sidebar > History") or via the about:permissions page.
    Using "Forget About This Site" will remove all data stored in Firefox from that domain like bookmarks, cookies, passwords, cache, history, and exceptions, so be cautious and if you have a password or other data from that domain that you do not want to lose then make a note of those passwords and bookmarks.
    You can't recover from this 'forget' unless you have a backup of the affected files.
    It doesn't have any lasting effect, so if you revisit such a 'forgotten' website then data from that website will be saved once again.

  • Some JPG images, stored in DB, do not display on screen/image item.

    Hi friends,
    I have a form to save and retrieve images (JPG, GIF, TIF) to and from DB, using WEBUTIL_FILE_TRANSFER.CLIENT_TO_DB and CLIENT_IMAGE.WRITE_IMAGE_FILE respectively.
    It’s working fine, but with few JPG images, it stores in DB but do not display on screen/image item.
    Secondly, if I try to retrieve and write this JPG to OS (using CLIENT_IMAGE.WRITE_IMAGE_FILE), it prompts error “FRM-47101: Cannot write image file”.
    Environment:
    Forms [32 Bit] Version 10.1.2.0.2
    OS XP Pro 2002 SP3
    Oracle DB 11g Enterprise Edition Rel. 11.1.0.7.0 - 64bit
    Any help will be highly appreciated.

    Hi,
    I have done a workaround here, which worked for me.
    My requirement is to direct save images in DB. So my system was just saving images without knowing if picture would display on form or not later.
    I created a (non-DB) image item on form and added a code (CLIENT_IMAGE.READ_IMAGE_FILE) to place image in this image item, if it successfully display image then save image directly in DB using code (WEBUTIL_FILE_TRANSFER.CLIENT_TO_DB).
    Note: - If CLIENT_IMAGE.READ_IMAGE_FILE fails it raises exception and it means image has invalid format/internal data header and system does not save image in DB.
    Now I have a kind of a filter to stop saving pictures which do not display later on form. :)
    Edited by: user12173428 on 29/09/2011 16:38

  • Displaying the layer image in a Flex panel

    Hi,
    I need to display the contents (image) of the active layer in a Flex panel. Was thinking along the lines of saving the layer as a temporary image and then loading it into an Image control. But is there a better/less messy way than this?

    I want to know this too.

  • I am using adobe photoshop cs6. I am facing a problem. When i save any image as "save for web". After saving image it show cropped. An image show many parts of the image after saving the image. Please help me. Thanks in advance.

    I am using adobe photoshop cs6. I am facing a problem. When i save any image as "save for web". After saving image it show cropped. An image show many parts of the image after saving the image. Please help me. Thanks in advance.

    Just go back in photoshop and use the Slice Select tool, then just click and select the slice and hit delete - if you're not sure which one is the active slice just right click and find the one that has the Delete Slice option.
    It's possible you either added the slices by accident or if you received it from someone they just had the slices hidden. For the future, you can go to View > Show > Slices to display (or hide) slices.

  • N96 capturing but not saving images

    Hi,
    I've had an N96 for ages without issue but recently it has stopped saving images.
    Camera works fine, can take photos and they display on the screen as captured but then, unlike before, they are not automatically saved.
    Have checked memory space - loads left
    Restored camera settings - no change
    Have checked other folders and "all photos" rather than just gallery - still no sign of latest image(s)
    Any help..?

    Rob, the option to retain the original Raw file (in this case CR2) is in conversion to DNG done from the Library module, not to conversions done during importation when Copy as DNG is selected, because in this case the original remains on the card.
    CDPhoto, if, on the Import page, you select Copy instead of Copy as DNG, your files on the hard disc will be CR2s. If your really do want them converted to DNG, in the right side panel select File Handling/Make a Second Copy To: and designate a location. The second copy will be CR2.

  • Saving images from Muse gallery.

    Hi,
    My client has recently addressed an inquiry to me. He was trying to download images from any gallery-page on the website that i designed from him: http://www.andreyisakov.com
    It is a simple gallery created with a lightbox slideshow widget.
    However, it is only possible to save the entire webpage, i.e. the gallery as a whole. There seems to be no way to save a single image (tried in Safari and Chrome both on Win and Mac).
    Does anybody know the solution to the problem or a workaround making it possible to save images from Muse gallery?
    Many thanks in advance!

    Hi
    Users can save the image displayed on page with a right click action > save image.
    Are you looking for some specific function for saving image files on page ?
    Thanks,
    Sanjit

  • Newly saved images not showing in Library

    When using LR 2, I export to PS CS3 to make some final corrections. I save these final images as both a PSD and JPG. When first using LR 2, the newly saved images were showing in the Library>Folders section immediately (without having to synchronize). I was making some preference changes recently I must have changed something that I didn't intend, because now the only way I can get the saved images to display is to synchronize. Anyone know what I need to change back to get my images to immediately show in the Folders (which also allows them to show in the grid and film strip) again?

    This is discussed in excruciating detail in this thread:
    http://www.adobeforums.com/webx/.59b5f883/217

  • I saved images from an imessage.  now when I open Imessage, the pictures will not go away. When I press "done" the pictures remain. Cannot send a message

    I saved images from an imessage.  Now when I open Imessage, the pictures are displayed on the screen.  When I click on "done" the images do not go away.
    Therefore, I cannot send a message.

    Quit the app completely and try again. Go to the home screen first by tapping the home button. Double tap the home button and the task bar will appear with all of your recent/open apps displayed at the bottom. Tap and hold down on any app icon until it begins to wiggle. Tap the minus sign in the upper left corner of the app that you want to close. Tap the home button or anywhere above the task bar.
    Or try this.
    Reboot the iPad by holding down on the sleep and home buttons at the same time for about 10-15 seconds until the Apple Logo appears - ignore the red slider - let go of the buttons.

  • "error while saving image"

    has anyone had the problem where, when they select option and tap an image (in my case i pulled one from my email using an image i uploaded from my drive) and gotten an error that says "there was an error saving image" and your only option is 'ok'? i've read other forums and understand that jpeg's are the ideal form, and this had a .jpg extension.
    any thougths anyone?
    so many thanks in advance.
    -wren
    Post relates to: Pixi Plus p121vzw (Verizon)

    hey thanks , but my jdbc pool and driver is fine. what may be the problem and I am not able to change the type to BlobDomain in eo. The type i Blob only may be this is the problem how can I change it to Blob Domain

  • Saving images from camera raw in new CC suite

    Hi Im having trouble re saving images from new adobe cc bridge camera raw, images once saved then show in bridge with no adjustments done in camera raw and the images are downsized to KB size images even from a 9.20mb raw image, Ive looked at setting or rather preferences and totally lost please help!!
    Thank you
    Jon

    This forum is actually about the Cloud, not about using individual programs
    Once your program downloads and installs with no errors, you need the program forum
    If you start at the Forums Index http://forums.adobe.com/index.jspa
    You will be able to select a forum for the specific Adobe product(s) you use
    Click the "down arrow" symbol on the right (where it says ALL FORUMS) to open the drop down list and scroll
    http://forums.adobe.com/community/bridge

  • Saving image to a folder not working on azure

    I am saving image
    files to a folder in my application and saving its path in database . Image uploads working fine when I am running locally
    and its path is also storing.When I deployed it on azure it
    gives an error that " An error occurred while processing your request ". I have two tables in my database . First one where text is saved is working fine on azure but image upload thrown this error.
    I am using this code
    to upload
    image and its works fine when I am running locally. Need help ?

    Hi,
    Have you made any progress ?
    May I ask what application is it that you are running ? You mentioned that it works locally but not when deploying to Azure. Have you checked the connections strings?
    If you are still having any difficulty in understanding the code, perhaps you could post it on the below blog.
    http://blogs.msdn.com/b/onecode/archive/2014/08/28/sample-of-aug-28-how-to-store-the-images-in-sql-azure.aspx
    Regards,
    Mekh.

  • How to display a dynamic image file from url?

    Hey,I want to display a dynamic image file from url in applet.For example,a jpg file which from one video camera server,store one frame pictur for ever.My java file looks like here:
    //PlayJpg.java:
    import java.awt.*;
    import java.applet.*;
    import java.net.*;
    public class PlayJpg extends Applet implements Runnable {
    public static void main(String args[]) {
    Frame F=new Frame("My Applet/Application Window");
    F.setSize(480, 240);
    PlayJpg A = new PlayJpg();
    F.add(A);
    A.start(); // Web browser calls start() automatically
    // A.init(); - we skip calling it this time
    // because it contains only Applet specific tasks.
    F.setVisible(true);
    Thread count = null;
    String urlStr = null;
    int sleepTime = 0;
    Image image = null;
    // called only for an applet - unless called explicitely by an appliaction
    public void init() {
                   sleepTime = Integer.parseInt(getParameter("refreshTime"));
              urlStr = getParameter("jpgFile");
    // called only for an applet - unless called explicitely by an appliaction
    public void start() {
    count=(new Thread(this));
    count.start();
    // called only for applet when the browser leaves the web page
    public void stop() {
    count=null;
    public void paint(Graphics g) {
    try{
    URL location=new URL(urlStr);
    image = getToolkit().getImage(location);
    }catch (MalformedURLException mue) {
                   showStatus (mue.toString());
              }catch(Exception e){
              System.out.println("Sorry. System Caught Exception in paint().");
              System.out.println("e.getMessage():" + e.getMessage());
              System.out.println("e.toString():" + e.toString());
              System.out.println("e.printStackTrace():" );
              e.printStackTrace();
    if (image!=null) g.drawImage(image,1,1,320,240,this);
    // called each time the display needs to be repainted
    public void run() {
    while (count==Thread.currentThread()) {
    try {
    Thread.currentThread().sleep(sleepTime*1000);
    } catch(Exception e) {}
    repaint(); // forces update of the screen
    // end of PlayJpg.java
    My Html file looks like here:
    <html>
    <applet code="PlayJpg.class" width=320 height=240>
    <param name=jpgFile value="http://Localhost/playjpg/snapshot0.jpg">
    <param name=refreshTime value="1">
    </applet>
    </html>
    I only get the first frame picture for ever by my html.But the jpg file is dynamic.
    Why?
    Can you help me?
    Thanks.
    Joe

    Hi,
    Add this line inside your run() method, right before your call to repaint():
    if (image != null) {image.flush();}Hope this helps,
    Kurt.

Maybe you are looking for

  • All in files and documents folder is gone?

    Just upgraded from Lion to Mavericks and all in the documents, picture etc... folder is gone (it's total emty), just like a formatted harddrive :-(. No mails accounts available any more (besides the iCloud account, which I don't really use) The backu

  • Error message when trying to export audio file to DVD

    I recorded an interview on a portable voice recorder and transferred the data into Garage Band by connection of a cable connected to the headphone of the device to the speaker input in the Mac. Garage Band took the audio file. It is 1.5 GB. I did som

  • HDMI audio issue

    I regularly use my l755 to stream video through an hdmi cable to an lcd tv. Recently, when i hook up the laptop to the tv, all other sounds come through the tv speakers except video sounds. This is the case with multiple tvs and video formats, (netfl

  • Service Registry's Dynamic Lookup of BPEL Partner Link not working

    Hi, Software : SOA 10.1.3.1 OS : Windows XP, 2000 I have deployed webservice application (GetMaxOfTwo) which will give me max of 2 values. Registered the WS in OWSM with user authentication. Registered newly generated WSDL in OSR (Oracle Service Regi

  • Migration by external HD: how to?

    I'm going to buy a new intel imac and now I have a imac g5. The problem is that i cannot use migration assistant with both computers bacause the old one is to be sold very soon and before the new one arrives. Can I backup files and settings of the ol