Unix Technical Forum

Storing documents in db2

This is a discussion on Storing documents in db2 within the DB2 forums, part of the Database Server Software category; --> Hi all db2 8.1.3 Windows. I need to store some documents in db2 without using datalinks manager.These can be ...


Go Back   Unix Technical Forum > Database Server Software > DB2

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-27-2008, 07:34 AM
Praveen_db2
 
Posts: n/a
Default Storing documents in db2

Hi all
db2 8.1.3 Windows.
I need to store some documents in db2 without using datalinks
manager.These can be MS word or PDF dcouments.Any suggestions how to
tackle this?

Regards
Praveen

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-27-2008, 07:34 AM
Serge Rielau
 
Posts: n/a
Default Re: Storing documents in db2

Praveen_db2 wrote:
> Hi all
> db2 8.1.3 Windows.
> I need to store some documents in db2 without using datalinks
> manager.These can be MS word or PDF dcouments.Any suggestions how to
> tackle this?

Use a BLOB.

Cheers
Serge

--
Serge Rielau
DB2 Solutions Development
IBM Toronto Lab

IOD Conference
http://www.ibm.com/software/data/ond...ness/conf2006/
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 02-27-2008, 07:34 AM
Praveen_db2
 
Posts: n/a
Default Re: Storing documents in db2

Thanks Serge
After creating table with a BLOB field how shall I use the INSERT
statement for inserting the document.

Regards
Praveen

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 02-27-2008, 07:34 AM
Praveen_db2
 
Posts: n/a
Default Re: Storing documents in db2

After a lot of googling I am still not able to find a way for INSERTing the
BLOB values using SQL.DO I need to make procedures/udf's in external
languages like 'C'.In my application .NET is used as front end.Can these
BLOB manipulation activities be done using .NET also??

Praveen

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 02-27-2008, 07:34 AM
Gert van der Kooij
 
Posts: n/a
Default Re: Storing documents in db2

In article
<4189570838e021d17df21acdbb08111a@localhost.talkab outdatabases.com>,
pandey.praveen@gmail.com says...
> After a lot of googling I am still not able to find a way for INSERTing the
> BLOB values using SQL.DO I need to make procedures/udf's in external
> languages like 'C'.In my application .NET is used as front end.Can these
> BLOB manipulation activities be done using .NET also??
>
> Praveen
>
>


Check the samples supplied with DB2. I found some in
C:\Program Files\IBM\SQLLIB\samples\.NET\vb\DtLob.vb and
C:\Program Files\IBM\SQLLIB\samples\.NET\cs\DtLob.cs
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 02-27-2008, 07:34 AM
Gregor =?UTF-8?B?S292YcSN?=
 
Posts: n/a
Default Re: Storing documents in db2

Praveen_db2 wrote:

> Thanks Serge
> After creating table with a BLOB field how shall I use the INSERT
> statement for inserting the document.
>
> Regards
> Praveen


You should use PreparedStatements (as they are called in Java).

Best regards,
Kovi
--
-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-
| Gregor Kovac | Gregor.Kovac@mikropis.si |
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| In A World Without Fences Who Needs Gates? |
| Experience Linux. |
-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 09:24 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com