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

Free Support Forum - aspose.com

Com.aspose.slides.ms.pbdb106a0.i: The stream is empty

We are getting the following exception :

class com.aspose.slides.ms.pbdb106a0.i: The stream is empty.
Parameter name: stream
com.aspose.slides.Presentation.if(Unknown Source)
com.aspose.slides.Presentation.(Unknown Source)
com.aspose.slides.Presentation.(Unknown Source)

USing this code:

com.aspose.slides.Presentation ppt = new Presentation(fileLoc);
ppt.save(pdf, SaveFormat.Pdf);

With this file:

What is the issue?

Hi Wayne,

Thank you for posting.

I have observed your comments and like to share with you that the issue is occurring because you are trying to load a zero KB presentation which contains no data/information. That is why the error “The stream is empty” is appearing.

If you want to create an empty instance of a presentation and then work with it then instead of loading a zero KB file, you may use below code on your end to serve the purpose.

Presentation pres = new Presentation();

I hope this will clarify the concept. Please share if I may help you further in this regard.

Best Regards,

Hello Muhammad,

Yes are you correct - I did not notice it was zero bytes!


Hi Wayne,

We are glad to know you have figured out the reason of this issue now.

Please feel free to contact us if we could be of any help to you.

Best Regards,