Python 2.4.4 (#2, Aug 16 2007, 02:03:40) [GCC 4.1.3 20070812 (prerelease) (Debian 4.1.2-15)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import SOAPpy >>> SOAPpy.Config.debug = 1 >>> from SOAPpy import SOAPProxy >>> >>> import base64, os >>> from stat import * >>> import mimetypes >>> url = "http://localhost/douploadserver.php" >>> cliente = SOAPProxy(url) >>> fichero=open("estefichero.png","rb") >>> data=fichero.read().encode('base64') >>> size=os.stat("estefichero.png")[ST_SIZE] >>> type=mimetypes.guess_type("estefichero.png")[0] >>> name=fichero.name >>> print cliente.doUpload(name,type, int(size),data)