I am trying to verify a file\'s content before uploading the file to the big cloud. I figured out how to read the file\'s magic number from a stream however I am not able to