回答編集履歴
1
BASE64形式に変換する部分でバイト列のままだった為、文字列に変換する処理を追加
test
CHANGED
@@ -202,7 +202,7 @@
|
|
202
202
|
|
203
203
|
image_path = photoObject.image.path
|
204
204
|
|
205
|
-
b64 = base64.encodestring(open(image_path, 'rb').read())
|
205
|
+
b64 = base64.encodestring(open(image_path, 'rb').read()).decode('utf-8')
|
206
206
|
|
207
207
|
|
208
208
|
|