当前位置:网站首页>C# 获取选择文件信息
C# 获取选择文件信息
2022-07-26 08:05:00 【51CTO】
小注:
1、 C# Winform OpenFileDialog 控件
2、C# FileStream.Read Method
假如选择的文件1111.png,是跟踪内容显示:
ExtensionName = Path.GetExtension(vsOpenFileDialog.FileName)

FileName = Path.GetFileName(vsOpenFileDialog.FileName)

FileInfo vsFileInfo = new FileInfo(vsOpenFileDialog.FileName)

Content = new byte[fileStream.Length]

4、假如相对返回的byte[] Content加密的话,可以使用:Convert.ToBase64String(Content),该函数的返回值,依然是:byte[]类型的。
边栏推荐
- [June 29, 2022] examination summary
- The idea of stack simulating queue
- [uniapp] encapsulation of multiple payment methods
- OSPF总结
- Establishment and use of openstack cloud platform
- Burp Suite-第八章 如何使用Burp Intruder
- 2W word detailed data Lake: concept, characteristics, architecture and cases
- Unity Metaverse(二)、Mixamo & Animator 混合树与动画融合
- A clear summary and configuration example of GPON has been highlighted
- Vscode cannot start the problem solving idea
猜你喜欢

Jmeter性能测试之使用存储响应内容到文件监听器

If the thread crashes, why doesn't it cause the JVM to crash? What about the main thread?

Audio and video learning (10) -- PS streaming

An empirical study on urban unemployment in Guangxi (Macroeconomics)

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

How to determine the authenticity of the website you visit -- certificate system

Burp Suite-第八章 如何使用Burp Intruder

Strtus2历史漏洞复现

Use js to count the number of occurrences of each string in the string array, and format it into an object array.

JMeter性能测试之使用CSV文件参数化
随机推荐
动态性能视图概述
Summary of distributed related interview questions
Traversal mode of list, set, map, queue, deque, stack
utils 连接池
shardingjdbc踩坑记录
Libevent custom event (asynchronous)
Jmeter性能测试之将每次接口请求的结果保存到文件中
给项目日志加上traceid
The difference between ArrayList and LinkedList
2021-11-09
Rack server expansion memory
Burp Suite-第三章 如何使用Burp Suite代理
JMeter performance test saves the results of each interface request to a file
数组的介绍--Array
Common methods of string: construction method, other methods
How to close the high-level port
Idea settings set shortcut keys to convert English letters to case in strings
Burp Suite-第二章 Burp Suite代理和浏览器设置
If the thread crashes, why doesn't it cause the JVM to crash? What about the main thread?
How to determine the authenticity of the website you visit -- certificate system