How to send .sav file to server?

Hi, I would like to send the .sav file to a database in text format, so that I can reload it anytime if it’s missing. The save game has way too many variables so it’s troublesome to make a string array. I was thinking to read the file in c++ or python and send it as text. Any help is very apreciated. Thankyou!