Grid with images problem exporting and opening

I have a grid view in .Net. Some columns contains image(.png) icons and the image(.png) location is in “/Content/images/icons/”. Grid view looks perfect but when I try to export to .pdf or .xlsx, the file downloads with 0 byte file size and cannot open the file.