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

Free Support Forum - aspose.com

An attempt was made to move the position before the beginning of the stream

In my c# code I am trying to load png image using file stream, but it is throwing an exception “An attempt was made to move the position before the beginning of the stream”.
I am using Aspose.Imaging, Version=20.11.0.0

Here is my code -

using (var img = Aspose.Imaging.Image.Load(fileStream))

Could you please help me to resolve this issue.

@amolm, please provide full code and sample file to reproduct your issue. Thanks.