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