I have the following line of code that will set the client image on the screen if there is one, if it will not leave it as null. How can I make it dynamic, that is, if the client does not have the photo, will be a avatar
?
if(!string.IsNullOrEmpty(objCli.CliFoto)==true){byte[]bytes=Convert.FromBase64String(objCli.CliFoto.Replace("data:image;base64,", ""));
using(MemoryStream ms = new MemoryStream(bytes)){
picbImagemCli.Image = Image.FromStream(ms);
}
} else {
picbImagemCli.Image = null;
}