Unix Technical Forum

VARBINARY - BINARY

This is a discussion on VARBINARY - BINARY within the DB2 forums, part of the Database Server Software category; --> Hi all, how do I export a VARBINARY field in a xml and import it later into another table? ...


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, 08:13 AM
Stefan
 
Posts: n/a
Default VARBINARY - BINARY

Hi all,
how do I export a VARBINARY field in a xml and import it later into
another table?
I have to do that with jdbc.

I think I have to export a VARBINARY filed with getBinary, but how do I
store the result in a xml?
And how do I import it later into the other table? With setBinary? But
I cant store Bytes in a xml, could I?

Is somewhere a sample?

A lot of questions?

Thank you very much...
Stefan

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-27-2008, 08:14 AM
Artur
 
Posts: n/a
Default Re: VARBINARY - BINARY

Stefan,

you should provide more precise information:

What is stored in the database? Do you store there XML documents? How
XML fit your requirements?

If you just want to export and import [binary] data you can use DB2
Export/Import API in C and call it from Java.

As I understand, your task is to export data to a file, store multiple
records in XML file, and import it from your program. That kind of
question seems to be more Java related (getBytes, setBytes). To
generate XML from relational tables you can use XMLSERIALIZE,
XMLELEMENT, ... functions.

-- Artur Wronski


Stefan napisal(a):
> Hi all,
> how do I export a VARBINARY field in a xml and import it later into
> another table?
> I have to do that with jdbc.
>
> I think I have to export a VARBINARY filed with getBinary, but how do I
> store the result in a xml?
> And how do I import it later into the other table? With setBinary? But
> I cant store Bytes in a xml, could I?
>
> Is somewhere a sample?
>
> A lot of questions?
>
> Thank you very much...
> Stefan


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 05:59 AM.


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