Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Javascript > How do I pass a variant byte array to a .NET web service?

Reply
Thread Tools

How do I pass a variant byte array to a .NET web service?

 
 
abarberis@gmail.com
Guest
Posts: n/a
 
      03-18-2006
I'm very confused with this. I have a .NET web service that I am trying
to pass a variant byte array to from the client side. If the signature
of the web service is set to accept an Object it seems to pass it in
but I can't access the array that should be in there. If I set the
signature as a byte array I get an error in webservice.htc. It seems to
be trying to encode the variable to base 64 and it fails when trying to
do a .length on it.

Am I supposed to convert this to Base64 or what? I would appreciate any
help with this as I am really in a jam.

Thanks

Alex

 
Reply With Quote
 
 
 
 
irwin.williams@gmail.com
Guest
Posts: n/a
 
      03-20-2006
Hi,
I've had a similar problem with passing byte arrays as parameters in my
web services.
The solution i used was to manually convert the array of bytes as a
base64 encoded string and pass the string. Decoding on the receive.
My investigations into the nullified byte array led me to make this
post:
http://groups.google.com/group/micro...363e45fbf92e3d
hope my 'fix' helps.

 
Reply With Quote
 
 
 
 
abarberis@gmail.com
Guest
Posts: n/a
 
      03-20-2006
I found some vbscript code which converts my array to base64. When I
pass it as a string and use the .NET Convert.FromBase64String to decode
this string I get an array with different values in it. Is there more
than one standard when it comes to converting into base64? Maybe I need
to modify the script code to comply with the .NET function?

Any ideas?

Thanks

 
Reply With Quote
 
Thomas 'PointedEars' Lahn
Guest
Posts: n/a
 
      03-20-2006
wrote:

> I found some vbscript code which converts my array to base64. When I
> pass it as a string and use the .NET Convert.FromBase64String to decode
> this string I get an array with different values in it. Is there more
> than one standard when it comes to converting into base64? Maybe I need
> to modify the script code to comply with the .NET function?
>
> Any ideas?


<URL:http://en.wikipedia.org/wiki/Base64>


F'up2 microsoft.public.dotnet.framework.aspnet (where I don't read)

PointedEars
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: How include a large array? Edward A. Falk C Programming 1 04-04-2013 08:07 PM
How do I pass a variant byte array to a .NET web service? abarberis@gmail.com ASP .Net Web Services 3 03-20-2006 08:27 PM
How do I pass a variant byte array to a .NET web service? abarberis@gmail.com ASP .Net 3 03-20-2006 08:27 PM
HELP! Me please. Pass Array of Byte(Image) to a Web Service sebascomeau@gmail.com ASP General 0 11-21-2005 02:31 PM
Converting a Primative byte array to a Byte array object Kirby Java 3 10-08-2004 03:01 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57