You cannot do this because for such a conversion, you need to know the meaning of the binary content.
If e.g. there is a string inside a binary file it must not be converted and a 4 byte integer may need different treatment than a two byte integer.
In other words, for a byte order conversion, you need a data type description.