@@ -149,38 +149,24 @@ public class ImageFoundRequestHandler implements RequestHandler {
|
||||
YandexSearchResponse.ImageResult image = allUniqueImages.getFirst();
|
||||
String url = image.getUrl();
|
||||
Path tempFile = null;
|
||||
log.info("!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!");
|
||||
log.info("!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!");
|
||||
log.info("!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!");
|
||||
|
||||
|
||||
log.info(String.valueOf(image));
|
||||
log.info(String.valueOf(image));
|
||||
log.info(String.valueOf(image));
|
||||
log.info(String.valueOf(image));
|
||||
log.info("!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!");
|
||||
log.info("!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!");
|
||||
log.info("!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!");
|
||||
log.info("!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!");
|
||||
|
||||
log.info(image.getPageTitle());
|
||||
log.info(image.getPageUrl());
|
||||
log.info(image.getHost());
|
||||
log.info("!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!");
|
||||
log.info("!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!");
|
||||
log.info(url);
|
||||
log.info(url);
|
||||
log.info(url);
|
||||
log.info(url);
|
||||
log.info(url);
|
||||
log.info(url);
|
||||
log.info("!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!");
|
||||
log.info("!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!");
|
||||
log.info("!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!");
|
||||
log.info("!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!");
|
||||
log.info("!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!");
|
||||
try {
|
||||
tempFile = fileUploadService.downloadImageFromUrl(url);
|
||||
log.info("tempFile: " + tempFile.toAbsolutePath());
|
||||
log.info("tempFile: " + tempFile.toAbsolutePath());
|
||||
log.info("tempFile: " + tempFile.toAbsolutePath());
|
||||
log.info("tempFile: " + tempFile.toAbsolutePath());
|
||||
log.info("tempFile: " + tempFile.toAbsolutePath());
|
||||
log.info("tempFile: " + tempFile.toAbsolutePath());
|
||||
log.info("tempFile: " + tempFile.toAbsolutePath());
|
||||
log.info("tempFile: " + tempFile.toAbsolutePath());
|
||||
log.info("tempFile: " + tempFile.toAbsolutePath());
|
||||
log.info("tempFile: " + tempFile.toAbsolutePath());
|
||||
log.info("tempFile: " + tempFile.toAbsolutePath());
|
||||
log.info("tempFile: " + tempFile.toAbsolutePath());
|
||||
log.info("tempFile: " + tempFile.toAbsolutePath());
|
||||
log.info("tempFile: " + tempFile.toAbsolutePath());
|
||||
log.info("tempFile: " + tempFile.toAbsolutePath());
|
||||
log.info("tempFile: " + tempFile.toAbsolutePath());
|
||||
|
||||
String filePath = tempFile.toAbsolutePath().toString();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user