Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » U++ SQL » Image in QLITE3 database (Load an ImgCtrl image from an SQLITE3 database)
Re: Image in QLITE3 database [message #50239 is a reply to message #50237] Sun, 02 September 2018 10:56 Go to previous message
mirek is currently offline  mirek
Messages: 14261
Registered: November 2005
Ultimate Member
You have to decode binary representation into Image. This example is somewhat relevant:

https://www.ultimatepp.org/examples$ImageView$en-us.html

anyway, in this case, with String as source, use

Image img = StreamRaster::LoadStringAny(s);

Also note that by default, this will only decode .png. To add more formats, you need to add corresponding 'codecs' - plugin/jpg etc.

Mirek
 
Read Message
Read Message
Previous Topic: PostgreSQL NaN fetching from DB
Next Topic: [SOLVED] How to use aliases with SqlExp?
Goto Forum:
  


Current Time: Sat Jun 07 18:34:42 CEST 2025

Total time taken to generate the page: 0.04544 seconds