convert from/to binary , useful to store ip with binary(16) in mysql

convert from/to binary , useful to store ip with binary(16) in mysql