In APEX 5.1 what I did was setting up an item of any type (P100_IMG_COL) with source of type "Database Column" and a BLOB column name (T1.IMG) and a page processing of type "Automatic Row Fetch" from table with PK column name (T1.ID) and PK item (P100_IMG_COL). Then I selected images in a Classic Report table with an SQL query, where I called APEX_UTIL.GET_BLOB_FILE_SRC(p_item_name => 'P100_IMG_COL', p_v1 => T1.ID);
I tried to do the same in APEX 19.1, and it still works, but "Automatic Row Fetch" is Legacy, so I would like to know a viable replacement and how to configure it.
I also have some questions to the argument description for GET_BLOB_FILE_SRC
. Here's a table of arguments from this documentation:
- What's "type FILE" for an item? I only found "File Browse..." in "Type".
- Why there's two PK arguments -
p_v1
and p_v2
? How it could be used? I tried to pass arguments to GET_BLOB_FILE_SRC
as GET_BLOB_FILE_SRC(p_v1 => t1.id, p_v2 => t1.img)
, but it compiles with "Wrong set of arguments" error. - What's the difference between
p_content_disposition
options?