aheckmann: ok, but then how do I transform the buffer in a binary type