使用SQL Server在Silverlight中保存图像 [英] save image in silverlight using sql server

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

问题描述

如何使用SQL Server在Silverlight中保存图像

How to save image in silverlight using sql server

推荐答案

如何使用SQL Server在Silverlight中保存图像
How to save image in silverlight using sql server


严格讲,通常您不将图像保存在Silverlight中(除非您使用的是客户端数据库,但这违背了使用数据库存储文件的整个目的).这样做的方法是在您在Silverlight应用程序中引用的网站端编写WCF RIA服务.此服务将以字节数组形式接收文件,并使用该数组将数据写入数据库.
Strictly speaking, you normally don''t save the image in Silverlight (unless you are using a client side database, but this defeats the whole purpose of having a database to store files). The way to do this is to have a WCF RIA service written at the website end which you reference in the Silverlight application. This service will receive the file as a byte array, and use that array to write the data to the database.


<pre lang="java">

<big><big><big></big></big></big>


























这篇关于使用SQL Server在Silverlight中保存图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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