I have base64 data which i am getting from SOAP. I need to convert that base64 code to pdf and display in popupwindow.
if i convert base64 normally it will be in multipage tiff. sometimes it will be jpg, png. So i can't predict format. I have used following code which will convert from base64 to original format. but notsure how to display it in pop up box. whenever i clicked the button which will call below function, file will get downlaod into local machine. i don't want to download, need to display.
Any suggestion will be appreciated.
- In C#
- var byteA =
- @"base64string ";
- var imageBytes = Convert.FromBase64String(byteA);
- return File(imageBytes, "application /pdf");
- In MVC
- @Html.ActionLink("View Image", "PdfPartial")
Sachin SinghPosted Dec 6, 2020, 11:58 PM
Sachin SinghPosted Dec 6, 2020, 11:20 PM
Jignesh KumarPosted Dec 6, 2020, 10:44 PM
Mageshwaran RPosted Dec 6, 2020, 10:06 PM