通过休息服务不使用Stream发送图像 [英] send an image without using Stream through rest service

查看:73
本文介绍了通过休息服务不使用Stream发送图像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

hi


i试图通过休息wcf服务上传图像,我成功了。在正常的wcf服务中我们也正在使用流权。那么有什么优势呢?我们在这个场景中使用wcf rest而不是wcf服务.rest说我们可以通过http.so转移任何东西。任何人都可以建议通过休息服务上传任何其他方法

hi
i tried to upload a image via stream through rest wcf service and i succeed in it.in normal wcf service also we are using stream right.so what is the advantage while we are using wcf rest rather than wcf service in this scenario.rest is saying we can transfer anything as it is through http.so can anyone suggest any other method for uploading through rest service

推荐答案

回答有关WCF服务上WCF REST优势的问题。 WCF服务是Microsoft的SOAP实现。 SOAP是一种有状态的,基于会话的,基于消息的Web服务。如果您的服务被设计为一组复杂的操作,那就好了。



REST是一种无状态,无会话,基于资源的Web服务。如果您的服务旨在访问数据并对其执行简单的CRUD操作,那就太好了。 SOAP和REST是互斥的。服务不能两者兼而有之。 REST是一种架构风格,而不是一种技术。
To answer your question on the advantage of WCF REST on WCF Service. WCF Service is Microsoft''s implementation of SOAP. SOAP is a kind of stateful, session-based, message-based web service. Itz good if your service is designed as a set of complex actions.

REST is a stateless, sessionless, resource-based web service. It''s good if your service is designed to access data and perform simple CRUD operations on it. SOAP and REST are mutually exclusive. A service cannot be both. REST is an architecture style, not a technology.


这篇关于通过休息服务不使用Stream发送图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