Unknown resource header while loading a .psb file

Hi:

The first PSB file I loaded a few days ago worked mostly fine. Today I was given a new PSB file and it opens fine in Photoshop but when I try to load I get this Exception:
class com.aspose.psd.coreexceptions.ImageLoadException: Image loading failed. —> class com.aspose.psd.coreexceptions.imageformats.PsdImageException: Unknown resource header
com.aspose.psd.internal.jJ.j.a(Unknown Source)
com.aspose.psd.internal.jF.a.load(Unknown Source)
com.aspose.psd.Image.a(Unknown Source)
com.aspose.psd.Image.load(Unknown Source)
Main.main(Main.java:41)
— End of inner exception stack trace —
com.aspose.psd.Image.a(Unknown Source)
com.aspose.psd.Image.load(Unknown Source)
Main.main(Main.java:41)
at com.aspose.psd.Image.a(Unknown Source)
at com.aspose.psd.Image.load(Unknown Source)
at Main.main(Main.java:41)
Caused by: class com.aspose.psd.coreexceptions.imageformats.PsdImageException: Unknown resource header
com.aspose.psd.internal.jJ.j.a(Unknown Source)
com.aspose.psd.internal.jF.a.load(Unknown Source)
com.aspose.psd.Image.a(Unknown Source)
com.aspose.psd.Image.load(Unknown Source)
Main.main(Main.java:41)
at com.aspose.psd.internal.jJ.j.a(Unknown Source)
at com.aspose.psd.internal.jF.a.load(Unknown Source)
… 3 more
I see someone had a similar problem in 2021 but no resolution

Figured it out- there was some unknown resource used in the file that didn’t come with it. I deleted it and it loaded.

@elickerman could you please provide code and input file to reproduct it.

Per above I figured it out- there was a missing unlinked resource. I can ask the guy if I can send it but it is someone else’s copyright.

We don’t need full picture if it’s copyrighted. For example it’s possible to make image very small, all resources will stay be the same (But smart obejcts can be restored, so it’s not suitable for some cases), or it’s possible to remove all excessive layers or crop some layers (including smart objects)

Still waiting for a response from the guy who gave me the file

Thank you. I’ll be waiting for test file.