Advertisement
| 03.10.2008 at 12:21PM PDT, ID: 23229602 |
|
[x]
Attachment Details
|
||
1: 2: 3: 4: 5: 6: 7: 8: |
OleDbConnection conn = new OleDbConnection("MyConnectionString");
conn.Open();
OleDbCommand query = new OleDbCommand("SELECT fldOLE FROM Table1", conn);
byte[] pictureData = (byte[])query.ExecuteScalar();
offsetValue = 78;
Stream stream = new MemoryStream();
stream.Write(pictureData, offsetValue, pictureData.Length - offsetValue);
Image picture = Image.FromStream(stream);
|