admin管理员组文章数量:1300053
I'm trying to write a PL/SQL program to COPY a JPG files from one directory to another. The file names themselves are the id's in a table that I fetch and make a variable photo_file_name := lower(id_wk || '.jpg');
The images exist in the mapped network Directory_object PHOTO_DIR (verified) mapped to vc_photo_dir:
I have a test image (photo_file_name) let's say called 1000001.jpg in the PHOTO_DIR I can see it..it's there
If I use utl_file.fgetattr(vc_photo_dir, photo_file_name, v_exists, v_length, v_blocksize);
and check v_exists it is always FALSE
if I dump vc_photo_dir and photo_file_name
any clue why the script can't find the file?
I'm trying to write a PL/SQL program to COPY a JPG files from one directory to another. The file names themselves are the id's in a table that I fetch and make a variable photo_file_name := lower(id_wk || '.jpg');
The images exist in the mapped network Directory_object PHOTO_DIR (verified) mapped to vc_photo_dir:
I have a test image (photo_file_name) let's say called 1000001.jpg in the PHOTO_DIR I can see it..it's there
If I use utl_file.fgetattr(vc_photo_dir, photo_file_name, v_exists, v_length, v_blocksize);
and check v_exists it is always FALSE
if I dump vc_photo_dir and photo_file_name
any clue why the script can't find the file?
Share Improve this question edited Feb 17 at 13:36 vswindell asked Feb 11 at 20:31 vswindellvswindell 411 silver badge6 bronze badges1 Answer
Reset to default 0the problem was that I didn't have permission to READ the photo directory from Atomic UC4 (which was running the script)
本文标签: fileTrying to Move images in PLSQLStack Overflow
版权声明:本文标题:file - Trying to Move images in PLSQL - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1741636415a2389665.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论