如何在SQL 2008中保存网络摄像头图像 [英] How to save Webcam image in SQL 2008

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

问题描述



我创建了一个Silverlight项目,该项目通过网络摄像头捕获图像并将其存储在本地硬盘中,但是我不想将其保存在本地硬盘中,我想将其存储在项目文件夹中,然后将路径存储在SQL中数据库.

请帮忙!

Hi,

I have created a silverlight project that captures the image through the webcam and stores it in my local hard, but I don''t want to save it on the local hard I want to store it in my project folder then store the path in SQL database.

Please Help!

推荐答案

请参阅:

使用以下方法插入和检索图像从ASP.Net应用程序到SQL的LINQ [使用Microsoft .NET从SQL Server存储和检索图像 [ ^ ]
See This:

Inserting and Retrieving Image using LINQ to SQL from ASP.Net Application[^]


Storing and Retrieving Images from SQL Server using Microsoft .NET[^]


,您可以将图像转换为base64字符串,然后将其存储.

http://www.dailycoding.com/Posts/convert_image_to_base64_string_and_base6464_string_to_image.aspx [
you can convert your image to base64 string and then store it.

http://www.dailycoding.com/Posts/convert_image_to_base64_string_and_base64_string_to_image.aspx[^]


这篇关于如何在SQL 2008中保存网络摄像头图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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