Hello Aspose.Cad Community, I’m having some issues when saving a new file, here is the code where it is breaking and the dxf file so you can recreate the error.
plan issues 2.zip (1.5 MB)
public MemoryStream DoSomething(Stream dxfFileStream)
{
if (dxfFileStream == null)
throw new ArgumentNullException(nameof(dxfFileStream));
var newFileStream = new MemoryStream();
using (var dxfFile3 = (CadImage)Image.Load(dxfFileStream))
{
/*
omitted magical code
*/
dxfFile3.Save(newFileStream); //here is where I get the exeption
newFileStream.Position = 0;
}
return newFileStream;
}