You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 3 Next »

In our What is a resource? article, we noted that a resource can be represented by various media types. Most of the time this will be text based media (e.g., HTML, JSON, XML). However, perhaps you need to return binary media, such as:

  • A PDF version of a customer invoice.
  • A JPEG image of a barcode.
  • An MPEG video of assembly instructions.

This article will explain how to properly return binary data in your API.

  • No labels