4.2 blob download format mask not working

I am using Apex 4.2
I have been working through the book Beginning Oracle Application Express 4. In chapter 6 the a blob is added to a report.
I have pasted the code example into the report definition (albeit with my own page numbers) :
SELECT
   "TICKET_DETAILS"."TICKET_DETAILS_ID" "TICKET_DETAILS_ID",
   "TICKET_DETAILS"."TICKET_ID" "TICKET_ID",
   "TICKET_DETAILS"."DETAILS" "DETAILS",
   "TICKET_DETAILS"."CREATED_ON" "CREATED_ON",
   "TICKET_DETAILS"."CREATED_BY" "CREATED_BY",
   dbms_lob.getlength("ATTACHMENT") ATTACHMENT
FROM
   "TICKET_DETAILS"
WHERE (("TICKET_DETAILS"."TICKET_ID" = :P5_TICKET_ID))
I go to the report attributes and click on the attachment column.  I enter the suggested format mask
DOWNLOAD:TICKET_DETAILS:ATTACHMENT:TICKET_DETAILS_ID::MIME_TYPE:FILE_NAME:::inline:Download.
When I press apply I keep getting :
1 error has occurred
"" not found. (Go to error)
I have confirmed that the query runs and that P5_TICKET_ID does exist on page 5.
Not understanding what this meant I tracked down this page
17.10 About BLOB Support in Forms and Reports
and the section "Providing a Download Link" seems to confirm that the above format mask is correct.
Any pointers would be greatly appreciated.

I've also done the exercises in the book and it worked for me.
Your format mask is correct. But before pressing submit you also have to enter the blob column attributes:
*Format Mask (Value Required):                   DOWNLOAD
*Blob Table (Value Required):                       TICKET_DETAILS
*Blob Column (Value Required):                   ATTACHMENT
*Primary Key Column 1 (Value Required):     TICKET_DETAILS_ID
Primary Key Column 2:
Mimetype Column:                                      MIME_TYPE
Filename Column:                                       FILE_NAME
Last Updated Column
Character Set Column:
Content Disposition:                                    ATTACHMENT
Download Text:                                           Download
Maybe you forgot that?

