byte[] sPDFDecoded = Convert.FromBase64String(base64BinaryStr); File.WriteAllBytes(@"c:Usersu316383Documentspdf8.pdf", sPDFDecoded);