Hi everyone!
I'm trying to save a PDF file to SQL Server and I already have a method that generates a PDF but is opens a window showing this file.
But, now I have to generate a PDF, but it must be saved to database in a image field.
And I have to save this file from a MemoryStream object that I get ready to be saved, showed etc.
I have this:
MemoryStream m = PDFHelper.gereratePDF(text, title);
I was googling aroung and I guess I have to convert this MemoryStream to FileStream so i can save it to DB, but I don't know how.
Thanks!!