Search code examples
qtqt4sqliteqtwebkit

QtWebKit - how to display a binary image from a database?


I store images in binary format in SQLite database (client side) and use QtWebKit inside a desktop application.

Everything works fine beside the need to display stored in the database binary images.

How to display a binary image from database in QtWebKit?

Thanks.


Solution

  • One way might be to implement your own URL scheme for these internal resources, e.g. mydb://foo.png - see this article for an overview of how this can be done.