I am trying to display the base64 string in aspx page. I am using the below code:
System.Web.UI.WebControls.Image imgNew = new System.Web.UI.WebControls.Image();
imgNew.ImageUrl = string.Format("data:application/jpeg;base64,{0}", Convert.ToString(base64String));
this only works for the base64string for the jpeg formats. for the base64string of the pdf the image is not displaying properly. Can anyone help me? Thanks in advance.