Byte array question

2006-07-13 Thread dan . winsor
Hi all, I'm trying to write through SOAPpy in python to a Java implemented API. The API for the method I want to use is as follows: boolean added = SoapService.addAttachmentsToIssue(token, issue.getKey(), new String[]{fileName}, new byte[][]{getBytesF

Re: Byte array question

2006-07-13 Thread Dan Winsor
Sybren Stuvel wrote: > [EMAIL PROTECTED] enlightened us with: > > I want to send thorugh the API. However, no matter how I try it, > > Java on the other end doesn't like what I'm passing it there. > > What have you tried and how did it fail? See below. > > How can I mimic a byte array in python?

Re: Byte array question

2006-07-13 Thread Dan Winsor
Sybren Stuvel wrote: > Dan Winsor enlightened us with: > > This one "works" in that it runs, but the server on the other end gets > > garbage unrelated to the test file. > > Are you sure it is garbage? Have you tried changing byte order? Ah, that I hadn't. Any pointers to doing that? -- http:/

Re: Byte array question

2006-07-13 Thread John Machin
On 14/07/2006 10:41 AM, Dan Winsor wrote: > Sybren Stuvel wrote: >> Dan Winsor enlightened us with: >>> This one "works" in that it runs, but the server on the other end gets >>> garbage unrelated to the test file. >> Are you sure it is garbage? Have you tried changing byte order? > > Ah, that I h

Re: Byte array question

2006-07-14 Thread Dan Winsor
John Machin wrote: > On 14/07/2006 10:41 AM, Dan Winsor wrote: > > Sybren Stuvel wrote: > >> Dan Winsor enlightened us with: > >>> This one "works" in that it runs, but the server on the other end gets > >>> garbage unrelated to the test file. > >> Are you sure it is garbage? Have you tried changi

Re: Byte array question

2006-07-14 Thread Marc 'BlackJack' Rintsch
In <[EMAIL PROTECTED]>, Dan Winsor wrote: > Sybren Stuvel wrote: >> [EMAIL PROTECTED] enlightened us with: >> > I want to send thorugh the API. However, no matter how I try it, >> > Java on the other end doesn't like what I'm passing it there. >> >> What have you tried and how did it fail? > > S

Re: Byte array question

2006-07-14 Thread Dan Winsor
Marc 'BlackJack' Rintsch wrote: > In the Java snippet from your initial post the `chararray` argument was an > *array* of `Byte` arrays. A string is just an one dimensional "byte > array". Maybe it helps if you put `chararray` into a list!? Yup, thanks, that was one that I did try with no impro

Re: Byte array question

2006-07-14 Thread Dan Winsor
John Machin wrote: > On 14/07/2006 10:41 AM, Dan Winsor wrote: > > Sybren Stuvel wrote: > >> Dan Winsor enlightened us with: > >>> This one "works" in that it runs, but the server on the other end gets > >>> garbage unrelated to the test file. > >> Are you sure it is garbage? Have you tried changi

Re: Byte array question

2006-07-14 Thread Dan Winsor
Nevermind. Did it in Java. Thanks anyway to all who gave suggestions. -- http://mail.python.org/mailman/listinfo/python-list