Rebase server
This commit is contained in:
parent
62f528577a
commit
8c34492247
@ -1,6 +1,7 @@
|
||||
import os
|
||||
import datetime
|
||||
from datetime import datetime as dt
|
||||
import base64
|
||||
|
||||
import requests
|
||||
|
||||
@ -198,7 +199,7 @@ class Helper():
|
||||
['inlineObjects'][id_doc]['inlineObjectProperties']
|
||||
['embeddedObject']['imageProperties']['contentUri'])
|
||||
r = requests.get(link, stream=True)
|
||||
return r.raw
|
||||
return base64.b64encode(r.content).decode('utf-8')
|
||||
|
||||
@classmethod
|
||||
def find_image(cls, document):
|
||||
|
@ -1,6 +1,7 @@
|
||||
import os
|
||||
import datetime
|
||||
from datetime import datetime as dt
|
||||
import base64
|
||||
|
||||
import requests
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user