I think this will be helpful.
Replace all the below code
string fileName = ImagePreview.ImageUrl;
int fileLength = PhotoUpload.PostedFile.ContentLength;
int v_mem_id = 158;
byte[] imageBytes = new byte[fileLength];
PhotoUpload.PostedFile.InputStream.Read(imageBytes, 0, fileLength);
with this code
string fileName = ImagePreview.ImageUrl;
byte[] imageBytes = File.ReadAllBytes(fileName);
UpdateCmd.Parameters.AddWithValue("@a",imageBytes);