Reputation: 95
I'm developing a MVC web app in VB.Net and I have a pdf in base64 string format. It's possible to return that pdf to the view and see it, without creating a temp.pdf file?
Upvotes: 0
Views: 223
Reputation: 239804
You say in a comment that you want something like:
Return File(System.AppDomain.CurrentDomain.BaseDirectory & "\file.pdf", "application/pdf")
So why not simply:
Return File(Convert.FromBase64String(base64string),"application/pdf")
References:
Upvotes: 2