01.
byte
[] imageBytes = ds.Tables[0].Rows[0][
"FEATURES"
]
as
byte
[];
02.
if
(imageBytes !=
null
&& imageBytes.Length > 0)
03.
{
04.
05.
06.
07.
byte
[] BLOBdata =
new
byte
[0];
08.
BLOBdata = (
byte
[])(ds.Tables[0].Rows[0][
"FEATURES"
]);
09.
MemoryStream mStream =
new
MemoryStream(BLOBdata);
10.
mStream.Position = 0;
11.
Image i = Image.FromStream(mStream);
12.
this
.ptbFinger.Image = i;
13.
mStream.Close();
14.
mStream.Dispose();
15.
}
16.
else
17.
{
18.
ptbFinger.Image =
null
;
19.
}