Skip to Content
Menu
This question has been flagged
3603 Rodiniai

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)})

Portretas
Atmesti
Related Posts Replies Rodiniai Veikla
1
lapkr. 22
2797
7
saus. 24
15549
0
kov. 15
4153
0
kov. 15
5337
2
rugs. 23
1555