IronPdf / Iron-Pdf-Documentation

ReadTheDocs Build Files for IronPDF C#/.Net PDF Library http://ironpdf.com
8 stars 2 forks source link

Error inserting image: Image could not be loaded. File format is not supported. #29

Open afshany opened 9 months ago

afshany commented 9 months ago

We are using IronPdf 2024.2.2 to generate PDF documents. and need to insert an image to the pdf document, but using AnyBitmap doesn't work: byte[] binData = Convert.FromBase64String(base64Data); AnyBitmap image = AnyBitmap.FromBytes(binData);

and we get error :Error inserting image: Image could not be loaded. File format is not supported.

Any thoughts will be appreciated