Hi,
Please refer below code
C#
string base64 = Request.Form[hfImageData.UniqueID].Split(',')[1];
byte[] bytes = Convert.FromBase64String(base64);
File.WriteAllBytes(Server.MapPath("~/MyImage/ImageName.jpg"),bytes);
VB
Dim base64 As String = Request.Form(hfImageData.UniqueID).Split(","C)(1)
Dim bytes As Byte() = Convert.FromBase64String(base64)
File.WriteAllBytes(Server.MapPath("~/MyImage/ImageName.jpg"), bytes)
I hope this will help you out.