Download link problem

Hi,
I am using apex 4.1. I have a report item where a file path(Eg.     *\\172.18.19.182\Case Studies Reoriented\MDM\Telenor_MDM_CaseStudy.pdf*) is stored. I build a report where this item is shown as a link in if I click on it, the file should be downloaded.
But the link is not generating as I am expecting, it is generating as (*http://172.18.41.50:8080/apex/p?n=\\172.18.19.182\Case%20Studies%20Reoriented\MDM\Telenor_MDM_CaseStudy.pdf*) and as a result I cant download it. Please help me.
Regards,
Kaushik

Hi Kaushik,
Please let me know what the current link properties in your report are since that's where the problem and the solution are.
If I generate a report with query :
select 'www.google.com' as SITE from dual;
And I set the column SITE as column link and as link address #SITE# I get the same problem you are experiencing ( the generated url is http://apexsite/apex/www.google.com )
Using the exact same report with a slightly different query it works great
select 'http://www.google.com' as SITE from dual;
If your URL's are in a table/column and you don't want to change them to http:// format you can also change the column link to :
http://#SITE#
regards
Bas

Similar Messages

  • 9iAS Version 2 download link problem

    http://www.oracle.com/technology/products/ias/9ias_index.html
    returns page not found. This link is on http://www.oracle.com/technology/products/ias/index.html

    Hi:
    On Linux is doing by command line
    $ORACLE_INFRASTRUCTURE_HOME/bin/emctl start
    On windows you should see a Service in Services Windows like:
    OracleOraSIDEMWEBSITE
    Just start this service...
    Hope it helps

  • Hello - downloading app problems - this phone can only be usedto download apps in uk or something - think i am linking to the us apps  - how do i link to the uk apps?

    hello - downloading app problems - this phone can only be usedto download apps in uk or something - think i am linking to the us apps  - how do i link to the uk apps?
    ta

    You're welocme
    Depending on the size of the app or the connection speed when using Wi-Fi it could take a little longer to download. You can also try to download it onto your computer, might be faster, and sync it to the phone after that.
    Downloading past purchases from the App Store, iBookstore, and iTunes Store

  • Re: Problem providing download link for BLOB data in apex report

    Hi Don,
    Your solution below worked but in the download option i only see save but not open for PDf file in the blob. Please let me know if you have any suggestion to achieve it
    Thanks
    Jo
    Problem providing download link for BLOB data in apex report 
    591953 Nov 19, 2008 1:55 PM (in response to 660436)
    Currently Being Moderated
    Good morning,
    Here is how I have solved this problem.
    1. The select statement in the sql for the report should not include the BLOB column. I decided to select only 2 columns, the column that has the key and the column with the filename.
    2. On the first column ( the primary key ) I put in the format statement that was simply DOWNLOAD:TABLENAME:BLOB_COLUMN:PRIMARY_KEY
    This works. I believe that the Oracle error I was getting was because I was trying to apply this format statement to the actual BLOB column.
    So, it appears that you can use any of the columns in the report to hold the DOWNLOAD format statement since in the format statement, you are defining the BLOB table, BLOB column and the primary key into that column.
    Hope this helps,
    Don.

    Branched out from a years old thread.
    user3003326 Don't post to old threads, please.

  • Problem providing download link for BLOB data in apex report

    Hi,
    I am trying to create a report on a table with BLOB data so that the report displays a "download" link for the BLOB data. I am trying to give users the ability to download files from a website.
    I have been following the instructions in OBE "Defining and Viewing BLOB Data in Oracle Application Express 3.1".
    In the report, for the BLOB column, I have specified values for the following fields in Report Attributes->Column Formatting->Number/Date Format->BLOB Download Format Mask:
    BLOB Table
    BLOB Column
    Primary Key Column 1
    MIME Type Column
    Filename Column
    BLOB Last Updated Column
    However, when I run the report, I get the following error, even thought there is data loaded into the table:
    report error:
    ORA-01403: no data found
    When I remove the BLOB Download Format Mask information for the BLOB column, then the data displays in the report, but without the "download" link for the BLOB data (which is expected):
    E.g.
    Title Author Created BLOB_CONTENT
    Siebel & RAC Best Practices     Erik.Peterson     17-SEP-08     [datatype]
    Siebel Grid Case Studies     Mark.MacDonald     17-SEP-08     [datatype]
    Siebel CRM Applications protected by Oracle Clusterware     Kelly.Tan     17-SEP-08 [datatype]
    Oracle Grid: The Optimal Platform for Siebel Solutions Mark.MacDonald 17-SEP-08     [datatype]
    Any ideas why I'm seeing the ORA_01403 when I specify the BLOB Download Format Mask?
    Edited by: user716599 on Sep 18, 2008 12:31 AM

    Good morning,
    Here is how I have solved this problem.
    1. The select statement in the sql for the report should not include the BLOB column. I decided to select only 2 columns, the column that has the key and the column with the filename.
    2. On the first column ( the primary key ) I put in the format statement that was simply DOWNLOAD:TABLENAME:BLOB_COLUMN:PRIMARY_KEY
    This works. I believe that the Oracle error I was getting was because I was trying to apply this format statement to the actual BLOB column.
    So, it appears that you can use any of the columns in the report to hold the DOWNLOAD format statement since in the format statement, you are defining the BLOB table, BLOB column and the primary key into that column.
    Hope this helps,
    Don.

  • Problem with download link for a BLOB Column in a "Classic report"

    I am having a problem where I cannot make a download link for a blob column function in a "classic" (non-interactive) report. I went through the tutorial on this topic and it was great help it working out the minor bugs, but I get a 404 error (apex_util.get_BLOB not found). For testing purposes I went ahead and created a an identical report on the same page that is an "Interactive report" and it works like a charm. Same query, same BLOB formatting Mask, pulling data from the same table. So, it really doesn't seem like an issue with the grants, since both reports should be executing as the same user.
    I know it sounds like the obvious answer is to just go with the interactive report and my problem is solved, but the rest of this site uses classic reports, and I don't need the sort features of an interactive report, and the slightly different style of the the report really stands out even if I turn off all the bells and whistles. I don't want to change the css to make them look identical, I just want a regular report to work.

    I eventually found another post: APEX_UTIL.GET_BLOB was not found on this server
    In this post there is the suggestion of putting "dbms_lob.getlength("var")" after the date field in your select. So I changed my query to have it at the end, and now my format mask (DOWNLOAD:table_name:ATTACHED_FILE:FILE_ID::FILE_MIME_TYPE:FILE_NAME:::attachment:Download) works like a charm, in a classic report.

  • Downloading links don't open whereas no problem with surfing

    i open a site. i click on the downloading links provided to download a video. it takes me to another page. but that does not open. some of these sites are rapidshare.com, filesonic.com, easyshare.com and uploading.com

    I created a small website with a mp3 and a m4a file.
    http://homepage.mac.com/detlefschmitt/m4a-test-site/index.html
    Using the curl command I get the following result for m4a on the above website:
    Content-Type: audio/x-m4a
    Remember with the intranet website I got the following for m4a:
    Content-Type: audio/mp4a-latm
    With the mp3 file I get the same result as with my intranet website:
    Content-Type: audio/mpeg
    I am not having this problem only with my Intel-iMac. I have the same issue with my eMac. The m4a files from my intranet website download and do not play in the browser. On the other hand on my wife's PC the m4a files from my intranet website open and play with the Quicktime plug-in in the browser.
    audio/x-m4a is listed among the Quicktime 7.1 plug-ins in Safari/Help/Installed Plug-ins. audio/mp4a-latm is not.
    I have two tables of Quicktime 7.1 plug-ins in Safari/Help/Installed Plug-ins. Is that normal?
    I played around with the "mimme.types" file in the private/etc/httpd folder. This is the same folder that contains the httpd.conf file. The mimme.types file contains audio/mp4a-latm but not audio/x-m4a. If I replace mp4a-latm with x-m4a followed by unselecting and reselecting Personal Web Sharing then I get the following result with the curl command:
    Content-Type: text/plain
    If I replace then x-m4a again with mp4a-latm I get the original curl result:
    Content-Type: audio/mp4a-latm.
    Mmm, I am pussled. I don't know enough yet to analyze correctly what is going on. I appreciate your help.

  • Download link not working in Adobe AIR app.

    I wanted to let users browse my site as a desktop application,
    but didn't have the time to write an application from scratch. SO tried following trick. Created a simple Adobe AIR application with a single page. This page redirects to my website and hence loads the website in the AIR window.
    Everything is working fine except that the download links are not working. The download doesn't start. Nothing happens. What is the solution here? Any help is appreciated.

    I am now facing the same problem. I wrote a servlet .
    code like this
             response = (HttpServletResponse) faces.getExternalContext().getResponse();
             response.setContentType("application/x-download");
             String agent = request.getHeader("USER-AGENT");
             boolean isIE=false;            
            if (null != agent && agent.indexOf("MSIE")!=-1) { 
                isIE=true;
            if (isIE) {
                fileName = URLEncoder.encode(fileName, "UTF-8");
            } else {
                fileName = new String(fileName.getBytes("utf-8"), "ISO-8859-1");
            response.setHeader("Content-Disposition","attachment;filename="+fileName);
            ServletOutputStream os = response.getOutputStream();
            byte b[]=new byte[1024];
            int n;
            while((n=in.read(b))!=-1){
                os.write(b,0,n);
           in.close();
           os.close();
    and i open a new window refer to above jsp ,also i set a breakPoint at os.close(),the program has passed through,but nothing happened in the window.
    If i use IE or FF ,the browser will open a small window to allow me select whether open or  save the file.So can anybody give me some advice.Is it because air using webkit engine and the engine does not do this kind of job?
            Thanks.

  • When I click on download link, Firefox don't pop-up window where i could select open with or to save file, it just pop-up window where to save, why?

    Before update, when i clicked on download link pop-up window would come up asking me if i wnat to open file with program or just save it, but after update i dont get that pop-up window, insted i get window asking me where to save it, how can i fix this problem, because i want sertain files to be opened with a program like it was before update? I have tried every solution i could find, and nothing helped. I use Firefox 16.0.2 on win7 ultimate x64bit

    Thank you, it helped alot. I found that my problem was that all programs in applications panel was set to "save file" option and when i changed them to "always ask" it was back to normal, like i used to :D many thanks

  • How do I remove download links/button redirect to accurate download

    When I go to some sites that have a download link underscored in blue or a button next to text or any other part of the page, I was able to click and download the file. When you point at the link or button you would see the path it will take to download the file. It would have the website name your visiting plus other codes.
    But on returning to these sites, when I choose what I want to download, the link or button wants to go to accuratedownload.com. It presents the name of the item I want and with a .EXE extension. My main browser is Firefox version 26.0 on my XP PC. I test Internet Explorer and it produces the same results. Something has changed. I go to the site on my mobile phone, I am able to download the file from the same site and the links/buttons are not embedded with codes to go to accuratedownload.com. I do not know what to call this problem since I had no luck in finding solutions to redirection being embedded in a link or button on a web page that worked fine.
    I've tried a reset Firefox, my profile, running Symantec Anti-Virus, Malwarebytes Anit-Malware, Clearing history and so on. The problem still occurs. Need Help.
    Note: It would be nice if when the Download Screen pops-up, that we could rename the download file to a name we want (Saves time). Even if you rename the file, the history should record where it came from with the original name if it needs to be downloaded again.

    To let you know, When I did a reset and restarted Fire Fox without the Add on's. I tested each user account on my PC. Each user account that used Fire Fox or Windows Explorer showed the same symtoms.
    Back to troubleshooting, I've completed a scan using Sothos Free Virus Removal Tool. After a lengthy scan of every drive, partition, USB Thumb Drive and so on that it found, in about 5.5 hours it found Mal/FakeAvCn-C, Mal/JavDlEx-A and CXmal/BadLnk-A and continued by clicking the Clean Up button and that took about 15 minutes for some reason. Then it asked to send the log to Sophos. I clicked send and it failed to get to them.
    I tried going on the internet to test the cleanup by clicking on some links and buttons. I could not get on the internet. I found that the NIC card was not working. Don't know why now but probably was affected by the scan. I found myself troubleshooting and reinstalling NIC drivers several times before the NIC card started to run correctly.
    I read you post and tried to change the proxy settings in Fire Fox to "No Proxy." The scan, clean up and proxy settings change did not remove the embedded paths in links or buttons that allow you to download or be sent to the intended location. It still had paths to accuratedownload.com and eachdownload.com.
    Question: By default is the proxy setting suppose to be "Use system proxy settings"? Should I put this back to this setting.
    Windows Explorer has the same problem. Is Fire Fox a stand alone product or does it build parts of itself using Windows Explorer?
    =========
    Besides the scans and removal done to the registry, the scans it did on the files and folders, the Sophos log shows the virus attached to files in Documents and Folders, All Users (and other user accounts), Application and data folders, Java and Cache, including any shortcuts and long cryptic files like (pg42l784fcuo452hsb6cfbkoke045p75f2e02887m).
    When programs fail to delete or cleanup after themselves, what locations can be safely deleted manually?

  • Creating a file download link on jsp

    I have the following on my jsp. The code worked fine until I tried to use it in a new html design page.
    <code>
    //page name is index.jsp
    try //DISPLAY THE CONTENTS OF THE DATA DIRECTORY
    File dirname = new File(PATH); // create an instance of the File class
    if (dirname.exists()&&dirname.isDirectory())//check to see if File class dirname exists and is valid
    String [] allfiles = dirname.list();//create an array of files in the dirname File class
              for (int i=0; i< allfiles.length; i+=2)//loop through allfiles[] and print out file links
    out.println("<br><table border='1' cellspacing='1' width='99%'>");
                   out.println("<tr><td width='50%' class='pageFont'><input type='checkbox' name='cb' value='"+allfiles[i]+"'>"+allfiles[i]+"      ");
    %>
    <a class="a" href="index.jsp?downfile=C:\\data\\<%=allfiles[i+1]%>">DOWNLOAD</a></td>
    <% if(i+1 < allfiles.length)//PRINTS OUT THE SECOND TD SO THAT WE HAVE 2 COLUMNS OF LINKS
    out.println("<td width='50%' class='pageFont'><input type='checkbox' name='cb' value='"+allfiles[i+1]+"'>"+allfiles[i+1]+"      ");
    %>
    <a class="a" href="index.jsp?downfile=C:\\data\\<%=allfiles[i+1]%>">DOWNLOAD</a></td></tr>
    <%
    out.println("</form></font></table>");
    catch (IOException excep)
         out.println("An IO exception has occured.");
    </code>
    Then when clicked this code is run:
    <code>
    try{
    //CHECK TO SEE IF THE FILE HAS BEEN CLICKED TO DOWNLOAD SINGLE FILE
    if (request.getParameter("downfile") != null)
    String filePath = request.getParameter("downfile");
    File f = new File(filePath);//CREATE AN INSTANCE OF THE FILE CLASS AND POINT IT TO THE LOCATION OF THE DIRECTORY CONTAINING THE FILES
    if (f.exists() && f.canRead())
    response.setContentType ("application/octet-stream");
    response.setHeader ("Content-Disposition", "attachment;filename=\""+f.getName()+"\"");
    response.setContentLength((int) f.length());
    BufferedInputStream fileInputStream = new BufferedInputStream(new FileInputStream(f));
    int i;
    out.clearBuffer();
    while ((i = fileInputStream.read()) != -1) out.write(i);
    fileInputStream.close();
    out.flush();
    </code>
    When I click on this link I get the download dialog box. If I open it I get the following open up in notepad(the files I am trying to give download links are .txt files)
    Below is what is displayed in notepad ALL on 1 line:
    <html>
    <head>
    <LINK rel="stylesheet" ty
    That is displayed in all of the links that I click on. It is the first few lines of html code for index.jsp.
    I know this code is probably not a good way of doing what I need but I got it to work fine until the change.
    I am sure there is an easier way to code the download link without resubmitting the page.
    Thanks in advance!!

    Well all was fine with this jsp until I moved it to ApacheJServ. Now the problem has resurfaced(although it is a little different now)
    I had moved the following code to the top of my page:
    //CHECK TO SEE IF EITHER DOWNFILE OR ZIPFILE VARIABLE EXIST, AND IF THEY DO SET CONTENT TYPE BEFORE SENDING ANY HTML CODE TO THE BROWSER
    try{
    //CHECK TO SEE IF THE FILE HAS BEEN CLICKED TO DOWNLOAD SINGLE FILE
        if (request.getParameter("downfile") != null)
                String filePath = request.getParameter("downfile");
                File f = new File(filePath);//CREATE AN INSTANCE OF THE FILE CLASS AND POINT IT TO THE LOCATION OF THE DIRECTORY CONTAINING THE FILES
                    if (f.exists() && f.canRead())
                        response.setContentType ("application/octet-stream");
                        response.setHeader ("Content-Disposition", "attachment;filename=\""+f.getName()+"\"");
                        response.setContentLength((int) f.length());
                        BufferedInputStream fileInputStream = new BufferedInputStream(new FileInputStream(f));
                        int i;
                        out.clearBuffer();
                        while ((i = fileInputStream.read()) != -1) out.write(i);
                            fileInputStream.close();
                            out.flush();
                            response.flushBuffer();
    catch (Exception e){}
    //This is where the java code ends and the javascript/html code begins.Then further into the page I create the file download links like so:
                            <a class="a" href="main.jsp?downfile=C:\\data\\<%=allfiles[i+1]%>">DOWNLOAD</a>I know this isnt a secure way of doing this but I am on a intranet.
    The problem I am having now is that when I click on one of the links and download the file and then open it, I get the contents of the file plus concatenated to the end of it is the first few HTML lines of the actual jsp that I downloaded the file from. Before I was just getting the first few lines of html from the jsp, not the actual contents of the downloaded file.
    This is an example of what I am getting:
    This is the contents of the file that I downloaded.//This is where the file contents ends.
    <html>
    <head>
    <LINK rel="stylesheet" type="text/css" href="default.css">
    <script language="JavaScript1.2">
    //function that allows user to select all checkboxes
    function doIt(v)
    for(var i=0;i<document.form1.cb.length;i++)
       document.form1.cb.checked=eval(v);
    function swap(imageName,image)
    imageName.src = "templateImages/"+image;
    function imageOver(imageSrc, imageName)
         changeImage = new Image();
         changeImage.src = imageSrc;
         document.images[imageName].src = changeImage.src;
    var hide = true;
    function hideShow( ) /
    Any morre ideas?
    TIA!
    BTW, I went to ApacheJServ because they wont let me use tomcat :(

  • 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!

  • 32 bit vs. 64bit download link question

    My daughter just bought a prepaid CC student and teacher license for her studies.  She bought it thru thinkedu.com and it is the $199.00/12 month subscription.  Her computer runs windows 8 pro 64 bit OS.  The download link says 32 bit.  I want to help her install it this weekend and have not clicked on the link yet to install.
    Two questions.  1) Will the 32 bit link be a problem in getting the best possible performance out of her computer (hardware aside)?  2) does the subscription begin when activation begins or is the meter running right now?

    Audio and video apps are mostly 64 bit only - Audition included.
    http://www.adobe.com/au/products/creativecloud/faq.html#desktop-products
    Which desktop applications in Creative Cloud require 64-bit operating systems?
    With the new CC apps, most of the pro video and audio applications now require 64-bit operating systems to run. These native 64-bit applications include Adobe Premiere® Pro CC, Adobe Audition® CC, After Effects® CC, Prelude® CC, and SpeedGrade® CC. Flash Professional CC, Photoshop CC and Lightroom® also require 64-bit on Mac OS.
    Where 32 bit and 64 bit versions are available, both will be installed automatically. The 32 bit versions may occasionally be required to run older plugins, though in your daughter's case I doubt she'll ever need the 32 bit versions.
    The 64 bit version of each app should be the version which launches by default in each case,

  • "Download Linked File As" Does Not Work

    As others have noted, although Safari is an excellent and fast browser, there is one feature that is quite annoying, namely that all filed download by default to a single folder selected in preferences. Internet Explorer (and Firefox, I believe) by default allows the user to save to any folder selected at the time. In each thread I've read noting this problem, someone answers that the solution in Safari is to right click on the link and select "Download Linked File As" then direct the browser to the folder. The problem is that this does not work as Safari downloads only the link (or something else) but not the linked file. For example, if the linked file is a PDF, under "file type" PDF does not appear, only "All Files" and once the download is complete you have an entry in the desired folder but not the file itself. (This is true even if you append the proper suffix to the file name; no actual file.) Is there a solution here or does it really take several steps to get a downloaded file into the folder of choice?

    I just checked a pdf and "Download linked file as" does give me option to save where I want for pdf, jpg files and others.

  • Display image for BLOB  Download link in Interactive Report

    I have a table containing BLOB data and am displaying the table in an interactive report. I would like to replace the "Download" text link with an icon that represents the MIME type of the BLOB, but can't seem to find a way to make the substitution. Does anyone know how to do this? Thanks.
    -Jeff

    Hey Ben,
    Thanks for the suggestion. I understand what you are saying, the problem is that when you have an interactive report that includes a BLOB and you use the built-in method for displaying a download link, it only gives you the option of using a text link. The method is outlined in the online help under:
    Home > Advanced Programming Techniques> About BLOB Support in Forms and Reports > About BLOB Support in Reports
    This is done by using the following syntax in the Number/Date Format of the column attribute of the BLOB:
    DOWNLOAD:CC_DOCUMENTS:CONTENTS:ID::MIME_TYPE:FILENAME:UPDATED_ON::attachment:View
    Where the last parameter is the link text. The only problem is that there is no option for substituting an image rather than the link text. That's what I'm trying to work around. Sorry if you new all of this already, but I wanted to explain what I've already done. Thanks for any help you can offer.

Maybe you are looking for

  • IPod not recognized by PC or iTunes - can no longer sync iPod

    I had to shut down my PC due to a storm and I didn't realize that my iPod was still connected with the message "do not disconnet". Now my PC does not recognize my iPod. I've tried resetting it, uninstalling/reinstalling the driver and the iTunes appl

  • Xml schema Vs DTD

    Hi, Can some one please give me a pointer or elaborated detail regarding how using xml schema helps instead of using DTDs and the most popular and efficient tool out there that converts DTDs into XSDs? I know there is some inforamtion about this in W

  • Oracle BPM / SOA Suite and Big and Complex Scenarios

    Hi people, I have worked for a company that in the past chose Oracle BPM (ALBPM at the time) and one of the big problems that the company had was in relation about big processes and complex scenarios. This company is for the e-commerce area and our p

  • Init+delta in BW, subsequent delta in BI - upgrade issue

    We are upgrading to BI patch 16 from BW 3.5. Our BW dataload flows are - R/3 extractor to ODS via infopackages (PSA and then data target option), then to the infocubes via infopackages (same option). In BI, data come to PSA via infopackages, then to

  • Schedule Agreement release report

    All, Is there any report to have the Schedule agreement releases to be generated online or in background? Kindly advice. Thanks