Hrvoje Voda napisa³(a):
How to read a blob from database into an array byte ?
You can first read it into DataSet (ds) and then do something like this:
foreach(DataRow dr in ds.Tables[0].Rows)
{
//assuming blob is in the first field
byte[] blobArray = (byte[])dr.ItemArray[0];
}
best regards
Mateusz [PEYN] Adamus