如何从asp.net中的ftp服务器文件夹中读取图像大小? [英] how to read image size from ftp server folder in asp.net?
本文介绍了如何从asp.net中的ftp服务器文件夹中读取图像大小?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我的ftp服务器中有一个图像文件夹有650个图像.jpg
我想读取这个文件夹所以包含图像文件名和大小
我读了一个文件名一个但不能读大小
我该怎么办?
谢谢
解决方案
您应该使用 FileInfo.Length Property [ ^ ]获取文件大小以字节为单位
查看示例此处 [ ^ ]。
< DD> - 阿米特
I have a image folder has 650 image .jpg in my ftp server
I want to read this folder so include image filename and size
I read filename one by one but can not read size
how can I do ?
thanks
解决方案
You should use FileInfo.Length Property[^] to get the file size in byte.
See an example here[^].
--Amit
这篇关于如何从asp.net中的ftp服务器文件夹中读取图像大小?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文