1
Answer

Save array to disk

walid mousbah

walid mousbah

9y
500
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)
0
Vulpes

Vulpes

NA 98.3k 1.5m 12y
Quoted identifiers (i.e. identifiers surrrounded by double quotes) enable you to use names for identifiers which would otherwise be illegal such as reserved words or names which contain embedded spaces.

However, if you use them, then string literals must be enclosed in single quotes to distinguish them from quoted identifiers.