跳至内容
菜单
此问题已终结
3350 查看

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
7433
0
3月 17
3264
0
11月 21
2054
5
7月 20
9128
1
2月 17
7389