使用WCF服务上传图片 [英] Image Upload using WCF services

查看:136
本文介绍了使用WCF服务上传图片的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

帮助某人!我必须调用WCF服务来转换图像.由于图像是一个流(可能很大),因此我想拥有一种方法,在该方法中,我可以向一个方法发送一个流以及几个参数(图像转换信息).如何定义操作合同的方法签名?请注意,我正在进行jason调用,并使用Http post方法发送图像.

Help Somebody! I have to call a WCF service to transform an image. Since an image is a stream (can be large) I want to have a method in which I can send a stream as well as couple of parameters (image transformation information) to a method. How can I define the method signature for the operation contract? Note that I am making a jason call and use an Http post method to send the image.

推荐答案

原谅我的无知,但您无法编辑http头以包含您的论点?
forgive my ignorance, but could you not edit the http header to contain your arguments?


这篇关于使用WCF服务上传图片的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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