added file to byte and vice versa