Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
3320 Zobrazení

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
Zrušit
Related Posts Odpovědi Zobrazení Aktivita
1
pro 19
7423
0
bře 17
3252
0
lis 21
2036
5
čvc 20
9120
1
úno 17
7383