Outline on how to change file IO to binary data passing