//采用activation的DataHandler实现Streaming传输.
DataSource dataSource = new FileDataSource(image);
DataHandler dataHandler = new DataHandler(dataSource);
LargeImageResult result = new LargeImageResult();
result.setImageData(dataHandler);
return result;
} catch (IOException e) {
logger.error(e.getMessage(), e);
return WSResult.buildResult(LargeImageResult.class, WSResult.IMAGE_ERROR, "Image reading error.");
}