I have been trying since yesterday no where I am able to find a proper post how to upload file as blob to table.
Below is my table :
create table upload_file
(
fileblob blob,
filename varchar2(250),
mimetype varchar2(250),
createDate date
);
I have created a page name as Testing
and Added below items
P1_CHOOSE_FILE [ file browse ]
P1_MIMETYPE [ Hidden ]
FILE_NAME [ Hidden ]
CREATED [ Hidden ]
On P1_CHOOSE_FILE
, I set a property called : Blob column specified in Item source attribute
and value required as ON
Then created one Button with Dynamic action
Now my biggest challenge is How to insert my choose file to my upload_file
table using PL/SQL
code
I tried report with form
but it does not work for me in APEX 20.x
due to restrictions setting done to it. So want to achieve using PL/SQL
code.
Please demonstrate with image and code and how to achieve it
Not sure if it will help you, but here's how I did on my application :
My table :
Now, here's what I did for my form :
Here are the attributes of my File Browser Item :
I don't have any custom code to insert the document on my tables, I hope this could help you anyway.