I wish to read a jar in binary mode and write the binary as string(encoded if need be) to a file. This string would be included in code to be read and converted back into binary and written as a jar file.
I'm trying to replicate what get-pip.py has done to distribute pip.
What would be the best way to do this in C?