1. Saving PNG, BMP etc.
- Posted by gwalters Mar 16, 2010
- 935 views
Is there any reason why one can't save these images into a database as a blob data type? I'm thinking of barcodes as well as images of an item in inventory. I wouldn't want to save 10,000 to 50,000 as separate files in a directory.
2. Re: Saving PNG, BMP etc.
- Posted by gwalters Mar 16, 2010
- 938 views
Does anyone have a code snippit that prints a PNG to a windows printer?
3. Re: Saving PNG, BMP etc.
- Posted by ChrisB (moderator) Mar 16, 2010
- 921 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