byte arrays in JSON structure

0
Hi. There’s a JSON with thumbnailPhoto stored as an array of numbers. When creating a JSON structure for this snippet, it generates an entity “ThumbnailPhoto” with no attributes and a Wrapper entity with just a single Integer attribute. Isn’t this inefficient? And I’m not sure whether the order of bytes will be preserved when iterating the associated Wrapper entities.
asked
1 answers
2

Do you control the service that is sending this data? Other services I’ve seen that need to send binary data in JSON have Base64 encoded it into a String. That is easier to work with from Mendix as you can use actions in the Community Commons module to handle it. If you do have control, could it be changed to that instead?

answered