#98 How to save the png file?

open
nobody
None
5
2013-01-13
2005-04-28
Anonymous
No

Hi,

I would like to save the png file generated by cewolf in
the servlet.

In Internet Explorer browser, I do see the html source:
<IMG BORDER="0" HEIGHT="300" WIDTH="340"
ALT=""
src="cewolf;jsessionid=0C6rsruBGd6ckMblXzPbBu-?
img=1690874620&amp;width=340&amp;height=300&am
p;iehack=.png"> and it does display correctly.

But I would like to save this image on the server and
print to a printer connected to the server.

Please help!

Thanks!
email: tiongi@hotmail.com

Discussion

  • Brian Fox

    Brian Fox - 2005-05-02

    Logged In: YES
    user_id=805618

    If you change the storage type to FileStorage, then cewolf
    will write the png directly to the file system and you'll
    have to use something else to pick up the image. It doesn't
    sound to me however that cewolf is the best use. Perhaps
    using jfreechart directly would be easier since you could
    stream the image directly to the printer yourself.

     
  • Nobody/Anonymous

    Logged In: NO

    Brian,

    Thank you! I have saved the file: WebContent_chart-
    843324459, but I still cannot display this png file. How do I
    display it in a standalone html file?

    Thanks!

     
  • Nobody/Anonymous

    Logged In: NO

    Brian,

    Thank you! I have saved the file: WebContent_chart-
    843324459, but I still cannot display this png file. How do I
    display it in a standalone html file?

    Thanks!

     
  • Nobody/Anonymous

    Logged In: NO

    Brian,

    When I want to look at the png file, it has to be in the
    application server context. If I rename _chart1327154936 to
    _chart1327154936.png and copy to another web server.
    _chart1327154936.png wouldn't display. So, how do I create
    standalone png file that can be viewable on other web server?

    Thanks!
    tiong.ing@hotmail.com

     
  • Nobody/Anonymous

    Logged In: NO

    Brian,

    When I want to look at the png file, it has to be in the
    application server context. If I rename _chart1327154936 to
    _chart1327154936.png and copy to another web server.
    _chart1327154936.png wouldn't display. So, how do I create
    standalone png file that can be viewable on other web server?

    Thanks!
    tiong.ing@hotmail.com

     
  • Nobody/Anonymous

    Logged In: NO

    Hi Brian,

    Thanks for your help
    I am facing a problem I need to store the image on to the file
    system.
    Can you please help me in storing the file at some perticular
    location so that i can refer that days image at later time.

    Thanks
    Anup
    anup.kataria@gmail.com

     

Log in to post a comment.