Hi i would like to know if it is possible to convert any file input into a number such as a long or integer and back into the file. Im not asking for you to program this for me id just like to know how you would do this in theory.
The 2 theories i have tried so far are 1. To convert the file into a byte array then into a long this was unsuccessful. 2. To convert the file into a string then into a long/integer this was also unsuccessful. The reason im posting is i would like your input into how you would go about doing this or if it is even possible. I understand that the number generated from this file would be huge so also realise that some larger file may need to be split into smaller files to do this.
I am only asking for your theories here on how to do this but code snipets are always welcome.
Thank you in advanced