Split attachment type to readable and binary.