Here you can use with database also remove first two lines and put your file there and convert to byte
protected void btnUpload_Click(object sender, EventArgs e)
{
System.IO.Stream fs = FileUpload1.PostedFile.InputStream;
System.IO.BinaryReader br = new System.IO.BinaryReader(fs);
Byte[] bytes = br.ReadBytes((Int32)fs.Length);
string base64String = Convert.ToBase64String(bytes, 0, bytes.Length);
Image1.ImageUrl = "data:image/png;base64," + base64String;
Image1.Visible = true;
}