Image string from database

Hi! I have a question.

My app have to store images in database, so I convert them to string i save it in sqlite database.

When i try to get image string from database, convert to stream and transfer to PDFBitmap constructor, it gave me that error

Syncfusion.Pdf.PdfException: Only JPEG and PNG images are supported

Can somebody help me with that, please?

1 Reply 1 reply marked as answer

KM Kacper Makowski May 12, 2021 12:17 PM UTC

Thanks for your time.
I resolve my problem.

I use StreamReader to convert string to stream, and i decide to use Convert.ToBase64String, and that resolve my problem.

Marked as answer
Loader.
Up arrow icon