1
Answer

Save array to disk

Photo of walid mousbah

walid mousbah

9y
946
1
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)