How to display image from sql server in ms access

2019-09-14 03:50发布

I have an MS sql server database. There is a table with one of the column of the "image" type. Now, the customer wants to read the data from an MS access. He wants to display the images in a form. I have never used access and have no idea of how to do simple things there. Any help will be greatly appreciate.

Thanks, Ramjee

3条回答
在下西门庆
2楼-- · 2019-09-14 04:21

I think you can do this by using streams. Stream the image from the field to an unbound image control. We use the same process for opening documents and other binary data stored in an SQL Server database.


On the other hand, Access had an Image control that can be linked to a field in a table. That should be a lot easier to user!

查看更多
神经病院院长
3楼-- · 2019-09-14 04:27

Rather than write out the stored images to files in order to display them, it may be possible to use ASP to display the image and a web browser control on the Access form to display the page. I have not tried this.

How To Display Images Stored in a BLOB Field: http://support.microsoft.com/kb/173308

查看更多
爷、活的狠高调
4楼-- · 2019-09-14 04:29

You can put regular Image control on form and state MyPic.PictureData=PicField in Current event.

Or you can use AccessImagine, which is great for pictures in MS Access and requires no scripting. You can download it here - http://access.bukrek.net/download

查看更多
登录 后发表回答