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. C#
  4. Converting Image file to binary file

Converting Image file to binary file

Scheduled Pinned Locked Moved C#
databasetutorial
4 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.
  • U Offline
    U Offline
    User 4510968
    wrote on last edited by
    #1

    How to convert Any type file (bmp,Jpg,jpeg etc...)to binary or blob file to store it in sql 2005.

    L G 2 Replies Last reply
    0
    • U User 4510968

      How to convert Any type file (bmp,Jpg,jpeg etc...)to binary or blob file to store it in sql 2005.

      L Offline
      L Offline
      loyal ginger
      wrote on last edited by
      #2

      Any file (including text file) is a binary file. You can treat any file as a binary large object (blob) to be stored in a database. You don't need to do any conversion. Any comments on this opinion are welcome.

      L 1 Reply Last reply
      0
      • L loyal ginger

        Any file (including text file) is a binary file. You can treat any file as a binary large object (blob) to be stored in a database. You don't need to do any conversion. Any comments on this opinion are welcome.

        L Offline
        L Offline
        Luc Pattyn
        wrote on last edited by
        #3

        correct. Any file is binary, some files also are text files, others also are image files, etc. :)

        Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles]


        Happy New Year to all.
        We hope 2010 soon brings us automatic PRE tags!
        Until then, please insert them manually.


        1 Reply Last reply
        0
        • U User 4510968

          How to convert Any type file (bmp,Jpg,jpeg etc...)to binary or blob file to store it in sql 2005.

          G Offline
          G Offline
          Giorgi Dalakishvili
          wrote on last edited by
          #4

          Have a look at the following article: How To Read and Write BLOB Data by Using ADO.NET with Visual C# .NET[^]

          Giorgi Dalakishvili #region signature My Articles Asynchronous Registry Notification Using Strongly-typed WMI Classes in .NET [^] My blog #endregion

          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