473,480 Members | 3,021 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

DB2 Image Extenders

Ok, I think I just may be a moron, but where the heck are the Image
extenders found? I've look all around, tried all the DB2 cd's I have,
are they installed by default somewhere? Which install fileset (AIX) are
they part of?
The CD's only show spatial and xml extenders?
Feb 21 '06 #1
8 2180
yoyo wrote:
Ok, I think I just may be a moron, but where the heck are the Image
extenders found? I've look all around, tried all the DB2 cd's I have,
are they installed by default somewhere? Which install fileset (AIX) are
they part of?
The CD's only show spatial and xml extenders?


The AIV webpages state that it is bundled with several editions of DB2. You
happen to have one of those?
http://www-306.ibm.com/software/data...rodbundle.html

Related, but different question: what do you have in mind with this
extender?
You have to remember that it is based on 8-10 year old technology and maybe
this is a better alternative? http://tinyurl.com/q4zpn

--
Knut Stolze
DB2 Information Integration Development
IBM Germany
Feb 21 '06 #2
yoyo wrote:
Ok, I think I just may be a moron, but where the heck are the Image
extenders found? I've look all around, tried all the DB2 cd's I have,
are they installed by default somewhere? Which install fileset (AIX) are
they part of?
The CD's only show spatial and xml extenders?

If I'm not mistaken, you have to purchase one of the Developer's
Editions to get the Image Extender (if it still even exists).

Larry Edelstein
Feb 21 '06 #3
Knut Stolze wrote:
yoyo wrote:

Ok, I think I just may be a moron, but where the heck are the Image
extenders found? I've look all around, tried all the DB2 cd's I have,
are they installed by default somewhere? Which install fileset (AIX) are
they part of?
The CD's only show spatial and xml extenders?

The AIV webpages state that it is bundled with several editions of DB2. You
happen to have one of those?
http://www-306.ibm.com/software/data...rodbundle.html

Related, but different question: what do you have in mind with this
extender?
You have to remember that it is based on 8-10 year old technology and maybe
this is a better alternative? http://tinyurl.com/q4zpn


I see that page, I look at my media, and it's not there.
I have every DB2 8.1 & 8.2 edition out there (enterprise is what I have
actually installed). It's not called out on any filesets on any of the
install media.

