Skip to Content
मेन्यू
This question has been flagged
3368 Views

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
Discard
Related Posts Replies Views Activity
1
दिस॰ 19
7450
0
मार्च 17
3282
0
नव॰ 21
2065
5
जुल॰ 20
9145
1
फ़र॰ 17
7406