Hi,
We are upgrading Aspose.Words.dll to 15.5.0.0 from 14.4.0.0
To resolve hyperlink issue which is suggested in below post
https://forum.aspose.com/t/43239after upgrade hyperlinks are working fine and navigating to the embedded URL
But now InsertImage is giving error which was working fine with version 14.4.0.0
Aspose.Words.Drawing.Shape shape = new Aspose.Words.Drawing.Shape(document, ShapeType.Image);
shape.ImageData.SourceFullName = @"D:\googlelogo.png";
shape.ImageData.SetImage(@"D:\googlelogo.png");
byte[] imgBytes = shape.ImageData.ImageBytes;
MemoryStream ms = new MemoryStream(imgBytes);
Image sourceImage = Image.FromStream(ms);
docBuilder.InsertImage(sourceImage);
InsertImage call is throwing exception
An unhandled exception of type 'System.NullReferenceException' occurred in Aspose.Words.dll
Additional information: Object reference not set to an instance of an object.
Any suggestion to resolve this issue?
Thanks,
Deepak Dhirhe