Images in databases
Images in databases
I saw delphi has images in an example database. How do I put images into a database?
- rustypup
- Registered User
- Posts: 8872
- Joined: 13 Dec 2004, 02:00
- Location: nullus pixius demonica
- Contact:
images are commonly stored as BLOBs, (Binary Large Object)...
how you go about this depends on the database and available drivers..
in SQL, the BLOB/CLOB types are accessed through standard io streams... so a call to SELECT would return an input stream from which you would read as normal....
again, check for storage and retrieval of a BLOB, defining db type and language....., (note: BLOB not CLOB, as it is possible that the dbase would perform some form of compression on CLOB types... (Character Large Object)....
how you go about this depends on the database and available drivers..
in SQL, the BLOB/CLOB types are accessed through standard io streams... so a call to SELECT would return an input stream from which you would read as normal....
again, check for storage and retrieval of a BLOB, defining db type and language....., (note: BLOB not CLOB, as it is possible that the dbase would perform some form of compression on CLOB types... (Character Large Object)....
Most people would sooner die than think; in fact, they do so - Bertrand Russel