Does the DynamicPDF Converter support converting a file without writing a physical copy to the drive? Say I wanted to use a MemoryStream or ByteArray to hold the contents of a converted file and deliver it straight to an end user's browser. Is this at all possible?
MemoryStream or ByteArray Support
Re: MemoryStream or ByteArray Support
Support · Jun 22, 2010Hello,
You can use the overloaded Convert method that returns the byte array of the output PDF.
Following is the sample code:
static void Main()
{
byte[] inputData = File.ReadAllBytes(@"C:\MyDocument.doc");
// Call convert method to do conversion.
byte[] MyData = Converter.Convert(inputData ,@".doc");
}
Thanks,
ceTe Software Support Team