openfaas / templates

OpenFaaS Classic templates
https://www.openfaas.com
MIT License
276 stars 228 forks source link

Allow to send and receive binary files in java11 template #203

Open vane opened 4 years ago

vane commented 4 years ago

Expected Behaviour

Allow to get byte[] data instad of string in request

Current Behaviour

Only string is allowed

Possible Solution

Read body as byte[] and use IRequest getBodyBytes() IResponse setBodyBytes()

Steps to Reproduce (for bugs)

  1. Create echo function that sends input back to output
  2. Send file with POST request
  3. Received file have different size

Context

Your Environment