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. retrieve an image from sql

retrieve an image from sql

Scheduled Pinned Locked Moved ASP.NET
databasequestioncsshelp
6 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.
  • Y Offline
    Y Offline
    y_mmohd
    wrote on last edited by
    #1

    When I retrieve an image from sql database in the grid view I had the following (System.Byte[]) instead the image. What is the problem? Thank you

    B A L Y 4 Replies Last reply
    0
    • Y y_mmohd

      When I retrieve an image from sql database in the grid view I had the following (System.Byte[]) instead the image. What is the problem? Thank you

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

      You are not displaying images correctly. Check this link[^]


      I Love T-SQL "Don't torture yourself,let the life to do it for you." If my post helps you kindly save my time by voting my post.

      Y 1 Reply Last reply
      0
      • Y y_mmohd

        When I retrieve an image from sql database in the grid view I had the following (System.Byte[]) instead the image. What is the problem? Thank you

        A Offline
        A Offline
        Abhijit Jana
        wrote on last edited by
        #3

        y_mmohd wrote:

        When I retrieve an image from sql database in the grid view I had the following (System.Byte[]) instead the image.

        Where are you getting the error? Is there any thing problem with byte conversion ? Have a look into this article, This is another way to show image from database to gridview. Displaying Image in Gridview from Database Here you have to store image path in the database rather than the image. Image will store in your hard drive.

        cheers, Abhijit CodeProject MVP Web Site:abhijitjana.net View My Recent Article

        1 Reply Last reply
        0
        • Y y_mmohd

          When I retrieve an image from sql database in the grid view I had the following (System.Byte[]) instead the image. What is the problem? Thank you

          L Offline
          L Offline
          Lost User
          wrote on last edited by
          #4

          Check out Links http://www.odetocode.com/Articles/172.aspx\[^\] http://aspalliance.com/140\[^\]

          Regards Aman Bhullar www.arlivesupport.com[^]

          1 Reply Last reply
          0
          • B Blue_Boy

            You are not displaying images correctly. Check this link[^]


            I Love T-SQL "Don't torture yourself,let the life to do it for you." If my post helps you kindly save my time by voting my post.

            Y Offline
            Y Offline
            y_mmohd
            wrote on last edited by
            #5

            Thanks you a lot...

            1 Reply Last reply
            0
            • Y y_mmohd

              When I retrieve an image from sql database in the grid view I had the following (System.Byte[]) instead the image. What is the problem? Thank you

              Y Offline
              Y Offline
              y_mmohd
              wrote on last edited by
              #6

              Thanks you for being Helpful, I need your advice I want to create a web site for shopping online. The customers can upload their images to the web. What is the best solution for this: 1- To store the image inside the table in the sql server. 2- Or to store the images inside a folder in the web.

              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