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 » MySql data types
Re: MySql data types [message #7177 is a reply to message #7106] Sun, 17 December 2006 17:36 Go to previous messageGo to previous message
mirek is currently offline  mirek
Messages: 14267
Registered: November 2005
Ultimate Member
dmcgeoch wrote on Wed, 13 December 2006 19:03


convert the image to a string that can be saved and restored.



String StoreImageAsString(const Image& img);
Image  LoadImageFromString(const String& s);
Size   GetImageStringSize(const String& src);
Size   GetImageStringDots(const String& src);


that will store it in "U++ format". If you want your database to be more transparent, you can e.g. use PNG:

PNGEncoder png;
String s = png.SaveString(image);


Mirek
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Compiling OLEDB using MINGW
Next Topic: SqlArray::Join when a foreign key has more than one field
Goto Forum:
  


Current Time: Sat Aug 23 19:58:05 CEST 2025

Total time taken to generate the page: 0.02875 seconds