I'm looking at the docs: http://docs.atlassian.com/atlassian-confluence/latest/com/atlassian/confluence/rpc/soap/XhtmlSoapService.html#addProfilePicture(java.lang.String, java.lang.String, java.lang.String, java.lang.String, byte[])
and I am able to login. Now I am trying to add a profile picture (I do have permissions) and the code looks like this:
with open('C:/roster/face.png', 'rb') as p:
pic = p.read()
server.confluence1.addProfilePicture( token, userName, 'face.png', 'image/png', pic )
And the (truncated for brevity) error I get is:
File "R:\Tools\Python\2.6\lib\xmlrpclib.py", line 604, in close
self._parser.Parse("", 1) # end of data
ExpatError: no element found: line 1, column 0
What am I doing wrong? I know my token and userName are correct. There isn't much direction for the mime type but it looks like that's all it expects. I hope the docs get more examples.