encodeToByteArrayBlocking

Encodes this material into a ByteArray in the specified format.

Use encodeToByteArray when calling from suspending code.