Skip to content

Commit

Permalink
Issue with returning binary, now b64 returned.
Browse files Browse the repository at this point in the history
  • Loading branch information
david-i-berry committed Jul 7, 2023
1 parent 435f8ca commit ddc14d1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions synop2bufr/pygeoapi_plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,7 @@ def execute(self, data):
# and add to single output object
bufr = []
for result in bufr_generator:
result['bufr4'] = base64.b64encode( result['bufr4'] ).decode("utf-8") # noqa
bufr.append(result)
output = {"messages": bufr, "errors": errors}
except Exception as e:
Expand Down

0 comments on commit ddc14d1

Please sign in to comment.