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