`
zjut_ww
  • 浏览: 1415 次
  • 性别: Icon_minigender_1
  • 来自: 杭州
最近访客 更多访客>>
文章分类
社区版块
存档分类
最新评论
文章列表
我前两天遇到一个棘手的问题,需求是要求在浏览器上面直接用GET方法调用我的service程序可以看到图片。如http://xxxx.xxx/read/image/4_pic.jpg 所以这就要求我在service的返回值上面要做成一个return InputStream..于是我上网搜索,看到http://www.romanlogic.com/rest-service-for-images-using-apache-cxf/ 这篇文章是讲如何返回image的,所以写下了如下的代码 @GET @Path("/{name}") @Produces("image/ ...
Global site tag (gtag.js) - Google Analytics