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. General Programming
  3. C#
  4. Image URL

Image URL

Scheduled Pinned Locked Moved C#
databasequestion
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.
  • B Offline
    B Offline
    B87
    wrote on last edited by
    #1

    Hi, I have table stored with image like this, with column as imgid & img (Imgid) Img (1) Binary Data(Stored image as BD) (2) Binary Data How can i display those images in Image control by setting Imageurl,is it possible to set path to database?:confused: I have not used any file to store, i am storing image directly to DB and want retrive it from database and display in image control.

    G 1 Reply Last reply
    0
    • B B87

      Hi, I have table stored with image like this, with column as imgid & img (Imgid) Img (1) Binary Data(Stored image as BD) (2) Binary Data How can i display those images in Image control by setting Imageurl,is it possible to set path to database?:confused: I have not used any file to store, i am storing image directly to DB and want retrive it from database and display in image control.

      G Offline
      G Offline
      Guffa
      wrote on last edited by
      #2

      No, you can't set the path to the database. You have to get the data from the database and load into an Image, which you assign to the Image property of the control. Unless this is a web page (despite the question is not in the ASP.NET forum)? Then you need a proxy page that gets the image data from the database and writes it to the response stream, and you use the url of the proxy page as ImageUrl.

      Despite everything, the person most likely to be fooling you next is yourself.

      B 1 Reply Last reply
      0
      • G Guffa

        No, you can't set the path to the database. You have to get the data from the database and load into an Image, which you assign to the Image property of the control. Unless this is a web page (despite the question is not in the ASP.NET forum)? Then you need a proxy page that gets the image data from the database and writes it to the response stream, and you use the url of the proxy page as ImageUrl.

        Despite everything, the person most likely to be fooling you next is yourself.

        B Offline
        B Offline
        B87
        wrote on last edited by
        #3

        Hi, Can i have some link or sample program on that which u have stated as a beginner i need that....dont mistake me..

        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