Advertisement
psi_mmobile

Untitled

Aug 11th, 2020
249
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. function get_bfile (p_path IN VARCHAR2) return BFILE is
  2. v_file_name VARCHAR(1000);
  3. v_file_dir VARCHAR(1000);
  4. BEGIN
  5. v_file_name := get_filename(p_path);
  6.  
  7. -- no need to do this, only one directory for attached docs now
  8. --select directory_name into v_file_dir from all_directories
  9. --where directory_path = replace(p_path, v_file_name, '');
  10.  
  11. RETURN BFILENAME('ATTACHED_DOC_DIR', v_file_name);
  12.  
  13. END;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement