convert base64Binary to pdf

Viewed 96090

I have raw data of base64Binary.

string base64BinaryStr = "J9JbWFnZ......"

How can I make pdf file? I know it need some conversion. Please help me.

6 Answers

First convert the Bas64 string to byte[] and write it into a file.

byte[] bytes = Convert.FromBase64String(base64BinaryStr); 
File.WriteAllBytes(@"FolderPath\pdfFileName.pdf", bytes );
Related