Skip to Content
Menu
This question has been flagged
4019 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
3202
7
saus. 24
16360
0
kov. 15
4565
0
kov. 15
5810
2
rugs. 23
1866