默认个人资料图片 [英] Default profile Image

查看:77
本文介绍了默认个人资料图片的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

任何人都可以说如何在任何社交网络站点中添加默认的个人资料图片......... plzzz

hey can anyone say that how to add default profile image in any social netwok site.........plzzz

推荐答案

如果我明白了正确地,您需要知道在站点中,如果用户未设置个人资料图片,默认图片是如何放置的(例如,带有白色背景和文本的图片:空白图片)

无论默认图片在其他站点中看起来如何,其背后的想法都非常简单.
1.创建空白图像
2.将其放在您的应用程序文件夹中,例如image/blank.jpg
3.在后面的代码中-检查用户是否保存了任何图像.如果否,则显示空白图像.
{当用户使用图片保存配置文件时,我们通常将图片保存在路径中,并在数据字段中保留引用.因此,在这种情况下,您需要检查用户表中的[路径数据+图像名称]以验证图像是否存在}

有我!

欢呼
If I get you correctly, you need to know, in a site, if no profile image is set by user, how the default image comes in place (like an image with white background and text: blnk photo)

Whatever the default image looks in different site, the idea behind it is very simple.
1. You create a blank image
2. Place it in your application folder say image/blank.jpg
3. In code behind - check if any image is saved by user. If no, show the blank image.
{When user saves the profile with image, we normally save the image in a path and keep a reference in data field. So, in this case, you need to check the [path data + image name] in user table to verify whether image exists or not}

Got me!

cheers


这篇关于默认个人资料图片的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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