• 大小: 43.76M
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2020-12-14
  • 语言: C#
  • 标签: Office  pdf  Image  

资源简介

资源截图

代码片段和文件信息

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;

namespace DevTest
{
    /// 
    /// 工具类:文件与二进制流间的转换
    /// 

    public class FileBinaryConvertHelper
    {
        /// 
        /// 将文件转换为byte数组
        /// 

        /// 文件地址
        /// 转换后的byte数组
        public static byte[] File2Bytes(string path)
        {
            if (!System.IO.File.Exists(path))
            {
                return new byte[0];
            }

            FileInfo fi = new FileInfo(path);
            byte[] buff = new byte[fi.Length];

            FileStream fs = fi.OpenRead();
            fs.Read(buff 0 Convert.ToInt32(fs.Length));
            f

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件        863  2019-04-22 08:38  DevTest.sln

     文件        346  2019-04-23 11:14  DevTest\App.config

     文件   30754304  2019-04-23 11:06  DevTest\bin\Debug\Aspose.Slides.dll

     文件      42496  2019-04-21 22:07  DevTest\bin\Debug\AxInterop.SHDocVw.dll

     文件      18432  2019-04-21 21:10  DevTest\bin\Debug\AxInterop.ShockwaveFlashobjects.dll

     文件     158712  2019-04-22 08:01  DevTest\bin\Debug\de\DevExpress.Data.v13.1.resources.dll

     文件      19448  2019-04-22 08:01  DevTest\bin\Debug\de\DevExpress.DataAccess.v13.1.UI.resources.dll

     文件      12280  2019-04-22 08:01  DevTest\bin\Debug\de\DevExpress.Office.v13.1.Core.resources.dll

     文件      11768  2019-04-22 08:01  DevTest\bin\Debug\de\DevExpress.Printing.v13.1.Core.resources.dll

     文件     176632  2019-04-22 08:02  DevTest\bin\Debug\de\DevExpress.RichEdit.v13.1.Core.resources.dll

     文件      65016  2019-04-22 08:02  DevTest\bin\Debug\de\DevExpress.Spreadsheet.v13.1.Core.resources.dll

     文件      25592  2019-04-22 08:01  DevTest\bin\Debug\de\DevExpress.Utils.v13.1.resources.dll

     文件      53240  2019-04-22 08:01  DevTest\bin\Debug\de\DevExpress.Utils.v13.1.UI.resources.dll

     文件      28664  2019-04-22 08:01  DevTest\bin\Debug\de\DevExpress.XtraBars.v13.1.resources.dll

     文件     196088  2019-04-22 08:01  DevTest\bin\Debug\de\DevExpress.XtraCharts.v13.1.resources.dll

     文件     143864  2019-04-22 08:01  DevTest\bin\Debug\de\DevExpress.XtraCharts.v13.1.Wizard.resources.dll

     文件      45560  2019-04-22 08:02  DevTest\bin\Debug\de\DevExpress.XtraEditors.v13.1.resources.dll

     文件      11256  2019-04-22 08:02  DevTest\bin\Debug\de\DevExpress.XtraGauges.v13.1.Core.resources.dll

     文件      15352  2019-04-22 08:02  DevTest\bin\Debug\de\DevExpress.XtraGauges.v13.1.Presets.resources.dll

     文件      36856  2019-04-22 08:02  DevTest\bin\Debug\de\DevExpress.XtraGrid.v13.1.resources.dll

     文件      16888  2019-04-22 08:02  DevTest\bin\Debug\de\DevExpress.XtraLayout.v13.1.resources.dll

     文件      11256  2019-04-22 08:02  DevTest\bin\Debug\de\DevExpress.XtraNavBar.v13.1.resources.dll

     文件      11256  2019-04-22 08:02  DevTest\bin\Debug\de\DevExpress.XtraPivotGrid.v13.1.resources.dll

     文件      20472  2019-04-22 08:02  DevTest\bin\Debug\de\DevExpress.XtraPrinting.v13.1.resources.dll

     文件      89592  2019-04-22 08:02  DevTest\bin\Debug\de\DevExpress.XtraReports.v13.1.Extensions.resources.dll

     文件     144888  2019-04-22 08:02  DevTest\bin\Debug\de\DevExpress.XtraReports.v13.1.resources.dll

     文件      14840  2019-04-22 08:02  DevTest\bin\Debug\de\DevExpress.XtraReports.v13.1.Web.resources.dll

     文件      17912  2019-04-22 08:02  DevTest\bin\Debug\de\DevExpress.XtraRichEdit.v13.1.Extensions.resources.dll

     文件      92152  2019-04-22 08:02  DevTest\bin\Debug\de\DevExpress.XtraRichEdit.v13.1.resources.dll

     文件      55800  2019-04-22 08:02  DevTest\bin\Debug\de\DevExpress.XtraScheduler.v13.1.Core.resources.dll

............此处省略325个文件信息

评论

共有 条评论