Mixing text and binary data



I would like to read/write both text and binary data on sockets and
(*stdandard-input* *standard-output*). Are there idioms in Lisp to
mix text and binary ?
.