Skip ke Konten
Menu
Pertanyaan ini telah diberikan tanda
3472 Tampilan

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"?

Avatar
Buang
Post Terkait Replies Tampilan Aktivitas
1
Des 19
7558
0
Mar 17
3379
0
Nov 21
2128
5
Jul 20
9260
1
Feb 17
7577