Click here to Skip to main content
15,917,320 members

Comments by kmon123 (Top 1 by date)

kmon123 24-Nov-14 13:08pm View    
For each ( datarow dr in dt.rows )
{
Picture [I] =new Category()
{
CategoryId = convert.toint32(dr["CategoryId"]), Picture = (byte[]) dr ["picture"]
};
I = I +1;

Pls help me I get error here, trying to convert images to byte and store in sql