added readable stream support to attachment data. fixes #38