I've come across that page many times now, nice stuff, but unless I
missed something (and that's possible) it deals with blobs already
existing in the database, which I have yet to accomplish. It doesn't say
anything about how to insert those blobs.

What do I have in mind? Well, since you ask....I want to store an image
from a file into a blob from with php code using odbc. There's known
issues with php&db2 trying to insert and retrieve blob (they both point
the blame on the other and the issue is still open, from 2002). So next
I wanted just to try shell_exec a command line insert to insert a blob
from a file.
It doesn't even have to be a blob, I try to use clob and convert my
image before insert....blah..blah...many tries, mostly ending up with
only 4k of the image coming back out.

I just need to store small thumbnail images in the database. I'm going
crazy here. 2 day on this. 2 DAYS!!!!!!
Is there a better way? I've searched for the last 2 days on this, and
nothing. Everything points to the DB2 image extenders, which I havn't
tried yet.
Feb 21 '06 #4
yoyo wrote:
What do I have in mind? Well, since you ask....I want to store an image
from a file into a blob from with php code using odbc. There's known
issues with php&db2 trying to insert and retrieve blob (they both point
the blame on the other and the issue is still open, from 2002).
You are probably referring to the old odbc-php driver that was used to talk
to DB2. This was not quite acceptable code. For example, there was no
support for LOBs at all. (It is definitively a PHP issue.) You should
rather stick with the newer Zend Core for IBM that handles stuff properly:
http://www-306.ibm.com/software/data/info/zendcore/
So next
I wanted just to try shell_exec a command line insert to insert a blob
from a file.
It doesn't even have to be a blob, I try to use clob and convert my
image before insert....blah..blah...many tries, mostly ending up with
only 4k of the image coming back out.
Those 4K might be the result from the truncation done by the DB2 CLP. The
whole LOB might actually be stored in the row.
Is there a better way? I've searched for the last 2 days on this, and
nothing. Everything points to the DB2 image extenders, which I havn't
tried yet.


Unless you need some sort of image processing, the extender won't help you
either.

--
Knut Stolze
DB2 Information Integration Development
IBM Germany
Feb 21 '06 #5
Knut Stolze wrote:
yoyo wrote:

What do I have in mind? Well, since you ask....I want to store an image
from a file into a blob from with php code using odbc. There's known
issues with php&db2 trying to insert and retrieve blob (they both point
the blame on the other and the issue is still open, from 2002).

You are probably referring to the old odbc-php driver that was used to talk
to DB2. This was not quite acceptable code. For example, there was no
support for LOBs at all. (It is definitively a PHP issue.) You should
rather stick with the newer Zend Core for IBM that handles stuff properly:
http://www-306.ibm.com/software/data/info/zendcore/

So next
I wanted just to try shell_exec a command line insert to insert a blob
from a file.
It doesn't even have to be a blob, I try to use clob and convert my
image before insert....blah..blah...many tries, mostly ending up with
only 4k of the image coming back out.

Those 4K might be the result from the truncation done by the DB2 CLP. The
whole LOB might actually be stored in the row.

Is there a better way? I've searched for the last 2 days on this, and
nothing. Everything points to the DB2 image extenders, which I havn't
tried yet.

Unless you need some sort of image processing, the extender won't help you
either.


Zend core. There's something I've not come across. I really wonder if it
will help me though, to store that image in a DB2 database.
The UDF I wanted from the image extender is the DB2IMAGE one, which
allows someone to do this from a command line:

insert into mytablewithblobcolum (CHARATT1,BLOBATT2) values
('ken',DB2IMAGE('/tmp/myjpg.jpg','jpg','26k'))

and it's supposed to take that jpeg and put it in your blob column.
If I have a true blob in there, I'm able to get it out with php odbc.
(I had to use the db2 import function to populate something in that
database with a blob though, I really don't want to use that as a
solution however)
I've never had a problem with odbc connector for db2 in php (until now),
been using for 3 years. I didn't even know of the zend core that IBM wrote.
I'll check out the code and see what's there. Is there native support
for blob then???? Hopefully....

Anyway, thatnks for the help, it's hope anyway,

ANy idea where those DB2 IMage extensions are in 8.1 or 2???????

Ken
Feb 21 '06 #6
yoyo wrote:
Knut Stolze wrote:
yoyo wrote:

What do I have in mind? Well, since you ask....I want to store an image
from a file into a blob from with php code using odbc. There's known
issues with php&db2 trying to insert and retrieve blob (they both point
the blame on the other and the issue is still open, from 2002).


You are probably referring to the old odbc-php driver that was used to
talk
to DB2. This was not quite acceptable code. For example, there was no
support for LOBs at all. (It is definitively a PHP issue.) You should
rather stick with the newer Zend Core for IBM that handles stuff
properly:
http://www-306.ibm.com/software/data/info/zendcore/

So next I wanted just to try shell_exec a command line insert to
insert a blob
from a file.
It doesn't even have to be a blob, I try to use clob and convert my
image before insert....blah..blah...many tries, mostly ending up with
only 4k of the image coming back out.


Those 4K might be the result from the truncation done by the DB2 CLP.
The
whole LOB might actually be stored in the row.

Is there a better way? I've searched for the last 2 days on this, and
nothing. Everything points to the DB2 image extenders, which I havn't
tried yet.


Unless you need some sort of image processing, the extender won't help
you
either.


Zend core. There's something I've not come across. I really wonder if it
will help me though, to store that image in a DB2 database.
The UDF I wanted from the image extender is the DB2IMAGE one, which
allows someone to do this from a command line:

insert into mytablewithblobcolum (CHARATT1,BLOBATT2) values
('ken',DB2IMAGE('/tmp/myjpg.jpg','jpg','26k'))

and it's supposed to take that jpeg and put it in your blob column.
If I have a true blob in there, I'm able to get it out with php odbc.
(I had to use the db2 import function to populate something in that
database with a blob though, I really don't want to use that as a
solution however)
I've never had a problem with odbc connector for db2 in php (until now),
been using for 3 years. I didn't even know of the zend core that IBM wrote.
I'll check out the code and see what's there. Is there native support
for blob then???? Hopefully....

Anyway, thatnks for the help, it's hope anyway,

ANy idea where those DB2 IMage extensions are in 8.1 or 2???????

Ken

Watch out for an article on BLOB in PHPs by Helmut Tessarek in the next
issue of php|architect magazine.

Cheers
Sege

--
Serge Rielau
DB2 Solutions Development
IBM Toronto Lab
Feb 22 '06 #7
yoyo wrote:
Zend core. There's something I've not come across. I really wonder if it
will help me though, to store that image in a DB2 database.
The UDF I wanted from the image extender is the DB2IMAGE one, which
allows someone to do this from a command line:

insert into mytablewithblobcolum (CHARATT1,BLOBATT2) values
('ken',DB2IMAGE('/tmp/myjpg.jpg','jpg','26k'))

and it's supposed to take that jpeg and put it in your blob column.
To be more precise, it takes an image that resides in a file in the file
system and stores it in the BLOB column. But that BLOB column exists in a
so-called side table and not your normal user table. Only a
reference/handle is stored in the user table.

If you want to go that route, I recommend that you have a look at the
article I cited as the Download includes a UDF "SI_loadImage" that does
exactly what you want with much less overhead. (You can also implement
something like this in Java if you like.)
If I have a true blob in there, I'm able to get it out with php odbc.
(I had to use the db2 import function to populate something in that
database with a blob though, I really don't want to use that as a
solution however)
You don't have to go over the file route. You can directly insert a BLOB
send from the client into the database. Here is a sample PHP script that
does just that:

http://tinyurl.com/r3oqg

Note that the script is still based on the old PHP ODBC driver, but that
driver was heavily modified.

And here is a script to extract BLOBs and send them (as PDF) to the client:
http://tinyurl.com/odcwf
I've never had a problem with odbc connector for db2 in php (until now),
been using for 3 years. I didn't even know of the zend core that IBM
wrote. I'll check out the code and see what's there. Is there native
support for blob then???? Hopefully....


Yes, BLOB support is there (besides that a lot of other bugs don't exist
there).

--
Knut Stolze
DB2 Information Integration Development
IBM Germany
Feb 22 '06 #8
Knut Stolze wrote:
yoyo wrote:

Zend core. There's something I've not come across. I really wonder if it
will help me though, to store that image in a DB2 database.
The UDF I wanted from the image extender is the DB2IMAGE one, which
allows someone to do this from a command line:

insert into mytablewithblobcolum (CHARATT1,BLOBATT2) values
('ken',DB2IMAGE('/tmp/myjpg.jpg','jpg','26k'))

and it's supposed to take that jpeg and put it in your blob column.

To be more precise, it takes an image that resides in a file in the file
system and stores it in the BLOB column. But that BLOB column exists in a
so-called side table and not your normal user table. Only a
reference/handle is stored in the user table.

If you want to go that route, I recommend that you have a look at the
article I cited as the Download includes a UDF "SI_loadImage" that does
exactly what you want with much less overhead. (You can also implement
something like this in Java if you like.)

If I have a true blob in there, I'm able to get it out with php odbc.
(I had to use the db2 import function to populate something in that
database with a blob though, I really don't want to use that as a
solution however)

You don't have to go over the file route. You can directly insert a BLOB
send from the client into the database. Here is a sample PHP script that
does just that:

http://tinyurl.com/r3oqg

Note that the script is still based on the old PHP ODBC driver, but that
driver was heavily modified.

And here is a script to extract BLOBs and send them (as PDF) to the client:
http://tinyurl.com/odcwf

I've never had a problem with odbc connector for db2 in php (until now),
been using for 3 years. I didn't even know of the zend core that IBM
wrote. I'll check out the code and see what's there. Is there native
support for blob then???? Hopefully....

Yes, BLOB support is there (besides that a lot of other bugs don't exist
there).


Hey, thanks alot for those. That really helps! I've been playing with
the driver too, mabey I can get it to work.. I've checked out the Zend
core for IBM as well, looks nice, but in order for me to use I need to
change alot of things etc....I'll try it on my next project.
Feb 22 '06 #9

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
1597
by: Ken North | last post by:
Updated driver, provider and extender lists are now available at SQLSummit.com. The newest list is XQuery processors. XQuery engines (29) www.SQLSummit.com/XQueryProc.htm ODBC drivers (212)...
0
1225
by: Ken North | last post by:
Updated driver, provider and extender lists are now available at SQLSummit.com. The newest list is XQuery processors. XQuery engines (29) www.SQLSummit.com/XQueryProc.htm ODBC drivers (212)...
0
1724
by: wayne mcfadden | last post by:
Hi, I'm stumped. Our text extenders stopped working on one database. I think that i'm missing something simple here. The column is enabled... but when you do an index status it doesn't know...
3
1950
by: Rolf Schuster | last post by:
On Windows XP SP2, I am trying to create and enable a table for use by an AIV extender. In the extender command line processor (db2ext), I do db2ext => enable database for db2image without a...
2
1508
by: Vavel | last post by:
Hi! I'm looking for DB2 UDB Text Extender and DB2 UDB Audio Image and Video Extenders,but I can't download it from http://www-306.ibm.com/software/data/db2/extenders/support.html (error, document...
0
2236
by: Allan Ebdrup | last post by:
Hi I'm thinking up a way to implement multilanguage controls in ASP.Net 2.0, My multilanguage texts lie in a database or resource files, they are accessed through a webservice where I specify a...
4
2754
by: satish mullapudi | last post by:
Hi Gurus, I am using DB2 UDB 8.2.I want to load/insert images into DB2 database.So I found out we need to enable DB2 Image extender .How to enable that extender? Please tell the complete process...
1
1704
by: sheenaa | last post by:
I want to use AJAX features in my ASP.NET with C# website application 2005. For that i have already installed the following onto my pc. ASP.NET 2.0 AJAX Extensions 1.0 ASP.NET AJAX Futures...
4
1571
by: Garima12 | last post by:
I have 3 collapsible panel extenders containing other controls on my web page. Initially, I am loading one on page load. I want to collapse other 2 panels on click of any one out of those three as...
0
7055
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7106
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
6760
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7022
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5365
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
4501
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3013
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3004
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1311
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.