Skip to content

Commit

Permalink
More debugging added
Browse files Browse the repository at this point in the history
  • Loading branch information
arybakov-cgi committed Nov 28, 2023
1 parent 6b169d0 commit a597378
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public class GradBusinessService {
private static final String APPLICATION_JSON = "application/json";
private static final String APPLICATION_PDF = "application/pdf";
private static final String ACCEPT = "*/*";
private static final String TMP = File.pathSeparator + "tmp";
private static final String TMP = File.separator + "tmp";
/**
* The Web client.
*/
Expand Down Expand Up @@ -364,7 +364,7 @@ private ResponseEntity<byte[]> handleBinaryResponse(byte[] resultBinary, String

private void saveBinaryResponseToFile(byte[] resultBinary, String reportFile) throws IOException {
if(resultBinary.length > 0) {
String pathToFile = TMP + File.pathSeparator + reportFile;
String pathToFile = TMP + File.separator + reportFile;
logger.debug("Save generated PDF {} on the file system", reportFile);
File fileToSave = new File(pathToFile);
if(fileToSave.exists()) {
Expand Down

0 comments on commit a597378

Please sign in to comment.