FileStream fls;
pictureBox2.Image.Save("temp.tmp");
fls = new FileStream("temp.tmp", FileMode.Open, FileAccess.Read);
byte[] blob = new byte[fls.Length];
fls.Read(blob, 0, System.Convert.ToInt32(fls.Length));
fls.Close();
FileStream fls;
pictureBox2.Image.Save("temp.tmp");
fls = new FileStream("temp.tmp", FileMode.Open, FileAccess.Read);
byte[] blob = new byte[fls.Length];
fls.Read(blob, 0, System.Convert.ToInt32(fls.Length));
fls.Close();