Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion Groups
Database Servers
DB2InformixIngresMS SQLOraclePervasive.SQLPostgreSQLProgressSybase
Desktop Databases
FileMakerFoxProMS AccessParadox
General
General DB TopicsDatabase Theory
Related Topics
Java Development.NET DevelopmentVB DevelopmentMore Topics ...

Database Forum / DB2 Topics / June 2006

Tip: Looking for answers? Try searching our database.

VARBINARY - BINARY

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Stefan - 01 Jun 2006 08:08 GMT
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
Artur - 05 Jun 2006 10:20 GMT
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
[quoted text clipped - 12 lines]
> Thank you very much...
> Stefan
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.