Char to byte

but isn't possible to save in char

Sure it is. A char is an 8 bit type. A bytes is an 8 bit type.