int length = request.getParameter("length", -1);
OutputStream out = response.getOutputStream();
if (pos == 0L && length == -1) {
/* return the complete binary */
InputStream in = new MicroKernelInputStream(mk, blobId);
IOUtils.copy(in, out);
} else {
/* return some range */
byte[] buff = new byte[length];
int count = mk.read(blobId, pos, buff, 0, length);