Hello, I'm writing a SOAP-client using SOAPpy for a JAVA-Application (JIRA). When I try to send attachments, the incoming files are not decoded correctly. They have about 1.5% more bytes.
What I'm doing is this: file_obj = file(<path to file>,'rb') cont = file_obj.read() cont64 = base64.encodestring(cont) chararray1 = array.array('c') chararray1.fromstring(cont64) file_obj.close() # using the method of jira's SOAP-interface add = jira_soap.addAttachmentsToIssue(auth,issue_id,[<filename>],[chararray1]) This is the WSDL-description of that method: <wsdl:message name="addAttachmentsToIssueRequest"> <wsdl:part name="in0" type="xsd:string"/> <wsdl:part name="in1" type="xsd:string"/> <wsdl:part name="in2" type="impl:ArrayOf_xsd_string"/> <wsdl:part name="in3" type="impl:ArrayOf_xsd_base64Binary"/> </wsdl:message> Does anybody know, why the files are not de-/encoded correctly? Thanks for help. Seppl -- http://mail.python.org/mailman/listinfo/python-list