How to download blob image, inline to new browser tab or window

APEX V4.2.3
I have an interactive report with a blob download column which is set to inline.  When I click on the "download" link the image appears automatically in same window as the APEX application.  How do I download the image into a new browser tab?  I need to squeeze 'target="_blank" ' somewhere but I don't know where as the link structure is hidden.
Here is the code for my download column in the Interactive Report.
select
decode(nvl(dbms_lob.getlength(BLOB_CONTENT),0),0,null,
'<img style="border: 4px solid #CCC; -moz-border-radius: 4px; -webkit-border-radius: 4px;" '||
'src="'||
apex_util.get_blob_file_src('P98_BLOB_CONTENT',image_id)||
'" height="100" width="100" alt="'||FILENAME||'" title="'||FILENAME||'" />')
as detail_img,
from "#OWNER#"."TIS_ATTACHMENTS"
thanks in advance
PaulP

I would suggest
SELECT ID, NAME,CASE WHEN NVL(dbms_lob.getlength(document),0) = 0
  THEN NULL
  ELSE CASE WHEN attach_mimetype like 'image%'
  THEN '<img src="'||apex_util.get_blob_file_src('P4_DOCUMENT',id)||'" />'
  ELSE
  '<a  target="_blank" href="'||apex_util.get_blob_file_src('P4_DOCUMENT',id)||'">Download</a>'
  end
  END new_img
  FROM TEST_WITH_BLOB

