You can get attachments from a document directly into a stream, but you have to set the richtext field on the form to store contents as HTML & MIME. Combine that with a computed field that stores @AttachmentNames, and you can search MimeEntity for an entity with a content-type header having the name attribute equal to your filename.
You can get attachments from a document directly into a stream, but you have to set the richtext field on the form to store contents as HTML & MIME. Combine that with a computed field that stores @AttachmentNames, and you can search MimeEntity for an entity with a content-type header having the name attribute equal to your filename.