当前位置:网站首页>C # get the information of the selected file
C # get the information of the selected file
2022-07-26 08:08:00 【51CTO】
Note :
1、 C# Winform OpenFileDialog Control
2、C# FileStream.Read Method
If the selected file 1111.png, Is the tracking content display :
ExtensionName = Path.GetExtension(vsOpenFileDialog.FileName)

FileName = Path.GetFileName(vsOpenFileDialog.FileName)

FileInfo vsFileInfo = new FileInfo(vsOpenFileDialog.FileName)

Content = new byte[fileStream.Length]

4、 If relative return byte[] Content If the encryption , have access to :Convert.ToBase64String(Content), The return value of this function , Is still :byte[] Type of .
边栏推荐
猜你喜欢

The bigger the project is, the bigger it is. This is how I split it

How to close the high-level port

2022-07-09 group 5 Gu Xiangquan's learning notes day02

AQS implementation principle

Master slave database deployment

File parsing (JSON parsing)

Ethernet switching security

小组成员参加2022中国多媒体大会

线程崩了,为什么不会导致 JVM 崩溃呢?如果是主线程呢?

Brief introduction to XML
随机推荐
2022/7/7 exam summary
The difference between abstract classes and interfaces
Now developers are beginning to do testing. Will there be no software testers in the future?
分布式相关面试题总结
BGP选路原则
Use of views
《门锁》引爆独居安全热议 全新海报画面令人窒息
Zroi easy sum (generating function, block, DP, combination, polynomial)
Matlab drawing black spots on two / three-dimensional drawings
FTP service
Master slave database deployment
Dev gridcontrol 捕获按键事件
Logical volume management (LVM)
Using ordered dictionary to copy pcap files
Ethernet switching security
The difference between ArrayList and LinkedList
NFS service and Samba service deployment
Unity Metaverse(二)、Mixamo & Animator 混合树与动画融合
给项目日志加上traceid
Burp Suite - Chapter 2 burp suite proxy and browser settings