i have done below code to convert image control image into binary (IMAGE1.ImageUrl) but when i press save button their is no effect and not response from page. means page not react anything its not save record and display any error.
i have use (!IsPostBack) property what to do...?
- string filepath = Server.MapPath(vImage.ImageUrl);
- FileStream fs = new FileStream(vImage.ImageUrl, FileMode.Open, FileAccess.ReadWrite);
- BinaryReader br = new BinaryReader(fs);
- byte[] bytes = br.ReadBytes((Int32)fs.Length);
- br.Close();
- fs.Close();