return full json for retrieve media content to avoid encoding/decoding error

This commit is contained in:
Mike Liao 2024-11-04 23:32:03 -08:00
parent c33700fa66
commit 349bebef49

View File

@ -15,7 +15,7 @@ class DocumentManager:
api_url = self.storage_service_api_base + "read-document-as-http-media/" + document_id
async with httpx.AsyncClient() as client:
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:
api_url = self.storage_service_api_base + "upload-file"