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. Windows Forms
  4. image

image

Scheduled Pinned Locked Moved Windows Forms
databasetutorial
6 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.
  • M Offline
    M Offline
    mylogics
    wrote on last edited by
    #1

    i want to save image in my sql database and also i want to show image from database. what shud i do and how plz guide.m new to win application....

    J R C 3 Replies Last reply
    0
    • M mylogics

      i want to save image in my sql database and also i want to show image from database. what shud i do and how plz guide.m new to win application....

      J Offline
      J Offline
      JHizzle
      wrote on last edited by
      #2

      If you are storing the image directly to the database, convert to a Binary large Object and save it to an SQL table field of type varbinary, then just reverse the process when you're pulling it back out.

      Y 1 Reply Last reply
      0
      • M mylogics

        i want to save image in my sql database and also i want to show image from database. what shud i do and how plz guide.m new to win application....

        R Offline
        R Offline
        Ray Cassick
        wrote on last edited by
        #3

        Just be aware that can grossly inflate the size of your DB. I have typically used the 'store the image in the file system and then put the path to the image into the DB' method. It's slightly more to manage and backup, but i think you will see that DB performance is better.


        LinkedIn[^] | Blog[^] | Twitter[^]

        1 Reply Last reply
        0
        • M mylogics

          i want to save image in my sql database and also i want to show image from database. what shud i do and how plz guide.m new to win application....

          C Offline
          C Offline
          carlecomm
          wrote on last edited by
          #4

          Please try this: http://www.shabdar.org/store-save-images-in-sql-server.html

          1 Reply Last reply
          0
          • J JHizzle

            If you are storing the image directly to the database, convert to a Binary large Object and save it to an SQL table field of type varbinary, then just reverse the process when you're pulling it back out.

            Y Offline
            Y Offline
            yu jian
            wrote on last edited by
            #5

            I know that there has the image type in the SQL SERVER, you can store the picture as the image type to the SQL SERVER

            J 1 Reply Last reply
            0
            • Y yu jian

              I know that there has the image type in the SQL SERVER, you can store the picture as the image type to the SQL SERVER

              J Offline
              J Offline
              JHizzle
              wrote on last edited by
              #6

              That's going to be removed in future versions of SQL server.

              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