You can copy an attachment within a workflow into a variable with the advanced, utilities component: From attachment to variable. The component has these parameters:
- Attachment name
The name of the workflow attachment to copy. - Variable name
The name of the variable into which the contents of the attachment is to be copied to. - Encode as Base64
If enabled the binary data from the attachment contents is first converted into base64 before it is copied to the variable.