在数据库usind Web服务中保存和检索一些在线图像 [英] save and retrieve some online image in database usind web service

查看:90
本文介绍了在数据库usind Web服务中保存和检索一些在线图像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在wp7 c#中的项目中工作,我需要在数据库usind Web服务中保存和检索一些在线图像
我该怎么做?
谢谢

I''m work in project in wp7 c# and i need to save and retrieve some online image in database usind web service
how i can do that ?
Thank you

推荐答案

首先使用SaveImage和RetrieveImage之类的操作创建Web服务.
然后将Web服务代理类添加到您的wp7应用程序中,并使用它与Web服务进行通信.
First create web service with operations like SaveImage and RetrieveImage.
Then add web service proxy class to your wp7 app and use it to communicate with web service.


使用Visual Studio,使用Webservices真的很容易.
创建一个新的Web服务项目.
在这里,您将创建两个方法:voi UploadImage(byte []数据,字符串filePath)和byte [] DownloadImage(string filePath)

创建您的客户.
要使用您的网络服务,请右键单击引用->添加服务参考
现在,您可以添加服务并为其命名.

现在,您可以初始化一个webservice-object.这样您就可以访问您的方法.

看看类似这本教程的教程.网络上有很多东西.
它真的很容易学习和使用.

希望我能帮忙.
问候,马库斯
Using Visual Studio, it is really easy to work with webservices.
Create a new webservice project.
Here you create two methods: voi UploadImage(byte[] data, string filePath) and byte[] DownloadImage(string filePath)

The create your Client.
To use your webservice right-click on references -> Add Service Reference
Now you can add your service and give it a name.

Now you can initialize a webservice-object. With this you can access your methods.

Have a look at a tutorial like this one. There are many out in the web.
It is really easy to learn and use.

Hope I could help.
Greets, Markus


这篇关于在数据库usind Web服务中保存和检索一些在线图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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