473,385 Members | 1,766 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

How to change Binaryformat of fingerprint from Database to Image format

1
hi all,
I wanna convert Fingerprint Binaryformat(Image only not Template) to Image(.png/.jpeg) format....i tried with all possible methods..but it doesn't work...here am posted the code for sample..can anyone Fix this Issue?

SqlConnection con = new SqlConnection(connstring);
con.Open();
SqlCommand cmd2 = new SqlCommand("select FingerPrintImage from TxnFinger where FamilyID=" + filename + " ", con);
SqlDataReader re2 = cmd2.ExecuteReader();
while (re2.Read())
{
buffer1 = (byte[])re2.GetValue(0);
}
con.Close();
byte[] buffer = buffer1.ToArray();

string path = Environment.CurrentDirectory + "\\capture\\" + filename1 + ".png";

FileStream fs = new FileStream(path, FileMode.Create);
fs.Write(buffer, 0, buffer.Length);
fs.Close();



Thanks in Advance!!
Nov 10 '11 #1
0 1303

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: nuria | last post by:
hi anyone know how I can convert a pdf file(with an image only) to image format(jpeg, gif...) can I do this with iText?? Thanks in advance
0
by: nuria | last post by:
hi, I need convert a pdf to an image format(gir, jpg..)I have to do this because an external program give me all time a file in pdf format. It only have an image, and I need this image in my...
2
by: Jeronimo Bertran | last post by:
Hello, I am using a rendering aspx page to display a database image on an Image control. When the database record is retrieved, I am saving the bitmap to a session variable for the rendering...
18
by: Andrew Christiansen | last post by:
Hey all. The images I create in photoshop with semi-transparent pixels (for instance in Photoshop text with a dropshadow with a transparent canvas) I've been saving in PNG format and then using...
2
by: TC | last post by:
Is there any way to save a bitmap in an uncompressed format which preserves transparency? The BMP format is uncompressed, but doesn't support transparency. The GIF format has an alpha channel,...
1
by: pranav.rajyaguru | last post by:
Hi Friends I want to show Clipboard data in image format is it possible to image data in javascript function if it is possible then pls give me solution for that... - Pranav Rajyaguru
3
by: =?Utf-8?B?Q2hha3JhdmFydGh5?= | last post by:
Hi All, We are working in a web application and we wanted to capture the full webpage into an image file. FULL WEBPAGE means, the page which is below the visibility of the screen and you need...
3
by: femtox77 | last post by:
Hi to all!!! I'm trying to convert a pdf file into an image, for example JPG or PNG format, with ImageMagick. I use the command line. For example: convert header.pdf header.jpg. But I obtain a...
2
by: PJ6 | last post by:
I am rendering a few graphs with GDI+ and sending images to a web page. What image format is lightweight and the best for presenting line drawings sharply and without compression artifacts? GIF?...
0
by: Independent | last post by:
Python programmers may find the application to decoding an encrypted map image format known as Memory Map to produce a standard PNG image file interesting. Someone obviously very well versed in...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.