Problem with string and base64binary conversion

  • Thread starter =?ISO-8859-1?Q?Hel=E9ne?=
  • Start date
?

=?ISO-8859-1?Q?Hel=E9ne?=

Hi!
I have a string I want to save to database via a webmethod. The
webmethod takes a dataset where my string is declared as base64binary.

I have tried to convert my string to a byte array and send this to the
method. This returns no error but when I read the string again only
the first carachter seems to have been stored in the database. Isn't
the base64binary a byte array??

I have also tried the system.convert.tobase64string/chararray and
frombase64...
but this returns an error when I try to save. It seems to be an
invalid cast. I am also not surtain of the string/chararray here but I
have tried both with no luck.

I would appriciate any help on this.
Helene
 
D

DK

Hi!
I have a string I want to save to database via a webmethod. The
webmethod takes a dataset where my string is declared as base64binary.

I have tried to convert my string to a byte array and send this to the
method. This returns no error but when I read the string again only
the first carachter seems to have been stored in the database. Isn't
the base64binary a byte array??

I have also tried the system.convert.tobase64string/chararray and
frombase64...
but this returns an error when I try to save. It seems to be an
invalid cast. I am also not surtain of the string/chararray here but I
have tried both with no luck.

I would appriciate any help on this.
Helene

I am having the same problem. If you have found your answer, please
let me know. When I create an XSD file from Oracle9i database, the RAW
datatype is written as base64binary. However, I want to display as
hex.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,764
Messages
2,569,564
Members
45,039
Latest member
CasimiraVa

Latest Threads

Top