So You suggest, that i need to read all file by spliting it into 3 byte array and send each 3 byte part to encode ?