webserver uses readAllFromStream