Free Support Forum -

Replacing images in onenote

Hi, I’m trying to replace images in a onenote file using Aspose.Note .NET CORE sdk.

I’ve done it easily for word and other office formats, but in Aspose.Notes, the Aspose.Notes.Image class does not have a setter for the Bytes property.

I’ve also tried to remove the image node and add a new one instead, but I got this exception:
System.ArgumentException: The node belongs to the other node.
at Aspose.Note.CompositeNode`1.RemoveChild(T oldChild)

I’d really appreciate some help here.
Thanks a lot!


See the document with example code on working with images for your reference.

If you still find any issue, kindly share your sample code/project with sample document and image(s), we will check it soon.

PS. please zip the files prior attaching here.