middleware must also be able to send binary content