Bytes and octets are the same thing. Byte was meant to indicate an 8-bit value, 99.999% of the time. However, in the interests of standardization, it was deemed that without question an octet would be 8 bits, no more, no less. It's a rare place in the world where you'll find a byte that's not 8 bits, but a few odd machines tried to call 7 bits a byte, here and there.
So, it's highly unlikely that you actually need to do any conversion at all, given the terms you've picked.