Commit 6c91dd3b authored by Romain Courteaud's avatar Romain Courteaud

addImage method only accept string or buffer

parent 5897a0bc
......@@ -156,7 +156,7 @@ class OOOdCommandTransform(commandtransform):
image = OFSImage(image.getId(), image.getTitle(), image_data)
# image should be OFSImage
data = image.data
data = str(image.data)
width = image.width
height = image.height
if height:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment