using (FileStream fs = new FileStream(avatarPath, FileMode.Create)) { using (BinaryWriter bw = new BinaryWriter(fs)) { byte[] data =Convert.FromBase64String(imageCanvas); bw.Write(data); bw.Close(); } fs.Close(); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)