If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > DB2 > How can I upload a BLOB or CLOB into a DB2 UDB Column?

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 01-29-08, 01:00
pagwu pagwu is offline
Registered User
 
Join Date: Mar 2007
Posts: 70
How can I upload a BLOB or CLOB into a DB2 UDB Column?

Hi all,
I have a table define as: col1 int
col2 BLOB
col3 TIMESTAMP
I have several JPEG,GIF, etc photos that I want loaded into this table. I am searching for a shareware tool or sample code that I can use to load the BLOB data. Can anyone recommend a tool or share a free and straight forward SQL code that can do binary large object load.

Iam working with UDB 8.2 fixpak 14 and soon to go UDBv9.5.

Any assistance in this problem will be highly appreciated.

Thanks
Reply With Quote
  #2 (permalink)  
Old 01-29-08, 08:31
stolze stolze is offline
Registered User
 
Join Date: Jan 2007
Location: Jena, Germany
Posts: 2,662
Have a look here: http://www-128.ibm.com/developerwork...dm-0504stolze/

I describe a UDF named SI_loadImage() for exactly this purpose.
__________________
Knut Stolze
IBM DB2 Analytics Accelerator
IBM Germany Research & Development
Reply With Quote
  #3 (permalink)  
Old 01-29-08, 15:48
pagwu pagwu is offline
Registered User
 
Join Date: Mar 2007
Posts: 70
Thank you very much Knut. That's the kind of thing I was looking for. Now to learning what you did...

Again thanks
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On