Handle binary document type