Changed reading file to memory to use uint8 from char -> works with Octave