No title

Started by akif noorabout 25 years ago2 messagesgeneral
Jump to latest
#1akif noor
akifnoor@yahoo.com

i have created a table having blob object but now i am
not able to insert a picture into the table. Can you
send me sql command to insert picture into the table i
need syntax. i tried through DB2IMAGE but failed to
insert.

if there is any other method of putting image in the
table, kindly send me the same
Akif noor

=====

__________________________________________________
Do You Yahoo!?
Yahoo! Auctions - Buy the things you want at great prices! http://auctions.yahoo.com/

#2Eric G. Miller
egm2@jps.net
In reply to: akif noor (#1)
Re:

On Fri, Feb 23, 2001 at 04:28:40AM -0800, akif noor wrote:

i have created a table having blob object but now i am
not able to insert a picture into the table. Can you
send me sql command to insert picture into the table i
need syntax. i tried through DB2IMAGE but failed to
insert.

if there is any other method of putting image in the
table, kindly send me the same
Akif noor

Programmer's Guide::Large Objects::Built in registered functions

Built in registered functions There are two built-in registered functions, lo_import and lo_export which are convenient for use in SQL queries. Here is an example of their use CREATE TABLE image ( name text, raster oid ); INSERT INTO image (name, raster) VALUES ('beautiful image', lo_import('/etc/motd')); SELECT lo_export(image.raster, '/tmp/motd') from image WHERE name = 'beautiful image';

--
Eric G. Miller <egm2@jps.net>