How can I decode bytes in ledger fields ledger?

Votes can be access by querying the REST API and get a “raw block”, or a block in msgpack format (the JSON version does not contain it).
For how to do it using the SDK see: There is no block hash in get block api response - #2 by fabrice