return full json for retrieve media content to avoid encoding/decoding error
This commit is contained in:
parent
c33700fa66
commit
349bebef49
@ -15,7 +15,7 @@ class DocumentManager:
|
|||||||
api_url = self.storage_service_api_base + "read-document-as-http-media/" + document_id
|
api_url = self.storage_service_api_base + "read-document-as-http-media/" + document_id
|
||||||
async with httpx.AsyncClient() as client:
|
async with httpx.AsyncClient() as client:
|
||||||
response = await client.get(api_url)
|
response = await client.get(api_url)
|
||||||
return response.json()['media']
|
return response.json()
|
||||||
|
|
||||||
async def save_document_file(self,associated_with:str, name:str,blob:bytes)->str:
|
async def save_document_file(self,associated_with:str, name:str,blob:bytes)->str:
|
||||||
api_url = self.storage_service_api_base + "upload-file"
|
api_url = self.storage_service_api_base + "upload-file"
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user