Skip to content
Advertisement

Display image from SQL DB in QLabel

The database stores images in varbinary format. I am getting data like this b’xffxd8xffxe0x00x10JFIFx00x01x01x01x00x00x00x00xffxe1x00ZExifx… I can save them if I use the code

JavaScript

I don’t want to save pictures, i want show them directly in QLabel. How can i do this?

Advertisement

Answer

I finded solution for my problem.

JavaScript
Advertisement