Authenticate before Downloading  BLOB

I have a report that contains links to PDF files that are stored in BLOBS. The URL for the links uses APEX_UTIL.GET_BLOB_FILE_SRC to generate the URL. Some of the PDF files are public, while others require a user to be authenticated before the can view them. This is indicated by a privacy flag in the record. My question is this, if a public user clicks on a link to a "private" PDF file, is there a way to trigger a login step before the file is downloaded? I can redirect them to a login page, but I'm not sure how to trigger the download once they've logged in.

Correct, Apple have removed that feature. However, you can still see the artwork of the song that's playing; it's shown in the Now Playing indicator at the top of the iTunes window. It is small, but if you click on it, a larger version pops up.
Also, in Albums View, you can see the album artwork.

Similar Messages

  • Downloading BLOB from a table.

    Hello,
    First I want to say thatnks for such a great tool like HTMLDB.
    Question is:
    How do I download BLOB from a table. What I am trying to do is. I am uploading files to a default HTMLDB location (wwv_flow_file_objects$) and moving the records to different table (delete file from wwv_file_objects$). Then I would like to be able to download that blobs from a DB by following some link. And I need it to be secure, user have to authenticate to do it. I got to the point where I created process (before header) to download the file. But I am having hard time passing some variables to that process in URL. Can some one advice me on the best practice of doing it. And also if it is a right thing to use before header process to put my own header and start uploading blob in html db. The main reason I do not whant to use DAD for that is simple security issue and ability of storing of the BLOBs only in one table. I prefer to upload it to a temporary location and then move it to other table(s). Then I need to be able to retriev the files back from those tables without moving them around.
    Any help is greatly appriciated

    i think i see what you're asking, but i'll step through the pieces just to make sure i cover your issue:
    it sounds as if you have a procedure that successfully calls wpg_docload.download_file to get your blob out of your images table. for this explanation, lets just say your images table has the same table structure as wwv_flow_files created with something like...
    create table myfiles as select * from wwv_flow_files where rownum < 3;
    ....and let's say your download proc that passed the blob from your myfiles table to wpg_docload.download_file looked something like...
    create or replace procedure getmyfile(
    p_id in varchar2,
    p_mime_type in varchar2 default null)
    as
    l_lob blob;
    l_mimetype varchar2(48);
    l_mime_charset varchar2(255);
    l_filename varchar2(400);
    begin
    select mime_type, blob_content, filename, file_charset
    into l_mimetype, l_lob, l_filename, l_mime_charset
    from myfiles
    where id = p_id;
    if l_mime_charset is not null then
    owa_util.mime_header( l_mimetype, FALSE, l_mime_charset );
    else
    owa_util.mime_header( l_mimetype, FALSE );
    end if;
    htp.p('Content-length: ' || dbms_lob.getlength( l_lob ));
    htp.p('Content-Disposition: attachment; filename="' ||
    wwv_flow_utilities.escape_url( p_url => l_filename, p_url_charset => 'utf-8') || '"');
    owa_util.http_header_close;
    wpg_docload.download_file( l_lob );
    end;
    ...then it sounds as if this is where you start running into issues. to be able to call this procedure from the url, you'd have to grant execute on your getmyfile proc to the db user that your modplsql DAD uses to access your db. once that user was given access to run getmyfile, you could access your files in myfiles by calling a URL like...
    http://myserver.com/pls/mydad/myschema.getmyfile?p_id=1005529367869246
    ...where p_id is the unique id associated with your blob in getmyfiles (you could, of course, use whatever method you want to uniquely identify that file and adjust your select-into statement w/in your getmyfile procedure). so that's all fine and dandy, but it sounds as if you want users to have to authenticate into your html db application before they can access a blob in your images table. it also sounds as if you're on the right track to do so by putting your procedure call in a before_header html db process. you could quite easily call your getmyfile procedure in such an html db pl/sql before_header process with something like...
    begin
    getmyfile (p_id => 1008411584930314);
    end;
    ...which would cause your page to just show the blob associated with the id you passed to getmyfile. because you're now accessing your blob table through html db parsing as your application schema owner, you'd no longer need to grant execute on getmyfile to your modplsql DAD's db user. that eliminates most of the security hole to which you were referring. now that you're calling getmyfile from w/in an html db process, you can take advantage of all the other html db perks such as applying conditions and an authorization scheme to the html db process to really lock things down. finally, you asked about firing your process before_header versus other firing points. before_header is a good way to go, but if you really wanted to execute other procedural logic on your page before showing the blob (and you didn't want to implement that code as before_header processes that fire sequentially before your getmyfile call),you could just throw an htp.init in right before your getmyfile call to clear out your http buffer like so...
    begin
    htp.init;
    getmyfile (p_id => 1008411584930314);
    end;
    ...hope this helps,
    raj

  • Question about free down loading Mavericks. On checking Mavericks before downloading that there are no Bangla language in the list. I occasionally use Bangla in my present Mountain Lion. My concerns if I down load Mavericks then what will happen to Bangla

    Question about free downloading Mavericks. On checking Mavericks before downloading that there are no Bangla language in the list. I occasionally use Bangla in my present Mountain Lion. My concerns is, if I download Mavericks then what will happen to Bangla language in mountain lion? Samar Laha

    No reason to be embarassed. You are not alone.
    You will need an external drive. If you have a Time Machine drive without enough disk space you can create the clone there however it's advised that you keep your Time Machine and clone on separate drives. If the drive dies you loose both types of backup.
    Download and install the clone software. Everyone has their favorite. These are the two most common applications used. I prefer SuperDuper because of it's simplicity in setting up. It's also free for the first clone where with CCC you have to give a Credit Card then cancel if you do not want to keep.
    SuperDuper! http://www.shirt-pocket.com/
    CCC http://www.bombich.com/download.html
    Select your drive in the To popup. Click on Copy Now. That's it.
    Yes, it really is that simple....

  • ITunes 8 no longer asks for verification before downloading?  Why not?

    I recently downloaded and installed iTunes 8 on my new laptop, and one of the first things I noticed was that whenever I clicked to download a song, it happened immediately, without asking me if I was sure I wanted that particular song.
    I thought this was a good thing, until I slipped on my touchpad and ended up downloading a song I had absolutely no desire to have.
    So, my questions here are twofold--- 1, is there anyway to get rid of that song and get my money back? It's only a single song, but it's a single song that could be used elsewhere.
    And two: how do I toggle it so that iTunes asks for verification before downloading again? Apparently, I can't be trusted with my iTunes money otherwise...

    Check out the section named "How can I prevent accidental purchases?" in this page
    http://www.apple.com/support/itunes/store/buy_troubleshooting/
    edit - and you can reset the warnings, too
    http://support.apple.com/kb/HT1734
    Message was edited by: Katrina S.

  • I received LR 5 for Christmas but have not downloaded it yet on my computer. I have had LR 3 for about 4 years.  I am due to buy a new computer soon but need to know how many licenses/downloads I will get before downloading LR 5 on my current computer.  I

    I received LR 5 for Christmas but have not downloaded it yet on my computer. I have had LR 3 for about 4 years.  I am due to buy a new computer soon but need to know how many licenses/downloads I will get before downloading LR 5 on my current computer.  I may also purchase a laptop in the next year so that would require 3 licenses altogether (current iMac, future iMac, future macbook).

    You have one license.
    You can download and install it on an infinite number of computers, as long as it is only installed on two of your computers at any one time, and in use on only one computer at any given time.
    So in your case, current iMac, that's would mean its installed on one computer, no problem. Future iMac and future MacBook ... so if you uninstall from current iMac and install on Future iMac and future MacBook, it's now installed on two computers at a time, no problem, as long as you're not using Lightroom on both simultaneously. And if after that, you got two new computers and uninstalled Lightroom from the previous two, you're still good, it's only installed on two computers at any one time.

  • How do I delete photos from an external hard drive before downloading to my new Mac?

    I have a Seagate FreeAgent GoFlex external hard drive that has all my photos from my old computer on it  Because there are thousands, I want to delete a bunch of them before downloading onto my new Mac.  However, when I click on the photos, they say "locked."  Once I have the photos trimmed down, how do I get the to download to my Mac?

    Don't touch that one !
    I was hoping that in addition to that there should be another device listed, namely the USB External HD you've got plugged into the USB port. It should show up something like this:

  • I am having trouble installing.  downloaded Mavericks but it will not let me install to hard drive, says that is reserved for Time Machine.  I have an external hard drive, but disconnected that before download.

    I downloaded Mavericks but can't get past the install; it thinks my hard drive is reserved for Time Machine.  I have an external hard drive but dis-connected that before download.
    I have Time Machine turned off.

    Check to see if you have a file name Backups.backupdb on the disk drive.
    If the installer sees such a file it assumes that the disk drive is being used by Time Machine.
    Allan

  • How do I call browser Save As dialog box before downloading pdf files?

    How do I call browser Save As dialog box before downloading pdf files?
    Here's my favorite scenario:
    1. User clicks button
    2. Save As dialog displays
    3. User chooses location
    4. A set of PDF files download to that location OR a single zip file downloads
    Background:
    I want to ensure the user sees that files are being downloaded. I'm delivering content to users who may not be Web savvy.
    Concern:
    1. User has no clue how to find downloaded files or that files have even downloaded.
    2. I'd like to deliver the set as zip files. Not sure if self-opening zip files still exist.
    FYI:
    I'm using jQuery UI buttons. Not sure if that factors into response.

    Just for clarity, I'm not forcing a download. The user will click a button.
    Click a button or click a link, either way you're technically executing a script to force a download.
    I'm assuming that's the php file resident on the server.
    Yes but that's only part of it.  Once the contact form executes, another script is called up which opens the browser's download dialogue.
    Is there a php script for simply calling the Open/Save dialog box?
    Yes. 
    <?php
    /* This short script forces a file download.
       For simplicity, it's intended to be used for a single file.
       You can use multiple copies of this file (with unique names)
       with different variable values to use it with multiple files.
       Use of this script has a side-effect of hiding the location of the
       file on your server.
    // full server path to file to be downloaded (including filename)
    $Path2File = "path/to-file-on-server.zip";
    // the filename
    $theFileName = "name-of-file.zip";
    //the work gets done here
    header ("Cache-Control: must-revalidate, post-check=0, pre-check=0");
    header ("Content-Type: application/octet-stream");
    header ("Content-Length: " . filesize($Path2File));
    header ("Content-Disposition: attachment; filename=$theFileName");
    readfile($Path2File);
    ?>
    Name this file zip2download.php.
    Add a link to your HTML page:
    <a href="zip2download.php">Download Zip</a>
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists 
    http://alt-web.com/
    http://twitter.com/altweb
    http://alt-web.blogspot.com/

  • Downloading blob content from a custom table

    In our hosted Apex application, the following code from the Application Express Developer's Guide works great for allowing a user to download blob content from one of our custom tables via a download button. However, the code doesn't work on the Oracle Cloud because the "owa_util" package is no longer available. The code is as follows:
    CREATE OR REPLACE PROCEDURE download_my_file(p_file in number) AS
    v_mime VARCHAR2(48);
    v_length NUMBER;
    v_file_name VARCHAR2(2000);
    Lob_loc BLOB;
    BEGIN
    SELECT MIME_TYPE, BLOB_CONTENT, name,DBMS_LOB.GETLENGTH(blob_content)
    INTO v_mime,lob_loc,v_file_name,v_length
    FROM file_subjects
    WHERE id = p_file;
    -- set up HTTP header
    -- use an NVL around the mime type and
    -- if it is a null set it to application/octect
    -- application/octect may launch a download window from windows
    owa_util.mime_header( nvl(v_mime,'application/octet'), FALSE );
    -- set the size so the browser knows how much to download
    htp.p('Content-length: ' || v_length);
    -- the filename will be used by the browser if the users does a save as
    htp.p('Content-Disposition: attachment; filename="'||replace(replace(substr(v_file_name,instr(v_file_name,'/')+1),chr(10),null),chr(13),null)|| '"');
    -- close the headers
    owa_util.http_header_close;
    -- download the BLOB
    wpg_docload.download_file( Lob_loc );
    end download_my_file;
    Besides using web services, does anyone know of a way to do this? Is there a way to add access to the "owa_util" package in the cloud? I have also tried apex_util.get_blob_file_src but that is also unavailable in the Oracle Cloud.
    Thanks,
    Steve

    Following Joel's advice:
    The way I solved this was to split the code between two page processes and one application process. The download button first calls a page process to move the report data into a blob column and then calls another page process which is of "run application process" type. This calls the application level process where the download code, shown below, is called.
    Notice the following changes to the code from the one posted earlier (also from Joel)
    1) added sys.htp.init;
    2) "sys." to all htp, owa and wpg_docload calls
    3) added apex_application.stop_apex_engine; after the wpg_docload statement at the bottom of the script.
    Now the download button launches a "save as" dialog box and the report content is downloaded to the client.
    The code now looks like:
    CREATE OR REPLACE PROCEDURE download_my_file(p_file in number) AS
    v_mime VARCHAR2(48);
    v_length NUMBER;
    v_file_name VARCHAR2(2000);
    Lob_loc BLOB;
    BEGIN
    SELECT MIME_TYPE, BLOB_CONTENT, name,DBMS_LOB.GETLENGTH(blob_content)
    INTO v_mime,lob_loc,v_file_name,v_length
    FROM oehr_file_subject
    WHERE id = p_file;
    -- set up HTTP header
    -- use an NVL around the mime type and
    -- if it is a null set it to application/octect
    -- application/octect may launch a download window from windows
    sys.htp.init;
    sys.owa_util.mime_header( nvl(v_mime,'application/octet'), FALSE );
    -- set the size so the browser knows how much to download
    sys.htp.p('Content-length: ' || v_length);
    -- the filename will be used by the browser if the users does a save as
    sys. htp.p('Content-Disposition: attachment; filename="'||replace(replace(substr(v_file_name,instr(v_file_name,'/')+1),chr(10),null),chr(13),null)|| '"');
    -- close the headers
    sys.owa_util.http_header_close;
    -- download the BLOB
    sys.wpg_docload.download_file( Lob_loc );
    apex_application.stop_apex_engine;
    end download_my_file;
    Thanks Joel for your help.
    Steve

  • OK, as always I waited before downloading a new OS and I sure glad I did. On the APP store I sorted comments by most critical...and WHOA...what is Apple doing? No support for Logic 9, MS Office? Is Apple only trying to reach the iphone/iTouch crowd? HELP!

    OK, as always I waited before downloading a new OS and I'm sure glad I did. On the APP store I sorted comments by most critical...and WHOA...what is Apple doing? No support for Logic 9, MS Office? Is Apple only trying to reach the iphone/iTouch crowd? HELP! I was going to buy a new Mac pro & two 27" monitors but until I see some real problem addressing by Apple...I'll keep what I have and see how everything pans out. If anyone has any comments to ally my fears, I welcome them. I've been a devoted Mac user since 1993. 7500; G4; G5; and my latest Mac Pro...Where do I go? Again...HELP!

    Hi there,
    If you look through ALL the reviews, they are mainly good. I feel that Lion is an excellent upgrade, although not essential.
    There have been some issues with MS Office, but right now, it is up to Microsoft to issue a Lion compatible update, which will come in time. Saying this, MS Office has been working fine on my mac, it seems to be an isolated issue.
    Logic 9 seems like a strange issue. Again, an update looks to be coming soon, with Lion support.
    I do not feel that apple only focusing on the iPhone and iPad user base. There are many features carried along, but the machine can still be used for pro tools and use just as well. It still is a fantastic, reliable, fast, easy to use OS, which I have had very few problems with. Some additions you may not use, but they don't get in the way. You will love the new Exposé, Mission Control, as it is great for pro users who have many windows open at once, and the new spaces. You may however, never use Launchpad, but you don't have to, just drag it away from the dock!
    I really reccomend buying a mac with Lion, although if you are worried about bugs, wait a few months for the issues to be ironed out, and updates to be given. Because the update is so very cheap, I really think you can hardly go wrong. Try it out with your current mac, and if you like it, go ahead and buy your new ones.
    Lion is fantastic, albeit maybe rushed.
    Any other queries, just ask,
    Nathan

  • Trouble updating to iOS 5 on my wife's iPhone 4 connected to our iM, right before download finishes downloading iTunes comes back with the error message Software corrupted during download.  Please check network settings and try again later.

    Trouble updating to iOS 5 on my wife's iPhone 4 connected to our iM, right before download finishes downloading iTunes comes back with the error message Software corrupted during download.  Please check network settings and try again later, however there was no problem updating my iPhone to iOS 5 through iTunes connceted to my dell laptop on the same wireless network.  What gives?

    Try disabling your firewall; both on your PC and the external Firewall/Router.

  • Should I uninstall my previously installed version of Lightroom 4 before downloading LR5?

    I recently changed my single app membership of photoshop cc to the new Adobe offer of  lightroom 5 & photoshop cc and 20 g space on the cloud for 9.99.
    Should I uninstall my previously installed version of lightroom 4.3 before downloading lightroom 5?

    No.

  • I synced my iphone before downloading newest update and now I've lost my purchased ringtones.  How do I retrive them?

    I synced my Iphone before downloading the newest update and lost all my purchased ringtones.  How do I get them back and what do I do differently next time so it doesn't happen again?

    I'm having the same problem.  Mine do not show up in the purchased apps.  It seems like I had this problem before with a different upgrade & was able to resolve it by emailing the question to Apple directly.  Now I can't seem to find how to do that on their website or if it's even an option.  I guess we're just supposed to solve these problems ourselves.

  • Unable to open "Read Before Download" iTunes document

    I am trying to download the newest version of iTunes, but when I click the "Read before downloading itunes" document, nothing happens.  There is no icon in the window, nothing opens, and I am still unable to proceed to the next step.  Please help!

    Your best bet at getting help with this usage problem is probably going to be realized through posting in whichever prosduct forum this relates to.  If you need to find a specific product forum, the page linked below provides access to all forums Adobe provides - use the dropdown list if your product is not highlighted in the icon-ed links:
    http://forums.adobe.com/index.jspa

  • Unable to read information of application in app store. Still can download but unable to read the application infor before downloading

    Hi,
    Please help, unable to read information of application in app store. Still can download but unable to read the application infor before downloading.
    I'm using iphone4, ios 6

    Yes it sounds like your application could be corrupt.
    First I would make sure you don't have a program like backup software or virus protection trying to read the files when you try to start the application. If not,
    Do you have any backups or data exports? If so, I would try to restore them for the application
    If you do what EsbHelper suggests, you will have to recreate the database. I think he is missing a few steps.
    If you are going to try to recreate the application, you need to copy your outline rules files calc scripts and report scritps (.otl, CSC, REP and rul files) to s saved directory.
    If you delete the directory using the file system, you orphan things in the security file. It's better to try to do it from EAS.
    Once it has been deleted, and recreated from EAS, then copy back in the objects. You will have everything but data and security. those will have to be recreated.
    As aI said first, the best way to do this is from some sort of backup. othersiwe it can get a bit messy

Maybe you are looking for

  • OneNote prevents my computer from going to sleep when I have a shared notebook open. Suggestions?

    Hello, The issue is that my computer will not go to sleep if I have OneNote opened with my shared notebook loaded. Background: I'm currently running Windows 8 Pro on a desktop machine with Office 2010 Home and Student installed. I log into the OS und

  • How to implement static tables in XI Mapping

    I need to use a static table for lookup purposes in an XI mapping. I am using Java Mapping. -- This is a small  5 columns - 264 rows table, which is unlikely to be changed.

  • New iPod started to load music, now pc won't recognize it.

    I just bought the video ipod the other day.I hooked it up to my computer and it started to load music to the ipod right away. I had to leave so I ejected the ipod from itunes and shut the computer off. The next day I continued to download songs/video

  • HTTP 503 after enabling OWSM policy on an ADF BC Service

    I deployed an ADF BC Service to soa_server1 and tested (no problem). But when I added an OWSM policy, I could no longer access the service, nor its WSDL contract. Here's the steps: 1. Deploy and test your ADF BC Service with no policy 2. In EM, go to

  • BPM Time out Errors

    Dear All, The some of the BPM Scenarios are ending in timeout error. I think, i have to increase the time out parameters. I welcome your suggestions. If I increase the time out parameters, what could be the impact of that and what is the SAP Recomand