public void manage(HttpServletRequest req, HttpServletResponse resp)
throws IOException {
String imageId = req.getParameter(RequestParams.imageId.name());
if (imageId != null) {
resp.setContentType(MIME_TYPE);
ImagesOAM oam = provider.get();
Image image = oam.getImage(imageId);
if (image != null) {
resp.getOutputStream().write(image.getImage().getBytes());
}
}
}