hedera-hashgraph

How can I encode and decode an image for use with the Hedera file service?


I want to store images on the Hedera file service but I have no idea on how to get started. I don't know how I should encode my image and how to decode it. The documentation is extremely vague and does mention any form of data types, data structures or encoding except utf-8.

Please note that I have very little experience with file and data encoding overall.


Solution

  • You can use byte arrays, this is the standard way.