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();


Rijwan AnsariRank #82 · 24.2K reputationPosted Mar 12, 2021, 1:17 PM EST
Satya KarkiRank #78 · 24.6K reputationPosted Mar 12, 2021, 1:19 PM EST
Bhavesh VankarRank #1,147 · 1.6K reputationPosted Mar 13, 2021, 12:21 AM EST