How to download file from buffer

I have an email objet created by mailparser. Any attachments are held in an array as a buffer. How do I use the download helper to stream one of these buffers to be downloaded?.