Similar Messages

  • Cannot find BLOB Download Format Mask link.

    Hello,
    I cannot find the "BLOB Download Format Mask" link and I am using a current version of APEX. can someone tell me where I might find it? I have followed the instructions and see no such link under Page Item, Source. Please help!
    Thanks
    LEH

    Scott,
    Yes, I have created a form on a table and that table contains a column of datatype BLOB. I followed the APEX advanced tutorial for uploading and downloading files. Now I want to be able to display the (Blob) images that I have uploaded.
    As I research the topic, I get the feeling that displaying the BLOB image can only be done in APEX 3.1 and up. Is this true? I have that version of APEX installed on my laptop and have successfully completed the "Defining and Viewing BLOB Data in Oracle Application Express 3.1" tutorial found here: http://www.oracle.com/technology/obe/apex/apex31nf/apex31blob.htm
    But I could not do it on the company server that runs APEX 3.0
    Even if I did get the approval to have the company APEX application upgraded to 3.1, there still is the issue of scaling the images so that they are not so large. I understand that there is a UTIL.APEX function "GET_BLOB_FILE_SRC" that would do this for me. I read the documentation at:
    http://download.oracle.com/docs/cd/E10513_01/doc/appdev.310/e10499/api.htm#CHDICGDA
    After reading it, I was still not clear as to how to use it correctly. Is there any documentation on how to implement this function in APEX?
    I did find something that I was hoping would help me. The article is entitled "Show Blob of other table in APEX Form" by Dimitri Gielis can be found here: http://dgielis.blogspot.com/2008/07/show-blob-of-other-table-in-apex-form.html
    I tried to import the file "blob_support.sql" application (on both APEX 3.0 and APEX 3.1 systems) but got errors. I'm not having very much luck here and would appreciate the help in pointing me in the correct direction.
    Help!!
    Thanks
    LEH

  • BLOB download via WPG_DOCLOAD not working: what's with the document table?

    Hi,
    We upgrade our APEX application to 4.2 on RDBMS 11.2.0.1.0, and now our file downloads are failing with 404-not found errors.
    Documents are stored as BLOBs in a dedicated table TICKETDOC. Uploading works fine via APEX, I can query the docs in the table and all is looking fine so far.
    I have a report column formatted as HTML, making it a clickable thumbnail which should open the file in a separate browser window when clicked.
    HTML format for column:
    +*
    <img src="#OWNER#.DOWNLOAD_FILE?p_id=#THUMBNAIL#" height=40">
    </a>
    *+
    This is supposed to call our own procedure TICKET.DOWNLOAD_FILE, which calls WPG_DOCLOAD:
    +*
    create or replace
    PROCEDURE "DOWNLOAD_FILE" (p_id in number) AS
    l_mime varchar2(255);
    l_length number;
    l_file_name varchar2(2000);
    lob_loc BLOB;
    v_found BOOLEAN := FALSE;
    CURSOR c_doc IS
    SELECT doctype, doc, naam, DBMS_LOB.GETLENGTH(doc)
    FROM ticketdoc
    WHERE ticketdocid = p_id;
    CURSOR c_mail IS
    SELECT mimetype, content_attachment, filenaam, DBMS_LOB.GETLENGTH(content_attachment)
    FROM mailattachment
    WHERE mailattachmentid = p_id;
    param_val owa.vc_arr;
    p_table Varchar2(200);
    l_errm varchar2(2000);
    BEGIN
    p_table := 'TICKETDOC';
    IF p_table = 'TICKETDOC' THEN
    OPEN c_doc;
    FETCH c_doc INTO l_mime, lob_loc, l_file_name, l_length;
    IF c_doc%FOUND THEN
    v_found := TRUE;
    else
    END IF;
    CLOSE c_doc;
    ELSIF p_table = 'MAILATTACHEMENT' THEN
    OPEN c_mail;
    FETCH c_mail INTO l_mime, lob_loc, l_file_name, l_length;
    IF c_mail%FOUND THEN
    v_found := TRUE;
    END IF;
    CLOSE c_mail;
    END IF;
    IF v_found THEN
    --initialise owa with some environment variable
    param_val (1) := 1;
    owa.init_cgi_env(param_val) ;
    -- Set up HTTP header
    -- Use an NVL around the mime type and if it is a null, set it to
    -- application/octect - which may launch a download window from windows
    owa_util.mime_header(nvl(l_mime,'application/octet-stream'), FALSE );
    -- Set the size so the browser knows how much to download
    htp.p('Content-length: ' || l_length);
    -- The filename will be used by the browser if the users does a "Save as"
    htp.p('Content-Disposition: attachment; filename="' || l_file_name || '"');
    -- Close the headers
    owa_util.http_header_close;
    -- Download the BLOB
    wpg_docload.download_file( Lob_loc );
    END IF;
    exception
    when others then
    l_errm := sqlerrm;
    raise;
    END;
    *+
    The idea is to display a thumbnail image which, when clicked, will open the document (image, pdf, whatever) in a new browser window.
    Executing the procedure in SQLDeveloper works fine and I can query the downloaded BLOB (getlength etc).
    However, when I click the thumbnail in the APEX application I get a 404.
    Enabling debug via exec dbms_epg.set_dad_attribute('APEX', 'error-style', 'DebugStyle') yields the following:
    +*
    Fri, 31 May 2013 09:41:35 GMT
    Error retrieving document.
    Please verify that the document you requested exists in the document table
    DAD name: apex
    PROCEDURE : TICKET.DOWNLOAD_FILE
    URL : http://XDB HTTP Server:8080/apex/TICKET.DOWNLOAD_FILE?p_id=1091
    PARAMETERS :
    ===========
    p_id:
    1091
    ENVIRONMENT:
    ============
    PLSQL_GATEWAY=WebDb
    GATEWAY_IVERSION=2
    SERVER_SOFTWARE=Oracle Embedded PL/SQL Gateway/11.2.0.1.0
    GATEWAY_INTERFACE=CGI/1.1
    SERVER_PORT=8080
    SERVER_NAME=XDB HTTP Server
    REQUEST_METHOD=GET
    QUERY_STRING=p_id=1091
    PATH_INFO=/TICKET.DOWNLOAD_FILE
    SCRIPT_NAME=/apex
    REMOTE_HOST=
    REMOTE_ADDR=127.0.0.1
    SERVER_PROTOCOL=HTTP/1.1
    REQUEST_PROTOCOL=HTTP
    REMOTE_USER=ANONYMOUS
    ORACLE_SSO_USER=
    OSSO_IDLE_TIMEOUT_EXCEEDED=
    OSSO_USER_GUID=
    HTTP_CONTENT_LENGTH=0
    HTTP_CONTENT_TYPE=
    HTTP_USER_AGENT=Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; WOW64; Trident/5.0)
    HTTP_HOST=localhost:8080
    HTTP_ACCEPT=text/html,application/xhtml+xml,*/*
    HTTP_ACCEPT_ENCODING=gzip,deflate
    HTTP_ACCEPT_LANGUAGE=nl-BE,en-US;q=0.5
    HTTP_ACCEPT_CHARSET=
    HTTP_COOKIE=__utmc=31852350; __utmz=31852350.1366364489.1.1.utmccn=(direct)|utmcsr=(direct)|utmcmd=(none); __utma=31852350.974780296.1366364489.1366364489.1369990367.2; ORA_WWV_USER_61804796552973=930EBD5017F98F039F659148EAE74140; ORA_WWV_REMEMBER_UN=JO:ticket; ORA_WWV_F4000_P4150_TREE=RenderingTree%3A3727930518286945_columns%3A3729417793306453; SHARED_SESSION=87D7D96BC5A457924CB86A817315D30E; [email protected]
    HTTP_IF_MODIFIED_SINCE=
    HTTP_REFERER=http://10.0.25.1/apex/f?p=101:40:7036965658754:::::
    HTTP_SOAPACTION=
    HTTP_ORACLE_ECID=
    HTTP_ORACLE_CACHE_VERSION=
    HTTP_AUTHORIZATION=
    WEB_AUTHENT_PREFIX=
    DAD_NAME=apex
    DOC_ACCESS_PATH=docs
    DOCUMENT_TABLE=wwv_flow_file_objects$
    PATH_ALIAS=
    REQUEST_CHARSET=AL32UTF8
    REQUEST_IANA_CHARSET=UTF-8
    SCRIPT_PREFIX=
    HTTP_IF_MATCH=
    HTTP_CACHE_CONTROL=
    SOAP_BODY=
    HTTP_X_ORACLE_DEVICE_CLASS=
    HTTP_X_ORACLE_DEVICE_ORIENTATION=
    HTTP_X_ORACLE_DEVICE_MAXDOCSIZE=
    HTTP_X_ORACLE_DEVICE=
    HTTP_X_ORACLE_ORIG_ACCEPT=
    HTTP_X_ORACLE_ORIG_USER_AGENT=
    HTTP_X_ORACLE_USER_LOCALE=
    HTTP_X_ORACLE_USER_NAME=
    HTTP_X_ORACLE_USER_DISPLAYNAME=
    HTTP_X_ORACLE_USER_USERKIND=
    HTTP_X_ORACLE_USER_AUTHKIND=
    HTTP_X_ORACLE_USER_DEVICEID=
    HTTP_X_ORACLE_USER_LOCATION_ADDRESSLINE1=
    HTTP_X_ORACLE_USER_LOCATION_ADDRESSLINE2=
    HTTP_X_ORACLE_USER_LOCATION_ADDRESSLASTLINE=
    HTTP_X_ORACLE_USER_LOCATION_BLOCK=
    HTTP_X_ORACLE_USER_LOCATION_CITY=
    HTTP_X_ORACLE_USER_LOCATION_COMPANYNAME=
    HTTP_X_ORACLE_USER_LOCATION_COUNTY=
    HTTP_X_ORACLE_USER_LOCATION_STATE=
    HTTP_X_ORACLE_USER_LOCATION_POSTALCODE=
    HTTP_X_ORACLE_USER_LOCATION_POSTALCODEEXT=
    HTTP_X_ORACLE_USER_LOCATION_COUNTRY=
    HTTP_X_ORACLE_USER_LOCATION_TYPE=
    HTTP_X_ORACLE_USER_LOCATION_X=
    HTTP_X_ORACLE_USER_LOCATION_Y=
    HTTP_X_ORACLE_SERVICE_HOME_URL=
    HTTP_X_ORACLE_SERVICE_PARENT_URL=
    HTTP_X_ORACLE_HOME_URL=
    HTTP_X_ORACLE_MODULE_CALLBACK_URL=
    HTTP_X_ORACLE_MODULE_CALLBACK_LABEL=
    HTTP_X_ORACLE_CACHE_USER=
    HTTP_X_ORACLE_CACHE_SUBID=
    HTTP_X_ORACLE_CACHE_AUTH=
    HTTP_X_ORACLE_CACHE_DEVICE=
    HTTP_X_ORACLE_CACHE_LANG=
    HTTP_X_ORACLE_CACHE_ENCRYPT=
    HTTP_X_ORACLE_ASSERT_USER=
    *+
    I made minor adjustments to the original (pre-4.2) code:
    * initialised owa with some environment variable
    * registered DOWNLOAD_FILE in wwv_flow_epg_include_mod_local
    but still no success.
    Any ideas on how to fix this?
    Greetz
    Jo

    As I understand:
    The procedure works.
    The link 'appears' to work. (ie you saw the procedure run a 2nd at the database level)
    But it doesn't actually work (because you get a 404)
    I think I ran into an issue, on a completely different page type, that produced an 'error 404'. (I can't seem to reproduce it, though)
    The only way I discovered what was really going on was with an HTTP sniffer. (eg HTTPFox for FireFox)
    Through that, I noticed that the browser was (for some reason) calling a completely non-sensible APEX page. (hence the PAGE NOT FOUND error)
    My solution was to add a "submit to self" branch point.
    If that doesn't work, I'm at a loss.
    MK

  • BLOB Download Format Mask

    Hi there
    I've got this in my report:
    DOWNLOAD:MYTABLE:MT_FILE:MT_ID:::MT_FILENAME:::attachment:Download
    I was wondering - is it possible to change 'Download' to the value of MT_FILENAME? I've tried #MT_FILENAME# and MT_FILENAME with no luck.
    It would be nice not to "waste" an extra column for 'Download' if I could just make the filename listed as a download-link instead.. Any inputs?
    Cheers,
    Vidar

    Why dont you just put the link on the blob column. Then when you click on the image it prompts the user to save the blob.
    null

  • Download Formatting Mask for BLOB column

    Hi All,
    IR Query : select "ROWID","FILE_NAME",dbms_lob.getlength("DATA_FILE") "DATA_FILE",
    "DOC_SIZE",PROPOSAL_OWNER
    from "#OWNER#"."APXTER_IMP_HDR"
    I am using BLOB Download Format Mask on FILE_NAME column
    using the following FORMATTING
    DOWNLOAD:APXTER_IMP_HDR:DATA_FILE:ROWID::::::attachment:Download
    After applying the changes, I counter the error
    The number of display columns in the report reached the limit. Please click Select Columns under Actions menu to minimize the report display column list.
    Thanks,
    Sombit

    Hello,
    Here you can find a tutorial about blob:
    http://www.oracle.com/webfolder/technetwork/tutorials/obe/db/apex/r31/apex31nf/apex31blob.htm
    I have a demo here - it shows how to display an image in case the file is image. Otherwise, it displays download link:
    http://apex.oracle.com/pls/apex/f?p=63066:1
    workspace: somefeto
    user: test
    pwd: test
    Application 63066
    Also, there is a packaged application : Sample File Upload and Download that shows you, how to do it.....
    you can find it on your workspace.. or here if you wish:
    http://apex.oracle.com/pls/apex/f?p=10540:3:15582111009947::NO
    workspace: somefeto
    user: test
    pwd: test
    Regards,
    Fateh
    If you believe that my answer was helpful to you or correct, then please mark the answer as helpful or correct ...

  • Adobe download assistant will not work on my machine?

    Adobe download assistant will not work on my machine. When i try to start it i get a message saying "Sorry an error has occurred. This application cannot be installed because this installer has been mis-configured. Please contact the application author for assistance." Any ideas what to do

    Are you using Mac OS?  If so please try removing the Adobe Download Assistant from your Applications folder and try again.  This issue is documented in the Known Issues section of Troubleshoot Adobe Download Assistant - http://helpx.adobe.com/creative-suite/kb/troubleshoot-download-assistant.html.

  • After updating to V 15.0 I have the issue that suddenly many but not all of the functions do not work anymore. Menues and download links do not work.

    I have updated my firefox to version 15.0. After this I have the effect that at some unspecified time during use many of the functions stop working. Menu's do not open, download links do not work anymore and so on. Opening new tab's or windows still works. Links on pages partly work partly not. Copy and paste does not work anymore on webpages. It takes ending the firefox process and restarting to correct the issue until it happens again. I have those effects on totally different webpages. At this time it happens every time after I start Firefox but not right away. Firefox first works for some time and then it suddenly doesn't anymore without me having done anything special

    The Reset Firefox feature can fix many issues by restoring Firefox to its factory default state while saving your essential information.
    Note: ''This will cause you to lose any Extensions, Open websites, and some Preferences.''
    To Reset Firefox do the following:
    #Go to Firefox > Help > Troubleshooting Information.
    #Click the "Reset Firefox" button.
    #Firefox will close and reset. After Firefox is done, it will show a window with the information that is imported. Click Finish.
    #Firefox will open with all factory defaults applied.
    Further information can be found in the [[Reset Firefox – easily fix most problems]] article.
    Did this fix your problems? Please report back to us!

  • After Mountain Lion download, FaceTime is not working anymore. Any ideas?

    After Mountain Lion download, FaceTime is not working anymore. Any ideas?

    I have reinstalled mountain Lion again . This time, Facetime works when somebody calls me, and I can do calls from my Mac again. But the problem was still that I was not able to call my iPad, what I was able to do with Lion (I had one Apple-ID and two call adresses). The solution was this time to generate a second Apple-ID from the Facetime in my Mac (this doesn't affect your main Apple-ID, it's only used for Facetime). Now, it works!  ;-)

  • Download option is not working

    my nokia x6 00 ,in Nokia Store option ..download option is not working
    Moderator's note: We have provided a subject-related title to help other forum users easily view and respond to this post.

    Hi ahrar3359,
    Welcome to the Nokia Support Discussions!
    Can you further elaborate on your concern? What exactly do you mean by "download option is not working"? Can you select the Download option? If not, can you describe it? Is it grey out? Any error message? Does this happen to all of your apps? BTW, how are you accessing the Nokia Store? Is it via the Nokia Store app or through your phone browser? If you're using the app, try to access it via phone browser to check if the same issue will occur.
    If you are using the app, make sure that it is up to date. You can update it by going to store.nokia.mobi through your phone browser. You can also try to restart the phone to refresh it. Hope this helps.

  • Download lightroom - download button is not working

    Unfortunately my laptop was stolen and now that I have a new LPT, trying to download lightroom again. Went to the adobe website but the download button is not working.  Also checked support online. It said to right click the button and select open in new window. Tried that too - no luck. Anyone have anyother advice.

    Troubleshoot Adobe Download Assistant
    Mylenium

  • Mask not working correctly?

    Hi every one!
    I have this problem with my mask not working properly, i have an image, and it has an red fruit sitting on a table,
    i have to make the picture sepia using an adjustment layer ( my lecturer says it MUST be done that way)
    but leaving the fruit as red as possible. So when i do this i MUST use the layer mask provided by the
    adjustment layer, but what is happening is the orange is going a very faded red ( but not quite sepia), the table BG does go sepia..
    so its KIND OF working but not really.
    Cheers
    Bunny Face

    Check your mask by OPTION CLICKING on the mask icon on the specific layer. This will show you a greyscale mask. BLACK hides, WHITE REVEALS. SO obviously grey does half of each! So if you dont want the apple to be affected by the layer mask you  must paint it BLACK in the mask of that adjustment layer.

  • The download function is not working....!! When I click on something like download a doc,pdf or any such file, the firefox just doesn't respond, and when I checked the download, i.e. cntrl+j, I don't find anything in the downloads...

    The download function is not working....!! I don't use any add-ons like idm or dap,etc.... When I click on something like download a doc,pdf or any such file, the firefox just doesn't respond, and when I checked the download, i.e. cntrl+j, I don't find anything in the downloads... I am currently using Firefox 7.0.1....... Nothing is being downloaded, and I am forced to use IE8 for everything... I even tried re-installing, but doesn't help... I am using Windows 7

    TonyE is correct the plugin version comes with Adobe's Reader X.
    The failure in communication is two parted:
    1. Reader X is not Acrobat (Mozilla Plugin Checker)
    2. Acrobat is not mentioned in the Reader X download Page (Adobe)
    therefore confused clients.
    For readers '''CAUTION''' check the minimum requirements for Reader X.
    Here: [http://www.adobe.com/products/reader/tech-specs.html Adobe's Reader X requirements link]
    Do not waste the time to download (80+MB and Site is Slow) if your machine does not have the resources to execute it. ie. '''aging''' Hardware
    Unfortunately the Adobe DLM only checks the requirements after it has
    downloaded BEFORE the install occurs.
    This is '''very expensive''' for both the sender and receiver
    It might be why they called it READER X and READER 9 will not sense an update...
    Another Software company pushing Hardware antiquity...

  • Downloaded Movies suddenly not working. Appear to be running but screen blank. Music works OK

    Downloaded Movies suddenly not working. Appear to be running but screen blank. Music works OK

    Hi Dingo1936,
    That's unusal that downloaded movies would stop playing correctly. Try running through the troubleshooting article below.
    Troubleshooting iTunes for Windows Vista or Windows 7 video playback performance issues
    http://support.apple.com/kb/ts1718
    -Jason

  • Microsoft ADK download link is not working on microsoft site

    Microsoft ADK download link is not working on microsoft site
    None of the links I have tried have the download.
    Googling for the right link does not help, Microsoft seem to have removed the download. I have tried many links
    Does anyone know where I can get this?

    http://www.microsoft.com/en-us/download/details.aspx?id=39982
    Please remember to click "Mark as Answer" or "Vote as Helpful" on the post that answers your question (or click "Unmark as Answer" if a marked post does not actually
    answer your question). This can be beneficial to other community members reading the thread.
    This forum post is my own opinion and does not necessarily reflect the opinion or view of my employer, Microsoft, its employees, or MVPs.
    Twitter:
    @alexverboon | Blog: Anything About IT

  • (three-way color corrector) secondary color correction masks not working?

    Hi I'm using PP 2014 on Yosemite. Anyone notice (three-way color corrector) secondary color correction masks not working?

    strange. same stats here but im getting intermittent.... sometimes i can use the mask and the effect is only limited to the masked area. most of the time the masked area is ignored and the effect is applied to the whole image

Maybe you are looking for

  • Producer consumer error 200279

    Hello, So I'm about to go crazy and hoping someone can help me here. I'm writing a program that controls a motor and using a producer/consumer method to write the data at 10,000 intervals a second. I've read through multiple examples and I don't see

  • Solaris 8 patches added to Solaris 9 patch cluster and vice versa

    Has anyone noticed this? On the Solaris 8 and 9 patch cluster readmes, it shows sol 9 patches have been added to the sol 8 cluster and sol 8 patches have been added to the sol 9 cluster. what's the deal? I haven't found any information about whether

  • Can a measure map to multiple fact tables

    Hi Experts, Can A Measure in an Universe map to multiple fact tables? For example, we have sales detail table by day and store and product, and have sales summary table by day and region and (product) department. We like to create a measure to map to

  • How to open a seperate Word File through a button in WDA?

    I try to embed a world fine inside my WDA-View, but some necessary functions are deactivated.  (see [my question|A question about the SAP Demo Example: OfficeControl in WebDynpro ABAP; ) So now I try another way to open a separate Word File through a

  • Business one - how is the prospects for a MBA fresher

    I am very new to business one and I need some information regarding its training and prospects. One of my friend has graduated (MBA) and trying to get into SAP. Since he is fresher he is not able to undergo any major SAP module. The training center i