working transporting the bitmap as a bytestream