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. SHOWING iMAGE ON WEBPAGE

SHOWING iMAGE ON WEBPAGE

Scheduled Pinned Locked Moved ASP.NET
asp-netdatabasecsharpsql-serversysadmin
5 Posts 4 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.
  • P Offline
    P Offline
    pradipta
    wrote on last edited by
    #1

    I HAVE SOME IMAGES IN MY SQL SERVER DATABASE IN BINARY FORMAT.I WANT TO SHOW THEM ON THE WEBPAGE AT RUN TIME ,THAT MEANS WHEN AN USER SELECT AN IMAGE FROM COMBOBOX THE CORRESPONDING IMAGE FROM THE DATABASE SHOULD BE SHOWN ON THAT PAGE. PLEASE TELL ME HOW TO ACHIVE THIS USING ASP.NET WEB FORMS.

    M N R 3 Replies Last reply
    0
    • P pradipta

      I HAVE SOME IMAGES IN MY SQL SERVER DATABASE IN BINARY FORMAT.I WANT TO SHOW THEM ON THE WEBPAGE AT RUN TIME ,THAT MEANS WHEN AN USER SELECT AN IMAGE FROM COMBOBOX THE CORRESPONDING IMAGE FROM THE DATABASE SHOULD BE SHOWN ON THAT PAGE. PLEASE TELL ME HOW TO ACHIVE THIS USING ASP.NET WEB FORMS.

      M Offline
      M Offline
      mittalpa
      wrote on last edited by
      #2

      Hi, We tried so hard to get this thing work. But, image didnt show up directly on the page from database. So we found a work around, if thats acceptable to you. In the database with Image column we maintained two other columns namely ImageID and Image location on webserver. In your case, after selecting the image in drop down, Save the image from database to the Image location and then Pass the image location into the Image control during Page load. It should work. I hope it helps. Good Luck....:) Pankaj

      1 Reply Last reply
      0
      • P pradipta

        I HAVE SOME IMAGES IN MY SQL SERVER DATABASE IN BINARY FORMAT.I WANT TO SHOW THEM ON THE WEBPAGE AT RUN TIME ,THAT MEANS WHEN AN USER SELECT AN IMAGE FROM COMBOBOX THE CORRESPONDING IMAGE FROM THE DATABASE SHOULD BE SHOWN ON THAT PAGE. PLEASE TELL ME HOW TO ACHIVE THIS USING ASP.NET WEB FORMS.

        N Offline
        N Offline
        Nick Seng
        wrote on last edited by
        #3

        Well, I haven't really tried this but in theory it sounds workable. Open up a filestream into a image file(.bmp, .jpg, etc) then you read the image from the database into a filestream in the write function Your page can then pick up the image in the location you specified in the filestream Nick Seng (the programmer formerly known as Notorious SMC)


        God, I pity me! - Phoncible P. Bone

        1 Reply Last reply
        0
        • P pradipta

          I HAVE SOME IMAGES IN MY SQL SERVER DATABASE IN BINARY FORMAT.I WANT TO SHOW THEM ON THE WEBPAGE AT RUN TIME ,THAT MEANS WHEN AN USER SELECT AN IMAGE FROM COMBOBOX THE CORRESPONDING IMAGE FROM THE DATABASE SHOULD BE SHOWN ON THAT PAGE. PLEASE TELL ME HOW TO ACHIVE THIS USING ASP.NET WEB FORMS.

          R Offline
          R Offline
          Raymond Ooi
          wrote on last edited by
          #4

          Read this.... http://aspalliance.com/das/insertimage.aspx http://aspalliance.com/das/readimage.aspx When you save an image, save with a friendly description, thus user can select ur image in dropdownlist, and retrieve the corresponding image from db.

          P 1 Reply Last reply
          0
          • R Raymond Ooi

            Read this.... http://aspalliance.com/das/insertimage.aspx http://aspalliance.com/das/readimage.aspx When you save an image, save with a friendly description, thus user can select ur image in dropdownlist, and retrieve the corresponding image from db.

            P Offline
            P Offline
            pradipta
            wrote on last edited by
            #5

            Thats great,That is what i was looking for Thanx a lot

            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