Can you please run in debug mode and show what error it is showing please from locals panel you can check the inner exception as well
Are you trying to write data to excel?
if yes then by default datatable will be converted to string it wont use image type
cheers