Hi friends
I have a bit problem.
I am working in asp.net 2.0 with c#.
In my application,I scan fingerprint of user from scanner and display it in Image control.
Now my problem is that I dont know that how to insert that image in sqldatabase as image datatype.
Here is another way.
I have one class called sfr and it has one method to get image of finger and it return in Bitmap format.
for this my code is here.
Bitmap
Finger = sfr.GetLastImage();System.Web.UI.WebControls.
Image CandFinger=new System.Web.UI.WebControls.Image();CandFinger =(System.Web.UI.WebControls.
Image) Convert.ChangeType(Finger, typeof(System.Web.UI.WebControls.Image));sfr is my class and getlastmethod is method that return scanned image of user.
Now I want to convert this image in Image object becouse of in my database I want to save this image in image datatype.
but last line of this code gives error that Object must implement IConvertible.
For this what I have to do?
Can I insert Bitmap image as an Image datatype?
Plz help me out and give me right solution.
Thanks in advance.