You can load data from a workflow variable into a Library resource within a workflow with the advanced, utilities component: From variable to a resource. The component has these parameters:
Variable name
The name of the variable to copy the data from.
Decode base64
If the data in the variable is stored as an encoded base64 data stream, then you can enable this to convert the base64 data stream into a binary data stream.
Resource type
The Library type of the new resource.
Resource path
The path and resource name to copy to. The path is within the selected resource type.