使用数据库图像的Jquery图像库

问题描述:

你好,
我正在使用以varbinary类型存储在数据库中的图像开发图像库..

请提出您的建议.

谢谢

hello,
i am developing image gallery using images which are stored in database in varbinary type..

pls give your suggestions.

Thank you

我的建议是:

进行一项服务,该服务会将数组中的图像对象返回给javascript函数.该服务将从数据库中读取二进制数据并将其转换为图像,并将其发送给javascript调用程序.

然后,您可以使用javascript调用该服务,该服务将提供图像对象,然后可以创建图库.
My suggestion is:

Make a service which will return the image objects in the array to the javascript function. That service will read the binary data from database and convert it into images and send it to javascript caller.

From the javascript you can then call that service which will give the image objects and you can make your gallery then.