Support for streaming in attachments