如何使用扫描仪扫描图片并将其保存在数据库中? [英] How to scan picture with a scanner and save it in the database?

查看:183
本文介绍了如何使用扫描仪扫描图片并将其保存在数据库中?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

plz我想知道如何将扫描仪与ASP.NET,C#结合使用,以及为此所需的代码是什么,以及如何将其存储到数据库中...我正在将其用于Web应用程序

谢谢

plz i want to know how to use scanner with ASP.NET,C# ,,and what is the code needed for that,and how to store it into the database...i am using this for web application

thank you

推荐答案

首先,您将需要一些代码来扫描图片,例如有关.NET TWAIN图像扫描仪的本文:
.NET TWAIN图像扫描仪 [在.NET中逐步创建ActiveX [ http://www.iol.ie/~locka/mozilla/plugin.htm [ ^ ]

" http://www.iol.ie/~locka/mozilla/control.htm [ ^ ]

要将图像发送到服务器并将其保存到数据库中,您只需将其编码为base64并以该格式发送和存储.

祝你好运!
First you''ll need some code for scanning pictures like this article about .NET TWAIN image scanner:
.NET TWAIN image scanner[^]

Then you''ll need to create an activex that IE users of your website must install so scanning is possible.
Create ActiveX in .NET Step by Step[^]

Plugin for hosting it to your firefox friends:
http://www.iol.ie/~locka/mozilla/plugin.htm[^]

"http://www.iol.ie/~locka/mozilla/control.htm[^]

For sending the image to the server and saving it into the database you could simply encode it to base64 and send and store it in that format.

Good luck!


这篇关于如何使用扫描仪扫描图片并将其保存在数据库中?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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