如何从asp.net文件夹中获取图像,将图像路径存储在sqlserver数据库中 [英] How do get image from asp.net folder that image path will be stored in sqlserver database
本文介绍了如何从asp.net文件夹中获取图像,将图像路径存储在sqlserver数据库中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何从asp.net文件夹中获取图像路径将存储在sqlserver数据库中的图像
How do get image from asp.net folder that image path will be stored in sqlserver database
推荐答案
像这样:
HttpContext.Current.Server.MapPath(〜// rootfolder // subfolder1 // subfolder2 //)
- >来自图像文件夹的图像文件的路径。
Like this:
HttpContext.Current.Server.MapPath("~//rootfolder//subfolder1//subfolder2//")
--> path of your image file from image folder.
您可以使用谷歌..
如何将图像保存到数据库中的文件夹和图像路径中,并使用asp.net基于数据库中的图像路径显示gridview中文件夹中的图像 [ ^ ]
You can use google..
how to save images into folder and images path in database and display images from folder in gridview based on images path in database using asp.net [^]
这篇关于如何从asp.net文件夹中获取图像,将图像路径存储在sqlserver数据库中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文