473,378 Members | 1,099 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,378 software developers and data experts.

Problem with string and base64binary conversion

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
Nov 17 '05 #1
1 6375
DK
he*********@sas.se (Heléne) wrote in message news:<a3*************************@posting.google.c om>...
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.
Nov 17 '05 #2

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

Similar topics

7
by: john | last post by:
On my form i have a message box called txtItemDesc that displays the french phrase qualité Père Noël. Now then when i run this code on that text box: Dim chrArr() As Char chrArr =...
0
by: Lokkju | last post by:
I am pretty much lost here - I am trying to create a managed c++ wrapper for this dll, so that I can use it from c#/vb.net, however, it does not conform to any standard style of coding I have seen....
7
by: BluDog | last post by:
Hi I am trying to store an image in an xml file, i vcan store it fine but the retreval is a bit of a problem: To String: Dim ms As New IO.MemoryStream Dim arrImage() As Byte...
3
by: BredStik | last post by:
Hi! I have this particular problem. I have to use a base64Binary attribute as a key for one element in my schema. Everything is validating ok in XmlSpy, but when using the .Net...
16
by: Dany | last post by:
Our web service was working fine until we installed .net Framework 1.1 service pack 1. Uninstalling SP1 is not an option because our largest customer says service packs marked as "critical" by...
2
by: yqlu | last post by:
I hava developed a client in C# that is connected to a 3-party XML Web Services developed in Java based on the AXIS 1.1. Most methods call are successful except for one method named "findObjects"...
2
by: ajikoe | last post by:
Hi, I tried to follow the example in swig homepage. I found error which I don't understand. I use bcc32, I already include directory where my python.h exist in bcc32.cfg. /* File : example.c...
4
by: IsValidUN | last post by:
I have an XSD which has an import to an XSD located on the web which has a DTD within it. (Using VS-2005 2.0 framework) If I load the XSD using the following, it can't find elements defined within...
0
by: Rootworker | last post by:
After some helpful hints from folks in this newsgroup, I finally got my webservice consumer to get SOMETHING back from my very simple web service. (see below) What I get back, however, is a...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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...

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.