Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. Upload, download and display images from web server

Upload, download and display images from web server

Scheduled Pinned Locked Moved ASP.NET
questiondatabasesysadminhelp
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    J Offline
    J Liang
    wrote on last edited by
    #1

    Hi, I would like to know how do I able to upload an image and display it again from the web server? Currently I am using "this.filePic.PostedFile.SaveAs(image);" but this one need a rooted file path, it works only for uploading and downloading but the file path stored in my database will give a problem when I need to display the picture. Thanks in advance. J Liang

    N 1 Reply Last reply
    0
    • J J Liang

      Hi, I would like to know how do I able to upload an image and display it again from the web server? Currently I am using "this.filePic.PostedFile.SaveAs(image);" but this one need a rooted file path, it works only for uploading and downloading but the file path stored in my database will give a problem when I need to display the picture. Thanks in advance. J Liang

      N Offline
      N Offline
      N a r e s h P a t e l
      wrote on last edited by
      #2

      HI, Store just the ImageName of saved image. And use Server.MapPath("imagenamesavedfromdatabase") function THis function return the ImagePath of your FileSystem Where the image stored in the server.

      Naresh Patel

      J 1 Reply Last reply
      0
      • N N a r e s h P a t e l

        HI, Store just the ImageName of saved image. And use Server.MapPath("imagenamesavedfromdatabase") function THis function return the ImagePath of your FileSystem Where the image stored in the server.

        Naresh Patel

        J Offline
        J Offline
        J Liang
        wrote on last edited by
        #3

        Hi, Thanks for the suggestion, it works. J Liang

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups