Never jump the gun when you're coding. Take things one step at a time. If you want to send some data from a file to a server you first need to read in the data.
But to answer your question: No, because of how blockland file reading works, it is impossible to reliably read any file containing null characters and it's also impossible to write the null character to a file.