var bytes = System.IO.File.ReadAllBytes(name);//该片段来自于http://www.codesnippet.cn/detail/260920136149.html
来源: http://www.codesnippet.cn/detail/260920136149.html