Spire.Presentation is a professional PowerPoint® compatible library that enables developers to create, read, write, modify, convert and Print PowerPoint documents. Get free and professional technical support for Spire.Presentation for .NET, Java, Android, C++, Python.

Wed Aug 10, 2022 6:12 pm

Greetings, I am trying to take a newly created PP using Spire Presentation and save it to my SQL db using NET 6 MemoryStream(). It appears SaveToStream() is not an available option for new Presentation(). How would you recommend saving the pp to a sql db column that is varbinary(max).

Thanks

aebrey84
 
Posts: 5
Joined: Mon Aug 08, 2022 5:47 pm

Thu Aug 11, 2022 2:26 am

Hi,

Thanks for your inquiry.
Please note that our Spire.Presentation doesn't provide the SaveToStream() method, but it overloads the SaveToFile() method to save the stream. So please replace your code with presentation.SaveToFile(outstream,FileFormat.Pptx2013). Please feel free to contact if you have any questions.

Sincerely,
Kylie
E-iceblue support team
User avatar

kylie.tian
 
Posts: 412
Joined: Mon Mar 07, 2022 2:30 am

Fri Sep 23, 2022 8:31 am

Hi,

Greetings from E-iceblue.
Has your problem been effectively solved now? Could you give us some feedback at your convenience?

Sincerely,
Kylie
E-iceblue support team
User avatar

kylie.tian
 
Posts: 412
Joined: Mon Mar 07, 2022 2:30 am

Return to Spire.Presentation