hishobhit82
New member
- Joined
- Aug 12, 2021
- Messages
- 2
- Programming Experience
- 10+
Hi,
I am using Aspose library to create an image out of the excel sheet after some processing.
This image is generated in .tiff format. With the help of C# System.Drawing library i am trying to convert this .tiff image to .emf format as its the method we use in the legacy code.
After creation of the image we are converting and saving it as base64 string.
But when we try to read this base64 string and create back the .emf image from this then we get the below error while creating the "Metafile" object.
Whereas the same object works fine when we use the Aspose.Imaging library and convert tiff to emf through aspose imaging library the same code for creating the image out of base64 string works fine. We do not want to use Aspose.Imaging as we do not have license for that. So, if anyone could please help why the conversion is not working with the C# library it would be a great help.
Also attaching the full source code to replicate the issue.
I am using Aspose library to create an image out of the excel sheet after some processing.
This image is generated in .tiff format. With the help of C# System.Drawing library i am trying to convert this .tiff image to .emf format as its the method we use in the legacy code.
After creation of the image we are converting and saving it as base64 string.
But when we try to read this base64 string and create back the .emf image from this then we get the below error while creating the "Metafile" object.
Whereas the same object works fine when we use the Aspose.Imaging library and convert tiff to emf through aspose imaging library the same code for creating the image out of base64 string works fine. We do not want to use Aspose.Imaging as we do not have license for that. So, if anyone could please help why the conversion is not working with the C# library it would be a great help.
Also attaching the full source code to replicate the issue.