Overslaan naar inhoud
Menu
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Deze vraag is gerapporteerd
3370 Weergaven

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
Annuleer
Gerelateerde posts Antwoorden Weergaven Activiteit
1
dec. 19
7455
0
mrt. 17
3282
0
nov. 21
2067
5
jul. 20
9146
1
feb. 17
7407