如果数据库中不存在图像,如何设置默认图像. [英] how to set default image ,if image is not exist in databse .

查看:93
本文介绍了如果数据库中不存在图像,如何设置默认图像.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用列表视图显示产品.如果图像不存在,则在数据库图像中显示默认图像.作为blob数据类型.

i am using list view to display the products.if image is not exist then display default image.in database image as blob data type.

推荐答案

您的问题中没有足够的信息.

您如何填充从数据库返回的数据?您使用什么结构来保存数据?数据表?定制收藏?您如何将这些数据获取到ListView中?您是否要分别添加每个项目?您是否将ListView绑定到数据?
There isn''t enough information in your question.

How are you populating the data coming back from the database? What structure are you using to hold the data? DataTable? Custom collection? How are you getting this data into the ListView? Are you adding each item seperately? Are you Binding the ListView to data?


这篇关于如果数据库中不存在图像,如何设置默认图像.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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