Rewrote the test script not to convert the strings to integers. Worked on the server end to recieve the upload.
Modified the server to receive filename and write the decompressed chunks out.