当前位置:网站首页>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 .
边栏推荐
- 2022/7/6 exam summary
- Summarize the common high-frequency interview questions of the software testing post
- BGP --- 边界网关协议
- Burp Suite-第九章 如何使用Burp Repeater
- Zroi easy sum (generating function, block, DP, combination, polynomial)
- Libevent custom event (asynchronous)
- No valid host was found when setting up openstack to create an instance There are not enough hosts available. code:500
- Burp Suite - Chapter 2 burp suite proxy and browser settings
- 全网最全:Mysql六种约束详解
- C# 获取选择文件信息
猜你喜欢
随机推荐
Burp Suite-第四章 SSL和Proxy高级选项
One click deployment lamp and LNMP architecture
一文掌握mysql数据库审计特点、实现方案及审计插件部署教程
C# 获取选择文件信息
[June 29, 2022] examination summary
Common methods of string: construction method, other methods
Ten thousand words long article | deeply understand the architecture principle of openfeign
2022/7/6 exam summary
Matlab-二/三维图上绘制黑点
Unity metaverse (II), mixamo & animator hybrid tree and animation fusion
美女裸聊一时爽,裸聊结束火葬场!
Libevent custom event (asynchronous)
Use js to count the number of occurrences of each string in the string array, and format it into an object array.
Spotty music data client_ ID account
File parsing (JSON parsing)
有点牛逼,一个月13万+
NFS service and Samba service deployment
2022/7/7 exam summary
An empirical study on urban unemployment in Guangxi (Macroeconomics)
Burp Suite - Chapter 1 burp suite installation and environment configuration



![[uniapp] encapsulation of multiple payment methods](/img/d8/a367c26b51d9dbaf53bf4fe2a13917.png)



