Skip to content

Commit

Permalink
updated
Browse files Browse the repository at this point in the history
  • Loading branch information
deepaktiwari committed Jan 22, 2025
1 parent 666ff85 commit 1b0e9fd
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/main/java/com/ct/framework/common/CommonUtil.java
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,9 @@ public String getImageAsBase64(WebDriver driver, String screenshotName) throws E
File finalDestination = new File(destination);
FileUtils.copyFile(source, finalDestination);
byte[] imageBytes= IOUtils.toByteArray(new FileInputStream(destination));
System.out.println("Changes made to trigger workflow");
return Base64.getEncoder().encodeToString(imageBytes);

}

public JSONArray readFileAsJSONArray(String resourceNameWithPath){
Expand Down

0 comments on commit 1b0e9fd

Please sign in to comment.