Using binary content for both request and response
Claudia API Builder will populate request. Document Tags and Contributors Tags: Get notified when we publish the next one. Similarly, although the documentation suggests that multiple content types can be specified in the Accept header for binary responses, it seems that this breaks the conversion. Once a month, high value mailing list, no ads or spam.
Please, read this paragraph. It can transform incoming binary files into base64 encoded strings before passing on to a Lambda function, and transform base64 encoded Lambda resutls into binary files. Document Tags and Contributors Tags: This is null if the request is not complete or was not successful.
Get the latest and greatest from MDN delivered straight to your inbox. Claudia API Builder will automatically convert a binary buffer to a base64 string. Remember to set the success.
You can also send binary content by passing an instance of the nsIFileInputStream to send. You will need a png decoding library for that. Claudia API Builder makes it easier to handle binary content by doing several things automatically for you:.
Document Tags and Using binary content for both request and response Tags: Note that we can directly store request body into a file Claudia API builder will process and convert the incoming body into a binary bufferand that we can directly return the results of a binary file read Claudia API Builder will convert it into a base64 string. This is building a byte array of 8-bit integers and sending it; you can use any binary data you'd like, of course. Use requestContentHandling in the handler configuration to set the required incoming binary content handling behaviour API Gateway Integration content handling. Remember to set the success.