## Related issues
<!-- Recommended
Link related issues below. Insert the issue link or reference after the word "Closes" if merging this should automatically close it.
- Closes #123
- Relates #123
- Requires #123
- Superseeds #123
-->
- Closes #30
## Use cases
As user I want to receive the binary Avro payload without base64 encoding.
Release notes
Add
encoding
option to select the encoding of Avro payload betweenbase64
(default) andbinary
What does this PR do?
Adds
encoding
set option to choose the encoding of Avro payload. By default it's set tobase64
.Why is it important/What is the impact to the user?
Let the user to decide whether to use
binary
orbase64
encoding.Checklist
[ ] I have commented my code, particularly in hard-to-understand areas[ ] I have made corresponding change to the default configuration files (and/or docker env variables)Author's Checklist
How to test this PR locally
Gemfile
output { stdout { codec => avro { schema_uri => "/tmp/avro_schema_payment.asvc" base64_encoding => false } } }
{"namespace": "io.confluent.examples.clients.basicavro", "type": "record", "name": "Payment", "fields": [ {"name": "id", "type": "string"}, {"name": "amount", "type": "double"} ] }