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. Getting prob's while reading images from sql server 2005

Getting prob's while reading images from sql server 2005

Scheduled Pinned Locked Moved ASP.NET
databasesql-serversysadminquestion
3 Posts 3 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.
  • R Offline
    R Offline
    Roney
    wrote on last edited by
    #1

    hi every one, I developed one web application from there i calling one table from database that time i retrieving all the info from table but images are not displaying to my page.I cleared mention the path of image file in varchar field.why i am not getting?

    G R 2 Replies Last reply
    0
    • R Roney

      hi every one, I developed one web application from there i calling one table from database that time i retrieving all the info from table but images are not displaying to my page.I cleared mention the path of image file in varchar field.why i am not getting?

      G Offline
      G Offline
      Gayani Devapriya
      wrote on last edited by
      #2

      Hi, I think you should refer to the relative path, and not the absolute path as to show the image in the web page. Here is just a suggestion. When you are saving the image, save only the image name in the database, and get the relative path and construct the path and display. Hope it helps, Thx, Gayani

      1 Reply Last reply
      0
      • R Roney

        hi every one, I developed one web application from there i calling one table from database that time i retrieving all the info from table but images are not displaying to my page.I cleared mention the path of image file in varchar field.why i am not getting?

        R Offline
        R Offline
        renukaanaik
        wrote on last edited by
        #3

        hiiiii...... The images you stored in the database have to be converted into bytes while retreiving, for this you hav to store image path,it's length n it's type... you will also need a handler file.. try it....i hope it will help you, i have done this before!!!! :)

        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