使用文件上传控件加载图像 [英] loading images with File upload control

查看:116
本文介绍了使用文件上传控件加载图像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,请帮我提供一个示例代码,我可以使用该示例代码使用文件上载控件将图像控件填充到图像控件中,同时将图像存储在sql数据库中.
我将感谢您提供的任何帮助

谢谢
您忠实的
Martin

hi there, please help me with a sample code i can use to populate my image controls with images using the File upload control and at the same time have the image stored in my sql database.
i will be grateful with any help rendered to me

Thanks
Your faithfully
Martin

推荐答案

您尝试了什么?你做了什么研究?文件上载控件将文件传送到您的服务器.然后,您可以将其存储在数据库中,并且需要一个HTTP处理程序或仅一个获取图像ID并返回图像字节的页面,以便能够形成图像标签的URL,以便从数据库中检索图像. .
What have you tried ? What research have you done ? A file upload control delivers the file to your server. You can then store it in your DB, and you need a HTTP handler or just a page that takes the image ID and returns the image bytes, in order to be able to form a URL for an image tag to retrieve the image from your DB.


这篇关于使用文件上传控件加载图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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