Byte Array As Base64Serializer
A custom serializer for ByteArray that encodes to and decodes from Base64 strings.
It uses standard Base64 encoding for serialization. For deserialization, it first attempts to decode using standard Base64, and falls back to URL-safe Base64 if that fails.