Running view on BinaryDocument



We are using StingDocument and query them using
if (meta.type == “base64”){ var decode = decodeBase64(doc); }
and then implement business logic on our string inside the view map query.
For data compression, we want to start using BinaryDocument without losing the ability to query the document.
Is the same trick will work also for BinaryDocument? Do we need to override the default transcoding/serialization?

BTW - we are using CB server 3