Re: Saving PNG, BMP etc.
- Posted by ChrisB (moderator) Mar 16, 2010
- 923 views
Hi
A png file is just a file. Read the file into a sequence and save the sequence in the database.
To re create it just read the database numbers, and put them into a file, use the file, then delete the file. (it won't take long)
sqlite does blobs, though I'm not 100% sure how to use them (see the wrapper - if you wrap them better, let me know, and I'll incorporate it)
Heres a search for binary printing and getting
http://www.rapideuphoria.com/cgi-bin/asearch.exu?dos=on&win=on&lnx=on&gen=on&keywords=binary+print
For windows graphics printing, DIB is your best bet. ALso the GDI plus graphics might give you some pointers
http://www.rapideuphoria.com/gdiplus-for-eu.zip
Chris