my generated jpg image is not saved, why?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ffayyca
    New Member
    • Aug 2010
    • 1

    my generated jpg image is not saved, why?

    I have an aspx page that loads a static graphic and put session strings in it. I used Image1.Save(Ser ver.MapPath("ge n_img2.jpg"), ImageFormat.Jpe g), but it's not saved on the server. I thought this was a user permission problem, so I assigned the ASPNET account write permission to the folder, and it still doesn't work. Did I use the wrong account? I use winserver 2003 and IIS 6.
  • Frinavale
    Recognized Expert Expert
    • Oct 2006
    • 9749

    #2
    Try this instead:
    Code:
    Server.MapPath("~/") + "gen_img2.jpg"
    -Frinny

    Comment

    Working...