220221222223224225226227228229230
file = this.datasource.getRoot().getFileItem(name + ".mime"); if (file.exists()) { res = ""; in = file.openRead(); try { while ((nread = in.read(buf)) > 0) { res = res + new String(buf, 0, nread); }
279280281282283284285286287288289
.getFileExtension(file)) : mime; response.setContentType(mime); response.setContentLength(webStream.getLength()); in = webStream.openRead(); try { out = response.getOutputStream(); buf = new byte[BUFFER_2K];