Having issues processing long files using Aspose.PSD

Hey I am processing a long file using azure batcha and aspose.psd.

Error Message: Image loading failed.
Inner Exception: Expected positive number of bytes. (Parameter ‘requestedCount’)
Service: Aspose.PSD
Operation: Image.Load(string filePath)
Job ID: J1037GJZURC
Timestamp: 02/11/2026 03:47:06 UTC
Stack Trace:
at Aspose.PSD.Image.Load(String filePath, LoadOptions loadOptions)
at QStrauss.AssetProcessor.Engine.Engine.JobOperator.ProcessOperationAsync(JobExecutionContext context)

what i am doing is download the psb file on the local disk before process it, does anyone have an idea?

@Agustin_Cano

Thanks for the report. I have not confirmed this yet and can only confirm it after reproducing on our side. Based on your description, this might be a bug in Aspose.Psd when converting psb to unknown. To confirm and log it internally, I need a few details.

  • What is the size (in MB/GB) of the PSB file you’re trying to load?
  • Which .NET runtime and Aspose.PSD version are you using, and is the application built for x64?
  • Are you using any custom LoadOptions (e.g., MaxImageSize, ReadOnly) when calling Image.Load?
  • Can you share the Azure Batch VM size and the amount of memory allocated to each task?

A support engineer will review these details and get back to you.

Once I have the missing details, I’ll try to reproduce this. If I can confirm it, I’ll log it internally and follow up here.

A support engineer will follow up in this thread if needed.