Ir al contenido
Menú
Se marcó esta pregunta
3307 Vistas

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
Descartar
Publicaciones relacionadas Respuestas Vistas Actividad
1
dic 19
7410
0
mar 17
3233
0
nov 21
2031
5
jul 20
9102
1
feb 17
7376