在wp7.1中使用wcf数据服务保存图像 [英] Save image using wcf data service in wp7.1

查看:75
本文介绍了在wp7.1中使用wcf数据服务保存图像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个wcf数据服务和windows phone 7客户端。我需要在手机上接受客户签名并将其保存到数据库中。你能建议一个好的教程或建议吗?在Google上找不到任何相关内容。



谢谢。

解决方案

这里是抓取签名的好例子< br $> b $ b

Silverlight应用程序捕获和保存签名作为BMP [ ^ ]



并且关于WCF serverice将捕获的签名保存在数据库中,您可以制作以base64字符串作为参数的WCF服务从生成的签名图像的字节数组生成,您可以将该base64字符串直接存储到您的数据库,或者您可以将它转换为bytes数组并将其存储到数据库,它依赖于您需要存储图像的格式。

I have a wcf data service and windows phone 7 client. I need to take customer signature on phone and save it to database. Can you please suggest a good tutorial or advise? Cannot find anything relevant on Google.

Thanks.

解决方案

here is good example to capture signature

Silverlight application with Capturing and Saving Signature as BMP[^]

and regarding WCF serverice to save that captured signature in database, you can make WCF service that take base64 string as parameter which is generated from bytes array of generated signature image, you can store that base64 string directly to your database or you can convert it to bytes array and store it to database its depend on you in which format you need to store your image.


这篇关于在wp7.1中使用wcf数据服务保存图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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