Skip to Content
Menu
You need to be registered to interact with the community.
This question has been flagged
3189 Prikazi

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
Opusti
Related Posts Odgovori Prikazi Aktivnost
1
nov. 22
2517
7
jan. 24
15148
0
mar. 15
3894
0
mar. 15
5100
2
sep. 23
1306