Skip to content

Commit

Permalink
fix for pdfmaker datasrc processing
Browse files Browse the repository at this point in the history
  • Loading branch information
drfho committed Jul 9, 2023
1 parent b3f1bb3 commit d32a251
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Products/zms/_blobfields.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,8 +146,9 @@ def createBlobField(self, objtype, file=b''):
elif isinstance(file, dict):
data = file.get( 'data', '')
if isinstance(data, str):
data = bytes(data,'utf-8')
data = io.BytesIO( data)
# data = bytes(data,'utf-8')
# data = io.BytesIO( data)
data = io.StringIO ( data)
blob = uploadBlobField( self, objtype, data, file.get('filename', ''))
if file.get('content_type'):
blob.content_type = file.get('content_type')
Expand Down

0 comments on commit d32a251

Please sign in to comment.