如何将一些照片从.NET应用程序发送到REST服务. [英] How to send some photos from .NET application to REST service.
本文介绍了如何将一些照片从.NET应用程序发送到REST服务.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
你好,
我必须制定一种方法,将一些图像文件从客户端的硬盘驱动器上传到服务器的硬盘.我尝试使用流和字节数组的不同方式,但是我获得的最好成绩是服务器端的空参数.有人可以举一个例子,说明如何正确地将图像发送到REST服务(可以使用多部分格式)吗?
Hello,
I have to make a method which will upload some image file from client''s hard drive to server''s one. I was trying different ways with streams and byte arrays, but the best I achieved was empty argument on server''s side. Can somebody post an example, how to properly send images to REST service (could be using multipart-format)?
推荐答案
什么是REST服务?您为什么不能使用Web服务?
What is a REST service ? Why can''t you use a webservice ?
这真的很重要吗,Christian?我只需要提供REST服务,仅此而已.
Is it really important, Christian? I just have to make REST service, nothing more, nothing less.
这篇关于如何将一些照片从.NET应用程序发送到REST服务.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文