如何将bmp图像保存到数据库 [英] how to save bmp image to database

查看:346
本文介绍了如何将bmp图像保存到数据库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想将图像保存在数据库中.
其实我有SDK,指纹读取器和教程.
我想使用c ++ dll在c#中开发应用程序.
以下是项目的自述文件

I want to save image in database.
Actually I have SDK, finger print reader and tutorial.
I want to develop application in c# using c++dll.
Below is the readme file of project

This setup program installes the .Net components as well
as help files and tutorials onto you machine.

Prerequisites

* .Net framework 2.0
* DermalogZF1 SDK
* Dermalog ZF1 Scanner connected
* Windows XP (SP2), 2000 (SP4), Vista 32(SP1)



Components:

* Dermalog.Imaging.Capturing.dll is the interface to ZF1 Scanner.
* Dermalog.AFIS.QualityCheck.dll calculates the Fingerprint quality.
* Dermalog.AFIS.Drawing.Compression.dll is responsible for compression
	into jpg2000 and WSQ.

You can easily access this components form your Visual Studio IDE.
In your project just select add references on .Net Tab you will see
Dermalog component, which can be added into you project.

Help files

You can access the help files from start menu ->Dermalog->.Net->ZF1 Standard SDK.

Tutorials

Dermalog provids you with various Tutorials with source code in C#. You find them
"%programm files\Dermalog\.Net\Tutorials%".

推荐答案


您需要将图像转换为字节数组并将其存储.这样做的典型方法是将其保存到流中.
Hi,
You need to convert the image to a byte array and store that. Typical way to do that is to save it to a stream.


此处提供了使用c#向SQLServer数据库存储图像和从中检索图像的详细示例,
使用Streded Procedures和C#.net从SQL Server存储和检索图像 [ ^ ]
Detailed sample of storing and retriving image to and from SQLServer database using c# is available here
Storing and Retrieving Images from SQL Server Using Strored Procedures and C#.net[^]


您需要阅读帮助文件并阅读教程,并找到从扫描仪获取位图的方法.有位图的人可以将其保存在数据库中.检查是否有很多资源:

在CodeProject上搜索 [ ^ ]

You need to read help files and go through the tutorials and find a way to get bitmap from scanner. ones you have the bitmap you can save it on the database. check there are many resources:

Search on CodeProject[^]

Google Search[^]


这篇关于如何将bmp图像保存到数据库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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