开发者

How to retrieve image names from a folder in Asp.net VB.

开发者 https://www.devze.com 2023-01-02 20:02 出处:网络
I am using teler开发者_开发知识库ik editor for uploading images which are getting stored in images folder.

I am using teler开发者_开发知识库ik editor for uploading images which are getting stored in images folder. Now I want to fetch all images and paths from that image folder and save only image name and path in to separate database table.

Can I do this in asp.net VB ?


        System.IO.Directory.GetFiles("path") 

method returns files for passed path parameter...

In asp.net application you can use Server.MapPath method which will return physical path for virtual directory.

0

精彩评论

暂无评论...
验证码 换一张
取 消