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. Read binary of .RAW file as image

Read binary of .RAW file as image

Scheduled Pinned Locked Moved ASP.NET
databasehelpquestion
7 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.
  • M Offline
    M Offline
    Member_3259094
    wrote on last edited by
    #1

    hi I am working for fingerprint. The fingerprints are stored in database in binary formate and that file is RAW file. I have to show it in form as image . so how can i do this. Any one help me .

    Rajeev Kr. Sharma Sr. Software Engineer E-Meditek Solutions Ltd. http://www.emeditek.co.in/

    R M 2 Replies Last reply
    0
    • M Member_3259094

      hi I am working for fingerprint. The fingerprints are stored in database in binary formate and that file is RAW file. I have to show it in form as image . so how can i do this. Any one help me .

      Rajeev Kr. Sharma Sr. Software Engineer E-Meditek Solutions Ltd. http://www.emeditek.co.in/

      R Offline
      R Offline
      ramki pindi
      wrote on last edited by
      #2

      Dim fs As FileStream Try fs = New FileStream("C:\Inetpub\wwwroot\xyz.jpg", FileMode.OpenOrCreate, FileAccess.Write) Dim l As Long l = UBound(bytes) fs.Write(bytes, 0, l) Catch ex As Exception Finally fs.Close() End Try here bytes is a byte array which holds the binary data from the databse after that assign the file name to ur image control.

      M 1 Reply Last reply
      0
      • R ramki pindi

        Dim fs As FileStream Try fs = New FileStream("C:\Inetpub\wwwroot\xyz.jpg", FileMode.OpenOrCreate, FileAccess.Write) Dim l As Long l = UBound(bytes) fs.Write(bytes, 0, l) Catch ex As Exception Finally fs.Close() End Try here bytes is a byte array which holds the binary data from the databse after that assign the file name to ur image control.

        M Offline
        M Offline
        Member_3259094
        wrote on last edited by
        #3

        sorry this is not working. the binary data which is stored in database that type is raw file

        Rajeev Kr. Sharma Sr. Software Engineer E-Meditek Solutions Ltd. http://www.emeditek.co.in/

        D 1 Reply Last reply
        0
        • M Member_3259094

          sorry this is not working. the binary data which is stored in database that type is raw file

          Rajeev Kr. Sharma Sr. Software Engineer E-Meditek Solutions Ltd. http://www.emeditek.co.in/

          D Offline
          D Offline
          droth17
          wrote on last edited by
          #4

          I don't think you can directly render a raw file as an image in HTML. You are going to need to transform that .RAW file into a .jpg or something else that is readable by a web browser. I would look into possible using the SDK provided by Canon or maybe Nikon. Beyond that, and not knowing anything about the RAW file (each RAW format is different, it isn't standarized from my understanding)

          1 Reply Last reply
          0
          • M Member_3259094

            hi I am working for fingerprint. The fingerprints are stored in database in binary formate and that file is RAW file. I have to show it in form as image . so how can i do this. Any one help me .

            Rajeev Kr. Sharma Sr. Software Engineer E-Meditek Solutions Ltd. http://www.emeditek.co.in/

            M Offline
            M Offline
            Muhammad Mazhar
            wrote on last edited by
            #5

            Normally when storing images in databases blobs are used. Simply load data in memory stream and then create bitmap object from that stream, save a temp image and built a URL to that new temp image and then anchor it on desired location.

            Share your experience with others Check my Blog...

            M 1 Reply Last reply
            0
            • M Muhammad Mazhar

              Normally when storing images in databases blobs are used. Simply load data in memory stream and then create bitmap object from that stream, save a temp image and built a URL to that new temp image and then anchor it on desired location.

              Share your experience with others Check my Blog...

              M Offline
              M Offline
              Member_3259094
              wrote on last edited by
              #6

              how to generate image by byte could you give me the code. because i have tryed it by different ways.

              Rajeev Kr. Sharma Sr. Software Engineer E-Meditek Solutions Ltd. http://www.emeditek.co.in/

              M 1 Reply Last reply
              0
              • M Member_3259094

                how to generate image by byte could you give me the code. because i have tryed it by different ways.

                Rajeev Kr. Sharma Sr. Software Engineer E-Meditek Solutions Ltd. http://www.emeditek.co.in/

                M Offline
                M Offline
                Muhammad Mazhar
                wrote on last edited by
                #7

                Right now I am at some remote location so its not possible for me to provide some of my own code sample rather I googled and found a suitable example you can try that http://msdotnetsupport.blogspot.com/2009/04/converting-blob-data-from-sql-server-to.html[^]

                Share your experience with others Check my Blog...

                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