从 REST Web 服务返回图像

发布于 2024-12-10 15:00:20 字数 88 浏览 0 评论 0原文

我需要从我的休息网络服务返回图像。我怎样才能实现这个目标?此外,最好的方法是什么?我应该发送图像链接还是直接从网络服务返回图像?返回给客户的图像是保密的。请帮忙。

I need to return an image from my rest web service. How can I achieve this? Furthermore, What would be the best way to do that? Should I send a link to my image or return the image directly from my web service? The image to be returned to the client is confidential. Plz help.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

七度光 2024-12-17 15:00:20

如果它是 SOAP,您可以使用 MTOM 添加图像作为响应。正如您提到的,您正在使用 REST,以下问题可能会对您有所帮助:
是否可以使用 MTOM响应 CXF RESTful Web 服务

If it is a SOAP you can use MTOM to add your image in response. As you mentioned that you are using REST, following question may help you:
Is it possible to use MTOM in reponse of CXF RESTful Web Service

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文