Download Images
You can download images in jpeg, svg, and png formats when using universal
or universal_ecommerce
sources.
If you do that through Proxy Endpoint, you can simply save the output to image extension, for example:
If you are using the Push-Pull or Realtime integration methods, you will need to add the content_encoding
parameter with a value of base64
. Once you receive the results, you need to decode encoded data from content
into bytes and save it as an image file.
Please find an example in Python below.
Last updated