Viewpic
- 1. String SqlStatement = "Select id, image from tbl_employeepics;";
GV.SelectSQL(SqlStatement);
while (GV.DataReader.Read())
{
var image = (byte[])GV.DataReader[1];
String name = GV.DataReader[0] + ".jpg";
File.WriteAllBytes(@Application.StartupPath + "Temp" + name,
image);
pictureBox1.ImageLocation = Application.StartupPath + "Temp"
+ name;
}
GV.DataReader.Close();