U++ framework
Do not panic. Ask here before giving up.

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: 14291
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: Mon Sep 07 19:46:46 GMT+2 2026

Total time taken to generate the page: 0.00474 seconds