bug fix. writing binary data from network reply.