private void button1_Click(object sender, EventArgs e) { DialogResult dr = openFileDialog1.ShowDialog(); if (dr == DialogResult.OK) { string filename = openFileDialog1.FileName; int len= openFileDialog1.FileName.Length; } }
File.ReadAllBytes()
byte[] b = File.ReadAllBytes(filename);
Bitmap bmp = new Bitmap(image); FileStream fs = new FileStream(image, FileMode.Open, FileAccess.Read); byte[] bimage = new byte[fs.Length];
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)