Modify to open file in access='stream' for those BINARY data is writen in.