Re: pass compressed string

2011-02-25 Thread Andi Vajda
On Feb 25, 2011, at 5:57, Roman Chyla wrote: Hi Andi, Thanks, the JArray_byte() does what I needed - I was (wrongly) passing bytestring (which I think got automatically converted to unicode) and trying to get bytes of that string was not correct. Though it would be interesting to find out if

Re: pass compressed string

2011-02-25 Thread Roman Chyla
Hi Andi, Thanks, the JArray_byte() does what I needed - I was (wrongly) passing bytestring (which I think got automatically converted to unicode) and trying to get bytes of that string was not correct. Though it would be interesting to find out if it is possible to pass string and get the bytes i

Re: pass compressed string

2011-02-23 Thread Andi Vajda
On Thu, 24 Feb 2011, Roman Chyla wrote: I would like to transfer results from python to java: hello = zlib.compress("hello") on the java side do: byte[] data = string.getBytes() But I am not successful. Is there any translation going on somewhere? Can you be more specific ? Actual lines o

pass compressed string

2011-02-23 Thread Roman Chyla
Hello, I would like to transfer results from python to java: hello = zlib.compress("hello") on the java side do: byte[] data = string.getBytes() But I am not successful. Is there any translation going on somewhere? Thank you, Roman