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