Similar Messages

  • On Firefox 4, the back button does not work on a new browsing tab or window.

    Ever since I installed Firefox 4, I have noticed a problem that was not present with the previous version of Firefox. Whenever I open up Firefox and enter in a new web address, I cannot use the back arrow to go back to my original homepage; the arrow is ghosted out. The same problem exists when I open up a new browsing tab. Let me explain with an example. I open up my browser, and then I open a new tab (now there are two tabs open). In the new tab I type www.espn.com. Then I click on a link on espn.com. Say then I want to go back to the espn.com homepage that I just previously visited. I can't do it by clicking the back arrow; it's ghosted out. I have to physically type the address again (www.espn.com). Why has this changed? Is there a way to fix it? Why can't I just click the back arrow to go back to the espn.com homepage that I typed in originally (or my original homepage if I opened up a new window instead of a tab)? Oddly enough, if I go one link deeper into the espn.com site, I can then go back to the immediately preceding webpage, but not all the way back to the original espn.com homepage.
    I can't stand IE, but it doesn't have this problem. This problem also was not present on the old version of Firefox. I just verified this by testing the old version which I have installed on another computer.
    Please advise.

    Same problem here: I never had a problem with the previous versions and now I don't even get my homepage when I click Firefox. Instead, I am getting a blank screen that says "New Tab", only after I click the "Home" symbol I get my Homepage (Yahoo). The browser - back and browser forward button don't work anymore, very annoying. Normally a newer version should be an improvement but it looks like Mozilla really messed up with this "improvement". probably I am going to use Google chrome from now on.

  • Hyperlinks won't open in new browser tab or window

    How do I get hyperlinks to open in new window? "Open in new window" box is checked under hyperlinks, but it just won't work. I'm previewing in a browser, not Muse (Chrome and Safari).

    Hi Pblossom,
    Can you please send your .muse file to [email protected], along with a link to this thread? If your file is too big for email (larger than 20mb) you can use a service like Adobe SendNow or SendThisFile.
    Regards,
    Aish

  • Redirecting using a new browser tab or window

    How does one send a redirect response to a new window or tab of a browser?
    Currently forwarding to a new URL with AOL function in a controller class using pageContext.sendRedirect("Initialize.jsp?queryString1="value"&OAFunc=UI...")

    Unless I'm missing something that's not what I'm looking for. I know how to open a pdf using Reader. I'm talking about opening a pdf directly off of a website to open in reader and not in Chrome. There used to be a box in edit>preferences that you could check/uncheck if you wanted to open the file in the browser or not.
    This solution I believe is File>Open then select the pdf I'd want to view.

  • How to download purchased music to my new imac

    how to download purchased music to my new imac

    Downloading past purchases from the App Store, iBookstore, and iTunes Store

  • How to download RAW images from Canon S100 to iPhoto?

    How to download RAW images from Canon S100 to iPhoto?

    You need the Raw compatibility update 3.9:
    http://support.apple.com/kb/DL1473

  • I bought a new computer, I have Adobe Creative suite 5.5  How to download Adobe software to the new computer if I did it through the mail a few years ago?   Thank you

    I bought a new computer, I have Adobe Creative suite 5.5
    How to download Adobe software to the new computer if I did it through the mail a few years ago?
    Thank you

    Answered via PM reply.

  • How to download adobe flash player on new iPad?

    How to download adobe flash player on new iPad?

    Flash is only compatible with Windows, OS X and Linux. Adobe doesn't make Flash for iOS or Android

  • How to make Firefox open automatically a new, empty tab in each start, but keep last sessions?

    How to make Firefox open automatically a new, empty tab in each start? (keep last sessions as well) It will be good, because Firefox wont load the previous sessions last watched tab after start straight away, but keep my previous sessions tab as well in the browser.

    Hello,
    You can change your home page settings to open a blank tab:
    * Tools (or [[Image: New Fx Menu]]) > Options > General
    * Beside "Startup", change to "Show a blank tab"
    * See the article [[Startup, home page and download settings]] for more information
    To retrieve your previous browsing session, first make sure that you are not running in [[Private Browsing - Browse the web without saving information about the sites you visit|Private Browsing mode]]. When you start Firefox, to recover your previous session, you can go to:
    * History (or [[Image: New Fx Menu]] > History) > Restore Previous Session
    * Please see [[Restore previous session - Configure when Firefox shows your most recent tabs and windows]] for more information

  • When you open a new browser tab, underneath the box to type in what you are looking for is the recently visited list. I want to disable or delete this list...how do I get rid of this list???

    When you open a new browser tab, underneath the box to type in what you are looking for is the recently visited list. I want to disable or delete this list...how do I get rid of this list???

    The drop-down list displays items from your History and/or Bookmarks.
    You can control what shows (or nothing at all): Options > Privacy, "Location Bar" section. Options are:
    *History and Bookmarks
    *History
    *Bookmarks
    *Nothing
    See --> https://support.mozilla.com/en-US/kb/Options%20window%20-%20Privacy%20panel
    '''If this reply solves your problem, please click "Solved It" next to this reply when <u>signed-in</u> to the forum.'''
    Not related to your question, but...
    You may need to update some plug-ins. Check your plug-ins and update as necessary:
    *Plug-in check --> http://www.mozilla.org/en-US/plugincheck/
    *Adobe Shockwave for Director Netscape plug-in: [https://support.mozilla.com/en-US/kb/Using%20the%20Shockwave%20plugin%20with%20Firefox#w_installing-shockwave Installing ('''''or Updating''''') the Shockwave plugin with Firefox]
    *Adobe PDF Plug-In For Firefox and Netscape: [https://support.mozilla.com/en-US/kb/Using%20the%20Adobe%20Reader%20plugin%20with%20Firefox#w_installing-and-updating-adobe-reader Installing/Updating Adobe Reader in Firefox]
    *Shockwave Flash (Adobe Flash or Flash): [https://support.mozilla.com/en-US/kb/Managing%20the%20Flash%20plugin#w_updating-flash Updating Flash in Firefox]
    *Next Generation Java Plug-in for Mozilla browsers: [https://support.mozilla.com/en-US/kb/Using%20the%20Java%20plugin%20with%20Firefox#w_installing-or-updating-java Installing or Updating Java in Firefox]

  • Help with image placement in new browser window.

    I need help trying to position images that are being opened
    in a new browser window. I have created a photo gallery with
    thumbnails that are links to the larger image. Ive used the
    behaviors panel to open the new image in a new browser window but
    the image is always shown at the top left margins of the new
    window. Is there a way to 1. center the image in the new window, 2.
    change the background color of the new window that opens.
    Any help would be appreciated.
    Stu

    If, as I read it, you are simply opening the image, it will
    always be upper
    left and cannot be changed. IF you wnat to position it, you
    will need to
    create a new html page and position your image on that page,
    then call the
    page, not the image from your thumbnail link.
    In Dreamweaver in the command menu try the "Create Web Photo
    Album" command.
    It will create all of your pages, links and thumbnails for
    you. (requires
    Fireworks)
    Michael Hager
    www.cmhager.com
    "Stu127" <[email protected]> wrote in
    message
    news:eo70n5$qo5$[email protected]..
    >I need help trying to position images that are being
    opened in a new
    >browser
    > window. I have created a photo gallery with thumbnails
    that are links to
    > the
    > larger image. Ive used the behaviors panel to open the
    new image in a new
    > browser window but the image is always shown at the top
    left margins of
    > the new
    > window. Is there a way to 1. center the image in the new
    window, 2.
    > change the
    > background color of the new window that opens.
    >
    > Any help would be appreciated.
    > Stu
    >

  • I can no longer open a new browser tab by either clicking the + at the end of the last browser or by using the Ctrl key + T, how do I fix this?

    I have uninstalled firefox and reinstalled firefox to try and solve this
    issue, but it has not fixed the issue. To open a new tab I must right click
    any current page link to get a new browser tab and then navigate to a new web address. This is a recent issue that just started happening and I can't figure out what happened or what got disabled. Please help me fix this.

    Try uninstalling the Ask toolbar and it should work again. There is a compatibility issue with the Ask toolbar and Firefox that prevents new tabs from being opened.

  • Open URL from Java in a new browser tab

    Hi OTN,
    Surprisingly can't find the implimintation.
    In an ADF managed bean I retrieve String url. I need to open a new browser tab with this url.
    Found this thread Open a url in a new window in the backing bean which shows using javascript "service.addScript(facesContext, "window.open(http://www.google.coml)");".
    But in my case in doesn't work. The code is executed, but nothing happens. Maybe because the bean is called from a taskflow inline popup.
    ADF 11.1.1.4
    Thanks.

    Well, I'm afraid that is not an option.
    The goButton is in a table row. There are lots of rows so if I use EL for Destination attribute the URL would be retrieved for each of rows.
    The method of URL retreiving is heavyweight operation which includes calling plsql functions, working with strings and others. So if I do it for each table row my application hungs and then I receive an exception of CPU usage.
    That's why I switched to normal commandButton witch actionListener which retrieves url on click - only once. So I need to open URL from Java.

  • Open in a New Browser Tab?

    How do I open in a new browser tab (ex. IE & Firefox)? I
    know how to open in a new window but cannot fins a command or code
    to point to a new browser tab.

    That's because it doesn't exist as far as I know. There is no
    code like <a href ="xxx.com" target="_newTab">.
    That is just an option the user can choose by right clicking
    on a link and selecting "Open Link in a New Tab".
    Just treat the content like it is opening in a new window.
    You can name the new page and then focus in on it as if it is not
    in a tab but a new window.

  • Open Bytearray in new browser tab??

    hi
    I get the content of a file from the database and I want to open the content in an new browser tab.
    The content will be send to the frontend as bytearray.
    What kind of formats could be shown in a browser tab (e.g.: DOC, PDF, EXCEL)?
    is it possible to open a new browser tap to show a bytearray file? How??
    I just found only the possibility to open a pdf with e.g. a coldfusion script.
    I don't use a coldfusion server or something like that.
    How could I do this in PHP. I never used PHP.
    thanks for any advice

    Try this technique in a managed bean method that is invoked by your <af:commandLink>:
    // Invoke your PL/SQL procedure
    // Open the APEX site in a separate browser window
    String apexUrl = ...;
    ExtendedRenderKitService erks = Service.getRenderKitService(ctx, ExtendedRenderKitService.class);  
    String script = "window.open('" + apexUrl + "', '', 'location=0, status=0, resizable=1, scrollbars=0');";
    erks.addScript(FacesContext.getCurrentInstance(), script);Dimitar

Maybe you are looking for

  • How to connect PC to a mobile phone to make a call.

    Hi all, I want my PC to control the mobile phone (its a CDMA phone). I want to connect the phone with my PC through some cable, then I want to control the phone using the program running on my PC. Like, I want my program running on PC to make calls t

  • My iPad is requesting activation after almost 1 year of usage

    I was enroled as iOS developer and downloaded the iOS 6 Beta 3, everything was working just fine, when the final release came out I tried to buy the full release but iTunes reported I was on the last version, so no update was possible. Last night, wh

  • How to create QUONR and QUOSY on IT PA2006?

    Dear all, My schedule is Absence Quotas are generated automatically so I have write a program do this. Data Absence quotas will be input on table 2006 but I don't know how to create field QUONR - Counter for time quotas and QUOSY - Logical system for

  • Load the setup table.

    hi experts,                  i have doubt on loading the set up table.  what are the transaction codes for the filling the set up(LO) ex like sales,quality,purchase. olis7bw for sales. but it is not working in my system. other wise can any one provid

  • Can not delete 2 programs--​-HP smart webprintin​g 4.60, and, Shop for HP supplies.

    How can I delete these 2 programs? I got rid of the other HP programs but I can not make these programs go away. HP smart webprinting Shop for HP supplies I am trying to get rid of them by using (Add or Remove Programs) on my laptop running XP. Thank