using System.Data;
using System.Data.OleDb;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System;
using System.Collections.Generic;
using System.IO;
namespace winform_access
{
public partial class Form1 : Form
{
OleDbConnection conn; //Jet OLEDB:Database Password=
OleDbCommand cmd;
OleDbDataReader dr;
DataTable dt;
string str = null;
public Form1()
{
InitializeComponent();
//数据库的地址
conn = new OleDbConnection("Provider=Microsoft.ACE.OLEDB.12.0;Data Source=D:\\DataSQL\\DB.mdb"); //Jet OLEDB:Database Password=
//conn.Open();
//SaveImage("C:\\Users\\123\\Desktop\\timg.jpg",conn); // 两个 \\ 代表一个 / 字符串 (以下两种也都可以用)
//SaveImage(@"C:\Users\123\Desktop\timg.jpg", conn);
//SaveImage("C:/Users/123/Desktop/timg.jpg", conn);
}
private void button1_Click(object sender, EventArgs e)
{
conn.Open();
cmd = conn.CreateCommand();
cmd.CommandText &#