You'll need to use code or third party tools for this, I think - although it may be possible with SharePoint workflow or MS Flow. The attachments are stored as base64 strings in the XML. FormsViewer has built in capabilities for saving the attachments out to another library, so if you are using browser forms, this may be your simplest option.
Hilary Stoupa
