Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
3658 Lượt xem

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

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
1
thg 11 22
2841
7
thg 1 24
15607
0
thg 3 15
4189
0
thg 3 15
5374
2
thg 9 23
1582