From: aastanti@... Date: 2005-04-06T00:34:43+09:00 Subject: Re: pass a byte array to a web service Robert Klemme wrote: > Withoug knowing web services inside out: The line above seems to indicate > that you have to send the bytes base64 encoded. > > >> require 'base64' > => true > >> Base64.encode64 "\001\002\003" > => "AQID\n" > >> Base64.encode64 "\001" > => "AQ==\n" Thanks Robert, but it doesn't work: it doesn't seem to be a matter of encoding, it seems to be a matter of type conversion. Infact, if a try to encode it like x = Base64.encode("abc") I get again: Bad types (class java.lang.String -> class [B) Please also note that starting from the WSDL it works perfectly passing a plain simple string. I really don't understand. AA