its easy...
public byte[] ReadFile(string ImagePath)
{
byte[] Image_Binary_data = null;
FileInfo FInfo = new FileInfo(ImagePath);
long numBytes = FInfo.Length;
FileStream FStream = new FileStream(ImagePath, FileMode.Open, FileAccess.Read);
BinaryReader BR = new BinaryReader(FStream);
Image_Binary_data = BR.ReadBytes((int)numBytes);
return Image_Binary_data;
}
below code dispalys the picture into picture box...
byte[] ImageData = binary_data_stored_into_database;
Image NewImage;
using (MemoryStream MS = new MemoryStream(ImageData, 0, ImageData.Length))
{
MS.Write(ImageData, 0, ImageData.Length);
NewImage = Image.FromStream(MS, true);
}
pic_image.Image = NewImage;