diff --git a/cuenca/resources/base.py b/cuenca/resources/base.py index 7a34dece..bd31adc7 100644 --- a/cuenca/resources/base.py +++ b/cuenca/resources/base.py @@ -107,7 +107,7 @@ def download( f'/{cls._resource}/{id}', headers=dict(Accept=file_format.value), ) - return BytesIO(resp) + return BytesIO(base64.b64decode(resp)) @property def pdf(self) -> bytes: diff --git a/cuenca/version.py b/cuenca/version.py index 33ff9858..7847b7d2 100644 --- a/cuenca/version.py +++ b/cuenca/version.py @@ -1,3 +1,3 @@ -__version__ = '0.14.4' +__version__ = '0.14.5.dev0' CLIENT_VERSION = __version__ API_VERSION = '2020-03-19'