Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    Save As option for Image ?

    Hi All,

    I am facing problem when right -click on an image.

    What we are doing is that displaying an image on the basis of some date range. the result displays an graph image. we have some functionality when user right clicks on this image.

    here we implement "Export As Excel" and "Export As Image" in the menu.

    first option working fine , when use right click on the image and then click on the "Export As excel" , a popup window opens and ask about the location where user wants to save this excel file.

    but when we try this with "Export As Image".the image opens in the browser and user have to save this image from here.

    what we expects is that we want the popup window open as "Export As Excel" option in the same brower window.

    how can I Implement this, please give me some reference/suggestion/ sample code regarding this.


    Thanks & Regards,
    Narendra Shekhawat.

    #2
    This isn't really a SmartGWT question, but your dealing with a browser issue, they attempt to sniff out content type headers and appropriately deal with them. Your best best is to add "Content-Disposition: attachment" to your header, this generally forces the download prompt.

    Comment

    Working...
    X