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. Show Images directly from database

Show Images directly from database

Scheduled Pinned Locked Moved ASP.NET
databasequestionsysadminhelp
9 Posts 5 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
    Blue_Boy
    wrote on last edited by
    #1

    How can I retrive images directly from datbase and show them in Image1 server control? I have serched on google but not much luck, any suggestion or help is appreciated. Regards.


    I Love T-SQL "Don't torture yourself,let the life to do it for you."

    L C V 3 Replies Last reply
    0
    • B Blue_Boy

      How can I retrive images directly from datbase and show them in Image1 server control? I have serched on google but not much luck, any suggestion or help is appreciated. Regards.


      I Love T-SQL "Don't torture yourself,let the life to do it for you."

      L Offline
      L Offline
      led mike
      wrote on last edited by
      #2

      Blue_Boy wrote:

      I have serched on google but not much luck

      Luck is not what is required[^] :rolleyes:

      led mike

      B 1 Reply Last reply
      0
      • L led mike

        Blue_Boy wrote:

        I have serched on google but not much luck

        Luck is not what is required[^] :rolleyes:

        led mike

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

        Thanks, but that (google result) is not what I am looking for.


        I Love T-SQL "Don't torture yourself,let the life to do it for you."

        1 Reply Last reply
        0
        • B Blue_Boy

          How can I retrive images directly from datbase and show them in Image1 server control? I have serched on google but not much luck, any suggestion or help is appreciated. Regards.


          I Love T-SQL "Don't torture yourself,let the life to do it for you."

          C Offline
          C Offline
          Christian Graus
          wrote on last edited by
          #4

          Write a http handler and have it return the bitmap data from the DB. Your image control URL is the URL that returns that data from the HTTP handler. And yes, there's tons of info about this on google.

          Christian Graus Please read this if you don't understand the answer I've given you "also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )

          B 1 Reply Last reply
          0
          • C Christian Graus

            Write a http handler and have it return the bitmap data from the DB. Your image control URL is the URL that returns that data from the HTTP handler. And yes, there's tons of info about this on google.

            Christian Graus Please read this if you don't understand the answer I've given you "also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )

            B Offline
            B Offline
            Blue_Boy
            wrote on last edited by
            #5

            Thanks Chris, I found solution which you are talking about, and I have implemeted it, thanks for your reply...


            I Love T-SQL "Don't torture yourself,let the life to do it for you."

            E 1 Reply Last reply
            0
            • B Blue_Boy

              How can I retrive images directly from datbase and show them in Image1 server control? I have serched on google but not much luck, any suggestion or help is appreciated. Regards.


              I Love T-SQL "Don't torture yourself,let the life to do it for you."

              V Offline
              V Offline
              Vasudevan Deepak Kumar
              wrote on last edited by
              #6

              There are plenty of articles that talk about storing and retrieving images in SQLServer. What is required more importantly is not the smile of Lady Luck but a diligent effort towards the goal, the first task being research and the first tool in research called as 'Google'.

              Vasudevan Deepak Kumar Personal Homepage
              Tech Gossips
              A pessimist sees only the dark side of the clouds, and mopes; a philosopher sees both sides, and shrugs; an optimist doesn't see the clouds at all - he's walking on them. --Leonard Louis Levinson

              B 1 Reply Last reply
              0
              • B Blue_Boy

                Thanks Chris, I found solution which you are talking about, and I have implemeted it, thanks for your reply...


                I Love T-SQL "Don't torture yourself,let the life to do it for you."

                E Offline
                E Offline
                eyeseetee
                wrote on last edited by
                #7

                Just be aware that the database will increase in size very quickly when you store images in it. An alternative is to store just the URL of the image and use that instead of the actual image. :)

                B 1 Reply Last reply
                0
                • V Vasudevan Deepak Kumar

                  There are plenty of articles that talk about storing and retrieving images in SQLServer. What is required more importantly is not the smile of Lady Luck but a diligent effort towards the goal, the first task being research and the first tool in research called as 'Google'.

                  Vasudevan Deepak Kumar Personal Homepage
                  Tech Gossips
                  A pessimist sees only the dark side of the clouds, and mopes; a philosopher sees both sides, and shrugs; an optimist doesn't see the clouds at all - he's walking on them. --Leonard Louis Levinson

                  B Offline
                  B Offline
                  Blue_Boy
                  wrote on last edited by
                  #8

                  I solved my problem and this topic is closed.


                  I Love T-SQL "Don't torture yourself,let the life to do it for you."

                  1 Reply Last reply
                  0
                  • E eyeseetee

                    Just be aware that the database will increase in size very quickly when you store images in it. An alternative is to store just the URL of the image and use that instead of the actual image. :)

                    B Offline
                    B Offline
                    Blue_Boy
                    wrote on last edited by
                    #9

                    Thanks, I will give a look that possibility too.


                    I Love T-SQL "Don't torture yourself,let the life to do it for you."

                    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