In selenium I am auto mailing the extent reports through javamail API. I am using base 64 encoder to generate screenshots and attach to the report. The issue is the screenshot is visible as thumbnail but when i zoom it, it displays the encoded image.enter image description here
String scnShot = ((TakesScreenshot) driver).getScreenshotAs(OutputType.BASE64);
String s="data:image/png;base64,"+scnShot;
test.log(LogStatus.INFO,test.addScreenCapture(s));