Switched to encoding 2MB files and sending those upsocket