Skip to Content
Menu
This question has been flagged
2303 Views

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
Discard
Related Posts Replies Views Activity
1
Nov 22
1514
7
Jan 24
13940
0
Mar 15
3098
0
Mar 15
4365
2
Sep 23
417