• 大小: 0.04M
    文件类型: .7z
    金币: 1
    下载: 0 次
    发布日期: 2020-12-26
  • 语言: C#
  • 标签: 图片  

资源简介

C#示例,将图片保存到数据库当中。

资源截图

代码片段和文件信息

using System;
using System.Collections.Generic;
using System.Text;
using System.xml;
using System.Collections;
using System.Windows.Forms;
using System.Data;
using System.Data.OleDb;
using System.Data.SqlClient;
using System.Reflection;

namespace SavePic
{
    class baseDatas
    {
        xmlDocument xmld = new xmlDocument();
        private static string strFilePath = Application.StartupPath + “\\databaseset.xml“;

        public baseDatas(string strPath)
        {
            strFilePath = strPath;
            this.Init();
        }
        public baseDatas()
        {
            this.Init();
        }
        #region 初始化类
        /// 
        /// 初始化类
        /// 

        private void Init()
        {
            xmld.Load(strFilePa

评论

共有 条评论