We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Source Presentation as an Input Stream

When cloning a slide from a presentation onto another presentation, is it possible to instantiate the source presentation file using an input stream?

Hi Ashwin,

I have observed your question and like to mention that Aspose.Slides offers Presentation class constructor overload to load presentation from stream. Please try using following code to load the presentation file from stream.


InputStream fileInputStream = new java.io.FileInputStream("F:\\Aspose Work\\Sample.pptx");
Presentation pres = new Presentation (fileInputStream);

Best Regards,