コンテンツへスキップ
メニュー
この質問にフラグが付けられました
3384 ビュー

Now I want to upload a file-like to a fileds.Binary() field as below codes:

picData = StringIO.StringIO()
plt.savefig(picData)
self.write({"file": base64.encodestring(picData.getvalue())})

shall  I rename the file which is uploaded onto  the fields.Binary()--"file" as "x.xlsx"?

アバター
破棄
関連投稿 返信 ビュー 活動
1
12月 19
7476
0
3月 17
3305
0
11月 21
2077
5
7月 20
9177
1
2月 17
7440