walid mousbah

walid mousbah

  • 2.1k
  • 10
  • 8.8k

Save array to disk

Jul 12 2015 11:59 AM
Hi,
I have a function which retruns a pdf as a byte[]
private static CreatePDF()
{
byte[] pdf;
//Do some work & create pdf
return pdf;
}
If I call this function this way:
byte[] MyPdf = CreatePDF()
How can I save MyPdf to disk as a pdf file (c:\path\Filename.pdf) ?
(I'm using .NET 2)
Thanks

Answers (1)