Click here to Skip to main content
15,914,924 members

Comments by Member 12840127 (Top 3 by date)

Member 12840127 1-Jul-17 10:28am View    
It contains column named Photo and data appears as System.Byte[] in the Photo column.
I had converted image to byte and send to database and while retrieving data in datagrid
it appears as System.Byte[] now I want to load it in picture box So I used following code:
byte[] imgbyte = (byte[])dgvProduct.CurrentRow.Cells["Photo"].Value;
Member 12840127 27-Mar-17 11:40am View    
See this:
var Emp;
Emp = $http({
method: 'Post',
url: '/Employee/BankAccount/Index',
data: openact
}
).then(function (response) {
return response.data;
});
return Emp;
Member 12840127 27-Mar-17 11:23am View    
When I select any of option from dropdown and save, in database null gets saved.