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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. Database & SysAdmin
  3. Database
  4. Please Help

Please Help

Scheduled Pinned Locked Moved Database
databasehelptutorialquestion
9 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.
  • N Offline
    N Offline
    naglayas
    wrote on last edited by
    #1

    Hello Im a beginner one in programming. My first problem is, How can i view a image file from the database(sql 2005) as "image" to visual basic 2005. for example: a text viewed in the textbox from database. the code is. textbox1.text=rs.fields("text").value My problem is how can i view the image from database if the image DATA TYPE IS "image". Please help me. Thank you very much and God bless.

    C G 2 Replies Last reply
    0
    • N naglayas

      Hello Im a beginner one in programming. My first problem is, How can i view a image file from the database(sql 2005) as "image" to visual basic 2005. for example: a text viewed in the textbox from database. the code is. textbox1.text=rs.fields("text").value My problem is how can i view the image from database if the image DATA TYPE IS "image". Please help me. Thank you very much and God bless.

      C Offline
      C Offline
      Colin Angus Mackay
      wrote on last edited by
      #2

      naglayas wrote:

      rs.fields("text").value

      What is rs? I don't recognise any class that has a fields method on it.

      naglayas wrote:

      My problem is how can i view the image from database if the image DATA TYPE IS "image".

      The value in an image column will arrive as a byte array. What you do with that byte array really depends on what it actually represents.


      Upcoming Scottish Developers events: * Glasgow: Tell us what you want to see in 2007 My: Website | Blog | Photos

      P 1 Reply Last reply
      0
      • C Colin Angus Mackay

        naglayas wrote:

        rs.fields("text").value

        What is rs? I don't recognise any class that has a fields method on it.

        naglayas wrote:

        My problem is how can i view the image from database if the image DATA TYPE IS "image".

        The value in an image column will arrive as a byte array. What you do with that byte array really depends on what it actually represents.


        Upcoming Scottish Developers events: * Glasgow: Tell us what you want to see in 2007 My: Website | Blog | Photos

        P Offline
        P Offline
        Paul Conrad
        wrote on last edited by
        #3

        Colin Angus Mackay wrote:

        What is rs?

        :confused:

        C 1 Reply Last reply
        0
        • P Paul Conrad

          Colin Angus Mackay wrote:

          What is rs?

          :confused:

          C Offline
          C Offline
          Colin Angus Mackay
          wrote on last edited by
          #4

          Paul Conrad wrote:

          Colin Angus Mackay wrote: What is rs? :confused:

          Well, yes, those were exactly my thoughts. The OP has some code with an object called rs and he expects us to know what it is. I've no idea what it is, so it makes it very difficult to help.


          Upcoming Scottish Developers events: * Glasgow: Tell us what you want to see in 2007 My: Website | Blog | Photos

          P 1 Reply Last reply
          0
          • N naglayas

            Hello Im a beginner one in programming. My first problem is, How can i view a image file from the database(sql 2005) as "image" to visual basic 2005. for example: a text viewed in the textbox from database. the code is. textbox1.text=rs.fields("text").value My problem is how can i view the image from database if the image DATA TYPE IS "image". Please help me. Thank you very much and God bless.

            G Offline
            G Offline
            gnadeem
            wrote on last edited by
            #5

            hi, i suppose this will be helpfull. http://www.codeproject.com/aspnet/CPImageGallery.asp[^] Regards.

            P 1 Reply Last reply
            0
            • C Colin Angus Mackay

              Paul Conrad wrote:

              Colin Angus Mackay wrote: What is rs? :confused:

              Well, yes, those were exactly my thoughts. The OP has some code with an object called rs and he expects us to know what it is. I've no idea what it is, so it makes it very difficult to help.


              Upcoming Scottish Developers events: * Glasgow: Tell us what you want to see in 2007 My: Website | Blog | Photos

              P Offline
              P Offline
              Paul Conrad
              wrote on last edited by
              #6

              Colin Angus Mackay wrote:

              object called rs and he expects us to know what it is. I've no idea what it is

              My ultra wild guess is some kind of record set...

              C 1 Reply Last reply
              0
              • P Paul Conrad

                Colin Angus Mackay wrote:

                object called rs and he expects us to know what it is. I've no idea what it is

                My ultra wild guess is some kind of record set...

                C Offline
                C Offline
                Colin Angus Mackay
                wrote on last edited by
                #7

                Paul Conrad wrote:

                My ultra wild guess is some kind of record set...

                But there are no RecordSets in Visual Basic 2005 - so it still leaves me confused.


                Upcoming Scottish Developers events: * Glasgow: Tell us what you want to see in 2007 My: Website | Blog | Photos

                P 1 Reply Last reply
                0
                • C Colin Angus Mackay

                  Paul Conrad wrote:

                  My ultra wild guess is some kind of record set...

                  But there are no RecordSets in Visual Basic 2005 - so it still leaves me confused.


                  Upcoming Scottish Developers events: * Glasgow: Tell us what you want to see in 2007 My: Website | Blog | Photos

                  P Offline
                  P Offline
                  Paul Conrad
                  wrote on last edited by
                  #8

                  Colin Angus Mackay wrote:

                  RecordSets in Visual Basic 2005

                  True. I am thinking of the old days with MS Access + VBA and rs was commonly RecordSet. Maybe the OP has the two mixed up. I noticed the OP refers to SQL 2005 so I am really confused about the whole thread :laugh:

                  1 Reply Last reply
                  0
                  • G gnadeem

                    hi, i suppose this will be helpfull. http://www.codeproject.com/aspnet/CPImageGallery.asp[^] Regards.

                    P Offline
                    P Offline
                    Paul Conrad
                    wrote on last edited by
                    #9

                    gnadeem wrote:

                    i suppose this will be helpfull.

                    It looks like it could. I found it very interesting :)

                    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