Alancx S.
Alancx S.

Reputation: 13

How to write byte of array to PDF/A-3 and attachment in C# / Vb.net [Close]

I want to convert PDF to PDF/a-3 as byte[] and file attachment .

I've tried iTextSharp from these example PDF/AConvert.NET

But the problem is i can't use File.WriteAllBytes() on my scenario because i have to avoid to write a File on directory.

In another way i have pdfData as byte Array how can i write it to pdf/a-3

it would be great if there are other solution, Please help.

Upvotes: 1

Views: 682

Answers (1)

Mitch Wheat
Mitch Wheat

Reputation: 300837

You don't need to write a physical file using a FileStream; you can use a MemoryStream to write directly to memory, and then use that as your stream.

FileStream and MemoryStream are both derived from Stream.

Upvotes: 1

Related Questions