Free Support Forum - aspose.com

How to create a new Presentation from an OutputStream

does anyone know how to create a new Presentation from an ByteArrayOutputStream that was written by another presentation object? or does anyone know how to convert a ByteArrayOutputStream object into a FileInputStream, so that i can pass it to a new Presentation object?

thanks

joon

ByteArrayOutputStream out = new ByteArrayOutputStream();
pres1.write(out);

ByteArrayInputStream input = new ByteArrayInputStream(out.toByteArray());
Presentation pres2 = new Presentation(input);

alex,

thanks again. i know this was prob more of a java question than aspose. but thank you any way.

joon