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

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
Zrušit
Related Posts Odpovědi Zobrazení Aktivita
1
lis 22
3069
7
led 24
16152
0
bře 15
4444
0
bře 15
5665
2
zář 23
1756