1. Saving PNG, BMP etc.

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.

new topic     » topic index » view message » categorize

2. Re: Saving PNG, BMP etc.

Does anyone have a code snippit that prints a PNG to a windows printer?

new topic     » goto parent     » topic index » view message » categorize

3. Re: Saving PNG, BMP etc.

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

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu