Quantcast
Channel: Active questions tagged html - Stack Overflow
Viewing all articles
Browse latest Browse all 67527

HTML : Unable to view the base64 image in html report

$
0
0

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));

enter image description here


Viewing all articles
Browse latest Browse all 67527

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>