Images in databases

Get help on programming - C++, Java, Delphi, etc.
Post Reply
I34z1k
Registered User
Posts: 8142
Joined: 05 Dec 2003, 02:00
Location: Dry Ice factory

Images in databases

Post by I34z1k »

I saw delphi has images in an example database. How do I put images into a database?
User avatar
rustypup
Registered User
Posts: 8872
Joined: 13 Dec 2004, 02:00
Location: nullus pixius demonica
Contact:

Post by rustypup »

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)....

:wink:
Most people would sooner die than think; in fact, they do so - Bertrand Russel
Post Reply