Problem in downloading graph as image

Hi All,
I'm trying to download pie graph as image when click on command link, At first time working fine when im suppose to click command link again graph is not getting downloaded.... here comes code...
<af:commandLink text="Save As Image" id="image">
<af:fileDownloadActionListener method="#{debtors.savePieAsPNG}" contentType="image/png" filename="agedDebtorsPieChart.png"/>
</af:commandLink>
public void savePieAsPNG(FacesContext facesContext,
OutputStream outputStream) {
try {
debtorsPie.getImageView().exportToPNG(outputStream); /* 'debtorsPie' binding used in jspx page*/
outputStream.flush();
catch (Exception e){
e.printStackTrace();
Image is not downloading more than once
Please help on this...

Hi All,
I'm trying to download pie graph as image when click on command link, At first time working fine when im suppose to click command link again graph is not getting downloaded.... here comes code...
<af:commandLink text="Save As Image" id="image">
<af:fileDownloadActionListener method="#{debtors.savePieAsPNG}" contentType="image/png" filename="agedDebtorsPieChart.png"/>
</af:commandLink>
public void savePieAsPNG(FacesContext facesContext,
OutputStream outputStream) {
try {
debtorsPie.getImageView().exportToPNG(outputStream); /* 'debtorsPie' binding used in jspx page*/
outputStream.flush();
catch (Exception e){
e.printStackTrace();
Image is not downloading more than once
Please help on this...

Similar Messages

  • Problem of downloading a specific image

    Hi ,
    I am using AFNetworking to download the image of url by calling the method setImageWithURLRequest:requestWithURL:success:failure.
    There is an error just only with the image with above url. The details of the error message is the below:
    http://images.craigslist.org/00A0A_hwaDDk0yL63_600x450.jpg,   Error Domain=com.alamofire.error.serialization.response Code=-1011 "Request failed: not found (404)" UserInfo=0x8e5e8a0 {com.alamofire.serialization.response.error.response=<NSHTTPURLResponse: 0x8d24c20> { URL: http://images.craigslist.org/00A0A_hwaDDk0yL63_600x450.jpg } { status code: 404, headers {} }, NSErrorFailingURLKey=http://images.craigslist.org/00A0A_hwaDDk0yL63_600x450.jpg, NSLocalizedDescription=Request failed: not found (404), NSUnderlyingError=0x8d24e40 "Request failed: unacceptable content-type: text/plain"}
    Any ideas? Thanks you

    ok i think i did something bad...
    i figured out that the reason my ipod mini wasnt updating [i have a topic in ipod mini w/ mac forum too] was because of this album was still downloading. so its been over 24 hours since i started it, and then it became stuck on track # 9 [out of like 20 something or close to 30 songs] to i decided to stop this and do a force quit. i did so, opened it back up again, and now my ipod mini is updating but im stuck with only 8/24 songs of an album that i paid for...
    what do i do ?!?!?!?!?
    PowerBook G4 17" Mac OS X (10.4.3) first mac <3 please help =]

  • Problem in downloading an html page that contains images

    Hi,
    This is surekha
    I am facing a problem in downloading an html page that contains images
    The file is downloading , but when I access the the downloaded file it displays X marks in the place where images r present....
    How can i download a html file along the images it contains
    Please help me ...........

    Try posting at the Web Development / Standards Evangelism forum at MozillaZine. The helpers over there are more knowledgeable about web page development issues with Firefox. <br />
    http://forums.mozillazine.org/viewforum.php?f=25 <br />
    You'll need to register and login to be able to post in that forum.

  • Problem wihle downloading images

    This browser is really faster and better.
    I have a problem when I want to download images: only desktop as location works. Save as... and any other location, nothing happens.
    Pentium4 DualCore 3.0   Windows XP Pro  

    I found that under Windows Vista x64, when downloading extremely large images to view and scrolling at the same time it freezes up. I'm talking about Version 3.02 of Safari.
    Also the the maximizing and minimizing in the Areo enviroment of Vista is missing the animation of the expanding and shrinking window.
    Also when downloading files to the computer it changes the download name to something like Complete.php and I have to manually change the file name to the original file source name.

  • IPad 3: problem downloading Nikon D3100 images off Apple Camera Kit SD cardreader

    Hi All,
       I got a new iPad 3 and would like to download images taken with a Nikon D3100 through the SD card reader.  When I insert the SD card (SanDisk 64 GB Ultra) into the Apple Camera Kit SD card reader, a message immediately pops up saying that "Content Not Available: Cannot Read the Connected Storage Media".
      I can see the images on the camera so I know they have not been erased or corrupted.   I am traveling and do not have a USB cable.  The SD card was  previously formatted in the camera.  
      Any thoughts or suggestions? Is there a compatibility issue for Nikon with iPhoto?
      I am on the road and very much like  to be able to download and share images with family ASAP.  
      Thanks

    You import photos using the Photos app, not iPhoto app.
    If you can get access to your friends computer, there's another way. You can use a USB flash drive & the camera connection kit.
    Plug the USB flash drive into your computer & create a new folder titled DCIM. Then put your movie/photo files into the folder. The files must have a filename with exactly 8 characters long (no spaces) plus the file extension (i.e., my-movie.mov; DSCN0164.jpg).
    Now plug the flash drive into the iPad using the camera connection kit. Open the Photos app, the movie/photo files should appear & you can import. (You can not export using the camera connection kit.)
     Cheers, Tom

  • Trying to Download a Software Image to Cisco 2800 series router through TFTP Using the tftpdnld ROMmon Command

    Trying to Download a Software Image to Cisco 2800 series router through TFTP Using the tftpdnld ROMmon Command
    and I am getting an Error , I cant figure out what I am doing wrong. I have also pasted my display down here can someone help me out, thanks in advance, I am still new to this utility.
    My questions are How do you direct this utility to point to the desktop or the TFTP folder
    does FE_PORT: Fast Ethernet 0 imply or point to Fa0/0 on my router
    My router is suppose to have 10.0.0.3 255.0.0.0
    Gateway of 10.0.0.1 255.0.0.0
    My TFTP Server 10.0.0.2 255.0.0.0
    How do I get the MAC address of the Router or the TFTP Server and which one  is required?
    my Ethernet port is 100Mb/Sec I cant tell whether it is full duplex or not so How do i set this FE_SPEED_MODE: Auto???
    =====================================================================================
    rommon 10 >
    rommon 10 > set
    PS1=rommon ! >
    FE_PORT=0
    WARM_REBOOT=
    RET_2_RTS=20:35:55 UTC Thu Sep 25 2014
    BSI=0
    RET_2_RCALTS=
    RANDOM_NUM=1600357627
    ?=0
    IP_ADDRESS=10.0.0.3
    IP_SUBNET_MASK=255.0.0.0
    DEFAULT_GATEWAY=10.0.0.1
    TFTP_SERVER=10.0.0.2
    TFTP_FILE=
    rommon 11 > TFTP_FILE=c2800nm-adventerprisek9-mz.124-24.T4
    rommon 12 > TFTP_CHECKSUM=0
    rommon 13 > SET
    monitor: command "SET" not found
    rommon 14 > set
    PS1=rommon ! >
    FE_PORT=0
    WARM_REBOOT=
    RET_2_RTS=20:35:55 UTC Thu Sep 25 2014
    BSI=0
    RET_2_RCALTS=
    RANDOM_NUM=1600357627
    IP_ADDRESS=10.0.0.3
    IP_SUBNET_MASK=255.0.0.0
    DEFAULT_GATEWAY=10.0.0.1
    TFTP_SERVER=10.0.0.2
    ?=0
    TFTP_FILE=c2800nm-adventerprisek9-mz.124-24.T4
    TFTP_CHECKSUM=0
    rommon 15 > tftpdnld
              IP_ADDRESS: 10.0.0.3
          IP_SUBNET_MASK: 255.0.0.0
         DEFAULT_GATEWAY: 10.0.0.1
             TFTP_SERVER: 10.0.0.2
               TFTP_FILE: c2800nm-adventerprisek9-mz.124-24.T4
            TFTP_VERBOSE: Progress
        TFTP_RETRY_COUNT: 18
            TFTP_TIMEOUT: 7200
           TFTP_CHECKSUM: No
            TFTP_MACADDR: 30:37:a6:49:35:a8
                 FE_PORT: Fast Ethernet 0
           FE_SPEED_MODE: Auto
    Invoke this command for disaster recovery only.
    WARNING: all existing data in all partitions on flash: will be lost!
    Do you wish to continue? y/n:  [n]:  y
    ARP: address resolution for 10.0.0.2 timed out.
    ARP failed with failure code 1.  TFTP transfer aborted.
    TFTP: Operation terminated prematurely.
    rommon 16 >       " not found
    rommon 17 >FE_SPEED_MODE=2
    variable name contains illegal (non-printable) characters
    rommon
    rommon 18 > set
    PS1=rommon ! >
    FE_PORT=0
    WARM_REBOOT=
    RET_2_RTS=20:35:55 UTC Thu Sep 25 2014
    BSI=0
    RET_2_RCALTS=
    RANDOM_NUM=1600357627
    IP_ADDRESS=10.0.0.3
    IP_SUBNET_MASK=255.0.0.0
    DEFAULT_GATEWAY=10.0.0.1
    TFTP_SERVER=10.0.0.2
    TFTP_FILE=c2800nm-adventerprisek9-mz.124-24.T4
    TFTP_CHECKSUM=0
    ?=0
    rommon 19 > tftpdnld [ur]
    usage: tftpdnld [-hr]
      Use this command for disaster recovery only to recover an image via TFTP.
      Monitor variables are used to set up parameters for the transfer.
      (Syntax: "VARIABLE_NAME=value" and use "set" to show current variables.)
      "ctrl-c" or "break" stops the transfer before flash erase begins.
      The following variables are REQUIRED to be set for tftpdnld:
                IP_ADDRESS: The IP address for this unit
            IP_SUBNET_MASK: The subnet mask for this unit
           DEFAULT_GATEWAY: The default gateway for this unit
               TFTP_SERVER: The IP address of the server to fetch from
                 TFTP_FILE: The filename to fetch
      The following variables are OPTIONAL:
              TFTP_VERBOSE: Print setting. 0=quiet, 1=progress(default), 2=verbose
          TFTP_RETRY_COUNT: Retry count for ARP and TFTP (default=18)
              TFTP_TIMEOUT: Overall timeout of operation in seconds (default=7200)
             TFTP_CHECKSUM: Perform checksum test on image, 0=no, 1=yes (default=1)
              TFTP_MACADDR: The MAC address for this unit
                   FE_PORT: 0= (default), 1
             FE_SPEED_MODE: 0=10/hdx, 1=10/fdx, 2=100/hdx, 3=100/fdx,
                            5=Auto (default)
          TFTP_DESTINATION: The flash destination device for the file
                            flash:(default), usbflash0:, usbflash1:
      Command line options:
       -h: this help screen
       -r: do not write flash, load to DRAM only and launch image
    rommon 20 > tftpdnld
              IP_ADDRESS: 10.0.0.3
          IP_SUBNET_MASK: 255.0.0.0
         DEFAULT_GATEWAY: 10.0.0.1
             TFTP_SERVER: 10.0.0.2
               TFTP_FILE: c2800nm-adventerprisek9-mz.124-24.T4
            TFTP_VERBOSE: Progress
        TFTP_RETRY_COUNT: 18
            TFTP_TIMEOUT: 7200
           TFTP_CHECKSUM: No
            TFTP_MACADDR: 30:37:a6:49:35:a8
                 FE_PORT: Fast Ethernet 0
           FE_SPEED_MODE: Auto
    Invoke this command for disaster recovery only.
    WARNING: all existing data in all partitions on flash: will be lost!
    Do you wish to continue? y/n:  [n]:  y
    ARP: address resolution for 10.0.0.2 timed out.
    ARP failed with failure code 1.  TFTP transfer aborted.
    TFTP: Operation terminated prematurely.
    rommon 21 >

    What I notice in the original post is this error
    ARP: address resolution for 10.0.0.2 timed out.
    which says that the router is looking for the 10.0.0.2 server but not getting response to its arp request. Can the original poster clarify for us how the device that has the image file is connected to the router that has the problem? Also what kind of device is 10.0.0.2? Is it a PC running TFTP server software or is it something else?
    HTH
    Rick

  • What release level of code do you get when you download a disk image (ISO/IMG) of a click-to-run Office 2013 product?

    I’ve asked a similar question to this on an Office Community Forum but nobody knows the answer.  So
    I was hoping that an IT professional responsible for installing and deploying Office 2013 might know.
    If you download an installation disk image (ISO/IMG) of a click-to-run Office 2013 product from office.microsoft.com/myaccount (Account Options:
    Install from a disc > I want to burn a disc), what release level of code do you get? 
    Now that Service Pack 1 is available, do you get a disk image with Service Pack 1 incorporated? 
    Or do you still get the RTM (Release to Manufacturing) level of code?

    Diane, thank you for the reply.
    I was hoping that someone who has downloaded a disk image since SP1 became available would be able to confirm that for a fact.
    I have just found a good description of Click-to-Run on Technet that I didn't know existed.  The link is: http://technet.microsoft.com/en-us/library/jj219427(v=office.15)
    The article states:
    "Click-to-Run products that you download and install from Microsoft are up-to-date from the start. You won’t have to download and apply any updates or service packs immediately after you install the Office product."
    This statement is probably true if you click the Install button on office.microsoft.com/myaccount and install "in real-time" over the Internet.  However, I know for a fact that it is not true if you order a backup disk (Account
    Options: Install from a disc > I want to purchase a disc).  All you get is RTM level code (15.0.4420.1017).
    So I still feel uneasy about what release level you get if you download a disk image.  I don't want to download what might be the better part of 1GB of code over the Internet only to discover it is back level.
    Addendum (6 April 2014): I decided to perform an experiment.  I looked at the size of the data on my backup disk which contains RTM level code.  It is 2.04GB.  I then went to office.microsoft.com/myaccount and clicked to download a disk
    image of my Office 2013 product.  The pop-up window that asks me whether I want to Run or Save the file informed me that the size of the file is 2.04GB!!!  I cancelled the download.  I strongly suspect that, if I had continued with the
    download, I would have received the same RTM level code I already have dating back to October 2012.  I think this is awful customer service.  To some extent, I can understand the logistical problems of replacing backup disks lying in warehouses
    waiting to be shipped.  But I cannot understand why disk images on download servers cannot be refreshed quickly.

  • Why cannot I open a downloaded set of images?

    I cannot open a downloaded set of images at once using preview. OSX prompts "... is an application downloaded from the Internet. Are you sure you want to open it?" for the first image in the list that I haven't yet accepted to open, and stops there. When I quit preview and select the set of images and open them, the next image in the list asks for permission. This is a headache and I cannot keep doing this whole day, there are 100s of images in the list. What can I do?

    Thank You to all who responded to my trouble I have solved this problem did the source code of the plugin and everything fell into place)))) Thanks again to all!!!

  • Display problems in Mail messages with image attachment

    Issue: Seeing intermittent display problems in Mail messages with image attachments
    Annoyance level: minor, but Apple techs need to pass it along
    Details: Regardless of mail client sending to iPhone (Outlook, OWA, Yahoo, Gmail) there are intermittent and what appear to be random occurrances of the pic being half rendered and/or the pic never loading (followed by message saying it can't be retrieved from server). In some instances the picture then appears fully rendered without a problem. Note: Image sizes varied from 14KB to 450KB

    Hi,
    I'm not familiar with C#, but if possible try the following:
    1. Removing all thead and tbody tags from the body of the message.
    2. Changing all inline CSS to embedded CSS.
    I've seen a user said the message stopped showing up after making the changes.
    If the issue persists, please note, since Outlook 2007, Outlook opens the HTML Email and converts it to Microsoft Word format before displaying it to the user. What happens during this process is that many CSS attributes and HTML support is completely removed.
    Some of the most notable absences are background-image, and padding and margin support. Hardly can we do much about this, so the message "If there are problems with how this email is displayed, click here to view it in a web browser" is actually
    a good workaround when we face this problem.
    Regards,
    Melon Chen
    TechNet Community Support
    It's recommended to download and install
    Configuration Analyzer Tool (OffCAT), which is developed by Microsoft Support teams. Once the tool is installed, you can run it at any time to scan for hundreds of known issues in Office
    programs.

  • Can't choose download folder with Image Capture

    Hi,
    I am using Image Capture and am not able to choose the location where I would like to save my images. When I click on the "Download To:" pulldown menu, it is grayed out and blank, with a single checkmark.
    Additionally, when I click on "Preferences" in the File menu, nothing happens.
    I've tried removing the preferences file and have made sure I have the most updated version of Tiger. Any other suggestions as to how to fix this problem? I have used Image Capture in the past and really like it; I'm not sure what caused this to happen.

    Francine, thank you so much for the tips. It took me over two months but I finally got around to trying to take care of this.
    I tried your suggestions in order. Steps 1-3 did not fix the problem, but reinstalling from Pacifist did (thank goodness!). Wish I had tried that from the get-go.
    Thanks again to everyone for all the suggestions.
    There are a couple of things to try:
    1. If you haven't done so lately, try Disk Utility
    and Repair Permissions. Won't hurt, it's quick and
    easy, and there is a remote possibility that it will
    help. It actually does occasionally fix something
    strange like this.
    2. Go to http://www.apple.com/support/downloads/ and
    download the COMBO 10.4.8 updater (it is huge, like
    148MBs) and run it, then Repair Permissions again.
    3. Restart and hold down the Shift key when you hear
    the startup chime. This will force the computer to do
    a Safe boot. When you see the splash screen saying
    "Safe Mode" release the Shift key. The boot will take
    longer than normal as the system repairs the disk,
    empties font caches, and disables startup items. Not
    sure if Image Capture will run correctly with some
    Apple startup items disabled, but you can try it.
    Restart normally afterwards.
    4. You can download Pacifist here:
    http://www.charlessoft.com/
    It will extract things from your Install disk so you
    can install only what you need, in your case Image
    Capture.
    My Image Capture has never had a problem, so I'm
    afraid all I can recommend is these general
    approaches. Hope one of them helps.
    Francine
    Francine
    Schwieder
    g4 laptop Mac OS X (10.4.8)

  • Trouble downloading Lightroom Sample Image

    Anyone else having problems downloading the Lightroom Sample Image from the Adobe Store? I purchased Lightroom a few days ago and successfully downloaded the application, but cannot download the sample image which is also on the download list from this order. When I first clicked on it, I got the dialog box (Windows) asking whether I wanted to reset the Quicktime MIME type associations back to Quicktime. I answered "no" the first couple of tries, and got no download, so I answered "yes", and still no download.
    Thoughts?
    Thanks,
    Gary

    You may also want to review your installation logs to determine the exact error message.  Please see Troubleshoot with install logs | CS5, CS5.5, CS6 - http://helpx.adobe.com/creative-suite/kb/troubleshoot-install-logs-cs5-cs5.html for information on how to locate and interpret the log files.

  • I'm just trying to update from 3.5.8 to the latest version. Started on the website and it downloaded a desktop image only, no application. Then tried on Firefox to update under "Help". It's been spinning for an hour! Help. I just want the latest version

    I'm just trying to update from 3.5.8 to the latest version. Started on the website and it downloaded a desktop image only, no application. Then tried on Firefox to update under "Help". It's been spinning for an hour! Help. I just want the latest version

    If there are problems with updating or with the permissions then easiest is to download the full version and trash the currently installed version to do a clean install of the new version.
    Download a new copy of the Firefox program and save the disk image (dmg) file to the desktop
    *Firefox 9.0.x: http://www.mozilla.org/en-US/firefox/all.html
    *Trash the current Firefox application to do a clean (re-)install
    *Install the new version that you have downloaded
    Your profile data is stored elsewhere in the Firefox Profile Folder, so you won't lose your bookmarks and other personal data if you uninstall and (re)install Firefox.
    *http://kb.mozillazine.org/Profile_folder_-_Firefox

  • TS5376 I'm having a problem with downloading and installing the new version of itunes for windows (11.1.4)  I have done everything the troubleshooting article has said and it is still not working properly.

    'm having a problem with downloading and installing the new version of itunes for windows (11.1.4)  I have done everything the troubleshooting article has said and it is still not working properly.  I have even done a repair to see if that works and it has not.  Has anyone else found a new way to get it working?

    Try Troubleshooting issues with iTunes for Windows updates.
    tt2

  • Problem with Download! on N78

    I'm having a problem with Download! on my N78 (sw v. 12.046). I can open Download but it freezes, and I also can't download any applications. When Download! freezes, my only option to shut it down is to boot the phone..I can switch to other open applications but Download! is freezed. This is giving me hard time, can't install any applications. Any help or ideas? Anyone else having this problem?

    Backup your data, and try doing a soft reset. *#7370#, (use this code at your own risk, since it deletes some important data's in your phone memory, including the data of installed applications on phone memory - means if you installed a java file to your card, it stores some data in your phone memory which will be deleted when you soft reset. So you will have to reinstall that software)

  • HT2292 hello i'm facing  problem  i downloaded iTunes version 11 32bit  and after i installing the set up when i opened the iTunes a massages  occur saying i tunes could not connect to iTunes store an unknown error occurred (-3212) even  though my interne

    Hello i'm facing  problem  i downloaded itunes version 11 32bit for windows 7 and after i installing the set up when i opened the iTunes a massages  occur saying i tunes could not connect to iTunes store an unknown error occurred (-3212) even  though my internet is on

    Try this...
    Triple click anywhere in the line below to select it and press Ctrl+C to copy it.
    cmd /k netsh winsock reset
    Press the WinLogoKey+R to open the run dialog, then Ctrl+V to paste, then press enter/return.
    You should get something similar to this:
    Reboot the computer and the problem should be resolved.
    If it doesn't work then perhaps a full tear down and rebuild of iTunes will fix things. See Troubleshooting issues with iTunes for Windows updates for details.
    tt2

Maybe you are looking for