我的client端为Android平台撰写语言为Java
在Java端将byte array ( byte[] ) 编码成base64字串
送至Python 的 Server端接收到base64字串
但是要将此字串解码为python的byte array遇到了一些问题
des_encoded = request.args["des_encoded"]
data = base64.b64decode(des_encoded)
错误讯息:
Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/twisted/web/http.py", line
1439, in dataReceived
finishCallback(data[contentLength:])
File "/usr/local/lib/python2.7/dist-packages/twisted/web/http.py", line
1708, in _finishRequestBody
self.allContentReceived()
File "/usr/local/lib/python2.7/dist-packages/twisted/web/http.py", line
1781, in allContentReceived
req.requestReceived(command, path, version)
File "/usr/local/lib/python2.7/dist-packages/twisted/web/http.py", line
768, in requestReceived
self.process()