473,396 Members | 1,895 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

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

Jun 1 '06 #1
1 3598
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


Jun 5 '06 #2

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

Similar topics

1
by: Aakash Bordia | last post by:
What is the documented and known behavior of inserting hex constants into a binary/varbinary column from a client to a server which have different code pages? Will any code page / character set...
1
by: Maciej | last post by:
Hello I have some problems with converting varbinary to float in T-SQL stored procedure. In my C# application i have table of structures with double type fields. Size of this table is variant. I...
1
by: Sunit Joshi | last post by:
Hello All I have a field which is of type varbinary(256). Now in my sql statement I cast it to nvarchar but when do the DataReader.GetString() method, I get the string with \0 at the end. This...
8
by: Vinod | last post by:
Hi, I have a stored procedure which expects a varbinary datatype. How can i pass a varbinary datatype from asp.net directly to the stored procedure. I tried using the Convert function in Sql...
2
by: Bill Nguyen | last post by:
I need sample code to insert binary file (mappoint map file) into a varbinary column using VB.NET. Please help! Thanks Bill
5
by: =?Utf-8?B?ZHZhcm1h?= | last post by:
Hi I am executing a Sql Server SP from my C# app One of the parameters is of type varbinary. Since the content length of this parameter is variable I cannot set it to a pre-defined length. What...
1
by: Karch | last post by:
I am doing some experimenting with serialization (for use with Service Broker) and I am having a problem converting from a .NET DateTime (in the client application) to a SqlDbType.VarBinary (as...
1
by: anilkmakhija | last post by:
I need to store 256 bit hash (SHA-2 alogrithmn) in one of the table's primary key. I would prefer to use numeric data type rather varchar etc. * Decimal datatype range is -10^38 +1 to 10^38 -1....
1
by: Gilad | last post by:
Hi I moved to SQL Server 2005 (from 2000) and noticed there is a better variable to deal with binary arrays. I hava a table that hold 9 columns of images (BLOB). each array has a different size...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
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...
0
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
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,...

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.