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

or how to upload an excel file onto a field who is a field.Binary() by python code?

I have tried as below codes but failed:


test = xlrd.open_workbook('C:\Users\Administrator\Desktop\s.xlsx')

self.write({'datafile': base64.encodestring(test)})

Avatar
Descartar
Publicaciones relacionadas Respuestas Vistas Actividad
1
nov 22
2511
7
ene 24
15137
0
mar 15
3891
0
mar 15
5089
2
sept 23
1305