aboutsummaryrefslogtreecommitdiffstats
path: root/gsxws/core.py
diff options
context:
space:
mode:
Diffstat (limited to 'gsxws/core.py')
-rw-r--r--gsxws/core.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/gsxws/core.py b/gsxws/core.py
index 1fecb4c..63b9f81 100644
--- a/gsxws/core.py
+++ b/gsxws/core.py
@@ -384,6 +384,9 @@ class GsxObject(object):
if k in ['packingList', 'proformaFileData', 'returnLabelFileData']:
v = base64.b64decode(v)
+ of = tempfile.NamedTemporaryFile(suffix=".pdf", delete=False)
+ of.write(v)
+ v = of.name
if isinstance(v, basestring):