sudsメソッドで Zipfile コンテンツを送信しようとすると、次のエラーが発生します。
'ascii' codec can't decode byte 0x8c in position 10: ordinal not in range(128)
これが私のコードです:
try:
project_archive = open(os.path.join(settings.MEDIA_ROOT, 'zip/project.zip'), "rb")
data = project_archive.read()
client = Client(settings.UPLOAD_PROJECT_WS_URL)
client.service.uploadProject(data)
except Exception as e:
return HttpResponse(e)
else:
return HttpResponse("Project was exported")