@@ -38,6 +38,9 @@ class ImageProcessingService {
|
||||
*/
|
||||
boolean processImage(int imageId, String localPath, long lotId) {
|
||||
try {
|
||||
// Normalize path separators (convert Windows backslashes to forward slashes)
|
||||
localPath = localPath.replace('\\', '/');
|
||||
|
||||
// Check if file exists before processing
|
||||
var file = new java.io.File(localPath);
|
||||
if (!file.exists() || !file.canRead()) {
|
||||
|
||||
Reference in New Issue
Block a user