If you use SqlBak to send backups to FTP Server, you can face a problem when though the connection seems to work, the file transfer doesn’t.
error
The media family on device is incorrectly formed
If you encounter the error message, “the media family on device is incorrectly formed. SQL Server cannot process this media family,” you may not initially understand exactly what happened.
This post will try to give you a few suggestions as to what might have gone wrong and what to do in those situations.