Skip to Content
Menu
This question has been flagged
3172 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
2509
7
saus. 24
15133
0
kov. 15
3889
0
kov. 15
5082
2
rugs. 23
1304