Skip to Main Content

APEX

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

File Browse download not working. Shows blank page only.

AllenS.Nov 4 2019 — edited Nov 6 2019

Hi,

We are using Oracle APEX 18.2.

I've created a custom table which has a blob column. I've created a form which shows a File Browse item that Displays a Download Link. I have a Automatic Row Fetch on the page which fetches the record from the custom table by ID (PK).

I've setup the BLOB ITEM with the following properties:

pastedImage_0.pngpastedImage_1.png

For some reason, when I click the Download Link, it only shows a blank page.

However, when using a Classic/Interactive Report and adding a Download BLOB column, it seems to work without any issues. I noticed that there's a difference in the links generated though.

This is the link generated by the File Browse (Download link)

apex_util.get_blob_file?a=176459263&s=12619790786235&p=6&d=2064208774116061&i=1994401831347623&p_pk1=124&p_pk2=&p_ck=zYRwqD4s9_yfsPbirlA1CPSwMnQ5leOTuRM3kiSMBzvFg6hpIdFGTo0BhfkUs-cWQ0ikxkaQ_M_DNM8wctyZDQ&p_content_disposition=attachment

This is the link generated by the download column in the report region.

apex_util.get_blob?s=12619790786235&a=176459263&c=1994357211347622&p=5&k1=124&k2=&ck=rFlgpDgbhj0-6LDpEa0G0tCzGZyynKW8HyBVxVdeFuCyJW1w0ML3boC5xSsBKIj_SqHo7pd_NmfdSQRH1NVsNg&rt=IR

It seems that the apex_util.get_blob_file does not work as well as the apex_util.get_blob

Appreciate any help.

UPDATE 11/6/2019:

Changed the settings to the following since this is how I got it to work in apex.oracle.com.

pastedImage_0.png

Comments

JustinCave
In what tool are you viewing the data? Many tools don't support Unicode.

Justin
Distributed Database Consulting, Inc.
http://www.ddbcinc.com/askDDBC
56576
I am using SQL Plus
JustinCave
Can you use iSQL*Plus instead? That supports Unicode by default.

Justin
Distributed Database Consulting, Inc.
http://www.ddbcinc.com/askDDBC
56576
I can see the unicode in SQL Plus if the AMERICAN_AMERICA.UTF8 is not set. If I set, I cannot see, I don't understand why
50379
You probably have your NLS_LANG set to Chinese somewhere and Oracle is able to convert from UTF8 in the database to Chinese. SQLPLUS running on Windows OS can not be set to UTF8. It must be set based on the regional setting. As Justin said if you want to see your data in Unicode use iSQL*PLUS.
56576
I've not set nls_lang = chinese as I've used "set" to check the configuration.
JustinCave
Can you use iSQL*Plus instead?

Justin
Distributed Database Consulting, Inc.
http://www.ddbcinc.com/askDDBC
1 - 7

Post Details

Added on Nov 4 2019
9 comments
956 views