How can I open different binary files from BLOB column ?

If we store some type of binary file (XLS, DOC, PDF, EML and so on, not only pictures) in BLOB column how can I show the different contents? We use designer and forms 9i with PL/SQL.
How can I copy the files from BLOB to file in a directory or how can I pass BLOB's content to the proper application directly to open it?

The mime type is just a string as explained above (e.g. application/pdf...). There are lot of samples here and on metalink.
E.g. add a column mime_type varchar(30) to your blob table. Create a procedure similar to the following:
PROCEDURE getblob
(P_FILE IN VARCHAR2
IS
vblob blob;
vmime_type myblobs.mime_type%type;
length number;
begin
     select document, mime_type into vblob,vmime_type from myblobs where docname = p_file;
     length := dbms_lob.getlength(vblob);
     if length = 0 or vblob is null then
     htp.p('Document not available yet.');
     else
     owa_util.mime_header(vmime_type);
     htp.p('Content-Length: ' || dbms_lob.getlength(vblob));
     owa_util.http_header_close;
     wpg_docload.download_file(vblob);                
     end if;
exception
     when others then
     htp.p(sqlerrm);
END;
Create a DAD on your application server (refer to documentation on how to create a DAD).
Display the blob from forms (e.g. on a when-button-pressed trigger):
web.show_document('http://myserver:port/DAD/getblob?p_file=myfilename','_blank');
For storing blobs in a directory on your db server take a look at the dbms_lob package.
For storing blobs in a directory on your app server take a look at WebUtil available on OTN.
HTH
Gerald Krieger

Similar Messages

  • How can I open OS 9 files from my old computer on my 2012 MacBook Pro?

    How can I open OS 9 files from my old computer and use them on my 2012 MacBook Pro?
    David

    GriffinParkCondos wrote:
    How can I open OS 9 files from my old computer and use them on my 2012 MacBook Pro?
    David
    What type of files?
    Pete

  • How can I open a PDF file from a swf?

    Hi all,
    I created presentation using Flash cs5, and I want to make a link that opens an external PDF file. I have done this with past version of Flash, but how can I do it using cs5?
    Many thanks in advance,
    HDsuperglide

    Sorry, just linking like before doesn't seem to work. When you select the link button all you get is a search browser looking for the pdf file you are trying to open.
    This is what I was told to use.
    on (release)
    GetURL("name of pdf.pdf","_blank") ;
    Does not work on CS5
    Anyone have a real thoughts.

  • I can't open the RAW files from my new Nikon D4s camera in photoshop? How do I download the latest software for RAW files?

    I can't open the RAW files from my new Nikon D4s camera in photoshop? How do I download the latest software for RAW files? Cheers!

    What version of Photoshop are you running?  You will need at CS5, CS6, CC or CC2014.  Each version needs a different ACR-plug-in to open files from that camera.
    If you are on CS4 or earlier, you'll need to upgrade—or, in the alternative; look for, download, instal, launch and run the free, stand-alone DNG Converter 8.6 on each file of raw NEF files to convert them to raw DNGs first so you can open them in your version of Photoshop and ACR plug-in higher than 2.4.

  • How can I save adobe reader file from gmail into my adobe reader app?? i would like to open one file in place where I'm not able to access internet and for that reason i would like to save it. is that even possible?

    How can i save adobe reader file from my gmail into my adobe reader application. or is there any other way i can save it into my phone so I'm able to open in any situation not just from my gmail???

    Long hold on the document in mail and it should give you the open in... option, select adobe reader and the file is now saved locally for viewing even while offline.

  • I have just bought a Panasonic Lumix compact camera. Aperture and Preview can't open the RAW files from this camera. Panasonic recommend downloading 'SYLKPIX Developer Studio SE' to save RAW file formats.How can Aperture and Preview read the files?

    I have just bought a Panasonic Lumix compact camera. Aperture and Preview can't open the RAW files from this camera. Panasonic recommend downloading 'SYLKPIX Developer Studio SE' to save RAW file formats.How can Aperture and Preview read the files?

    Either use 'SYLKPIX Developer Studio SE' to develope the RAW files and to save them in another lossless format like TIFF, or try if Adobe's free DNG Coverter can convert your Lumix RAW files to dng. Then import the dngs. This way, your files will still be RAW files.  This works (most times) for my Lumix FZ28.
    Adobe DNG Converter 8.3  http://www.adobe.com/support/downloads/detail.jsp?ftpID=5695

  • I can't open adobe ideas files from ps touch via the cloud. How do I do this?

    I can't open adobe ideas files from ps touch via the cloud. How do I do this?

    Oh good lord.  I can't believe I spent so much time on this and it's right there under Google.  Thank you so much!  Happy Thanksgiving!
    Laura
    Check me out @ http://www.lauramacky.com/

  • How can I combine different pdf files in one?

    How can I combine different pdf files in one?

    Sara,
    It is not working. I wish to decline in having the pdf pack. How can I give up this purchase? I definitely do not want the Adobe PDF Pack anymore.
    Who do I have to contact or what do I need to do to cancel this purchase?
    Flávia
    Enviado do Email do Windows
    De: Sara.Forsberg
    Enviado: terça-feira, 6 de maio de 2014 14:59
    Para: Eu
    How can I combine different pdf files in one?
    created by Sara.Forsberg in Adobe PDF Pack - View the full discussion 
    Hi Flávia,
    Adobe PDF Pack is an online subscription--it definitely allows you to combine several files into one PDF file. For more information about PDF Pack, see Reliably Create PDFs, Convert PDFs, & Merge PDFs Online | Adobe PDF Pack. If you don't have the full version of Acrobat, this is a great solution for combining PDF files.
    However, if you're using Acrobat (not Adobe Reader), you combine files by following these steps:
    Open a PDF file that you want to add pages to.
    Click the Pages pane on the Tools panel (on the right side of the application).
    Click Insert From File, and choose the file that you want to combine with the PDF that you opened in step 1.
    Make any changes necessary in the Insert Pages dialog box--these settings determine where the new file will be inserted.
    Click OK.
    Please let me know how it goes.
    Best,
    Sara
    Please note that the Adobe Forums do not accept email attachments. If you want to embed a screen image in your message please visit the thread in the forum to embed the image at https://forums.adobe.com/message/6358990#6358990
    Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page:
    To unsubscribe from this thread, please visit the message page at . In the Actions box on the right, click the Stop Email Notifications link.
    Start a new discussion in Adobe PDF Pack by email or at Adobe Community
    For more information about maintaining your forum email notifications please go to http://forums.adobe.com/thread/416458?tstart=0.

  • How can I transfer a sound file from my "Voice Memos" app on my iPhone to my iPad?

    How can I transfer a sound file from my "Voice Memos" app on my iPhone to my iPad?

    In iTunes with your iPhone connected, click on the iPhone device, select the Apps tab, scroll down to the File Sharing section and pick an app that plays Quicktimes ("Files Connect" works in this example, but I'm open to suggestions of better apps for playing transferred Quicktimes) and drag your Quicktime from Finder to the Documents pane for the File Sharing app.   Once the file transfer is complete, go to the app on your iPhone to play the Quicktime.

  • How can I open a cc2014 file in my cs6 version of Indesign ?

    How can I open a cc2014 file in my cs6 version of Indesign ?
    I have several files that has been saved in a cc2014 version and I can't open them in my CS6 version of Indesign.
    I don t have access to anyone who have the cc 2014 version to convert the file.
    How can I do it from my cs6 version?
    THANKS!

    You can't do it from CS6.
    You have to export to IDML from InDesign CC2014 (or whatever the version it was created in) and then open the IDML in the earlier versoin of InDesign.
    All explained in the FAQ on the main forum page.

  • I have converted a pdf to word. How can I access the Word file from my online account?

    I have converted a pdf to word. How can I access the Word file from my online account? When it says 'download the converted file' I choose a location on my PC and click, but nothing happens. It seems that it can only save the converted file to my online account. I went to my online account but I see no way to look for the file

    Hey Fabrizio,
    You might need to sign up at "https://cloud.acrobat.com/exportpdf" using your Adobe ID credentials to convert your PDF file to Word.
    Do you get the 'download' prompt?
    Also, you can find the converted files by clicking at the 'Files' tab. 
    Please try the same using a different browser and check.
    Hope to hear from you.
    Regards,
    Anubha

  • I have a new IMAC with a Maverick platform (I can update to Yosemite). I did all graphics on a G5 Power PC (very old), in Freehand (very old)... How can I open old Freehand files on this new Mac? Can I still open and work in Freehand on this new Mac?

    I have a new IMAC with a Maverick platform (I can update to Yosemite). I did all graphics on a G5 Power PC (very old), in Freehand (very old)...
    How can I open old Freehand files on this new Mac?
    Can I still open and work in Freehand on this new Mac?

    Let me see if I've gotten this right! You want to remove an account from BOTH machines? Do this for your new machine first, then for the other.
    Click the Apple logo on the top left of the screen, System Preferences, Users and Groups (under Systems), unlock the lock in the window if its locked (you need to know the password), select the user that you wish to remove, and click the - sign next to the + sign for Login options. A window will pop up with some options. Select Delete this user and securely, and click 'Delete user'.
    After this, do an update from the App Store.
    Thats all there is to it.
    For the other machine repeat the process except for one thing. Before you delete the user in this case YOU, you will have to give Administrator priviledges to your son bu checking the box 'Allow user to administer this computer'.
    Do NOT do anything from Finder ... if you dont know how to fix the consequences of the problems caused.
    There is no need to unauthorize your iTunes account on your new machine. Do it on the old machine though.

  • How do I open a .m4a file from Mail into Music app?

    How do I open a .m4a file from Mail into Music app?
    I mixed down a song from my band's latest session and saved it as a .m4a file (Apple AAC Audio format) and I e-mailed it to myself. Then on my phone I opened the e-mail message in Mail and held a long-press down on the attached .m4a file. But I do not see the option to open it up into the Music app. It only gives me the options of iMovie, WeChat, and USB Disk. Why would I want to open it up in those? It's a song. It should open up into the Music app so I can play it. What the heck?
    Please don't tell me that I have to use iTunes to do this and sync my phone to my computer, because I *do not* want to add these songs to my iTunes library. They are *practice session tracks* that I want to listen to then delete later when we have new versions.
    If there is no way to open them into the Music app, then is there a music player app I can get somewhere that will let me simply save audio files from Mail into it, and use it as a player for those songs? That's all I want to do.
    The only reasonable workaround I have found so far is to save them as .mp4 audio files, which the iPhone thinks are movies, so it lets me save them into the camera roll as Videos.
    Voice Memos would be acceptable as a place for them to be able to open into as well, but of course that's also not on the options list. Sigh.

    TJBUSMC1973 wrote:
    You'll have to use iTunes, add it to your iTunes library, then sync it.  You can always delete it from your iTunes library later.
    Why is that such an issue for you?
    Why do people insist on replying to threads without even reading the original post? I explained it there already!
    I don't have to use iTunes to save an image from Mail into my camera roll, or to save a PDF from Mail into iBooks. Why should I have to use iTunes to save a music file into Music app?
    But I'll repeat it since evidently you can't be asked to read the original posts before spamming a thread with questions that have already been answered. I *do not* want to add these songs to my iTunes library.
    My iTunes library is a sacred temple into which I only allow to enter the very best and highest-fidelity musical recordings of all time. I refuse to sully and soil my iTunes library with crappy practice mixdowns from my band, etc.
    Want to know why? Because I like to be able to hit "shuffle all" on my iTunes library and know that something that will improve my existence will emanate forth from this amazing device that I have invested thousands of dollars into (yes, I count my cell phone plan amongst the expenses).
    I shall not have the crappy burner mixdown tracks from my band's practice sessions come up every five songs (we generate TONS of these... literally hundreds... and they are all high-bitrate .m4a tracks in the 10-15 MB range). I let iTunes keep my music folder organized on my computer. It makes copies of everything being placed into it, and I don't want 159 GB of copies of burner tracks hiding like roaches throughout my temple. We don't name these files anything sensible (in fact the guy who mixes them down intentionally gives them random weird names) and they lack metadata. So there's no easy way to delete them back out of iTunes once they're in there. It's a huge pain; I used to do it, but I swore it off years ago and *I'm never going back!*
    The REAL question is, why does Apple force me to have to use iTunes—the most convoluted, kludgy piece of bloatware ever to issue forth from Cupertino—to do something as simple as adding an MP3 from Mail into the Music app on my phone? Why can't there be something simple—something equivalent to the Camera Roll inside the Music app, not only for the files I want to save from Mail, but also for my Garage Band exports, not to mention all the exports from all the various synthesizer, drum machine, and recording apps I use on a daily basis in iOS?
    It would be awfully nice to be able to play the songs I've recorded right in the Music app without having to go through the rigamarole of adding those files to my iTunes library, tagging them with metadata, syncing, etc. etc. yadda yadda yadda—just to delete them again as soon as I've synced so they don't pollute my computer's iTunes library!
    I bought Apple for ease of use, not so I would be forced to jump through a million hoops just do to something that ought to take one tap to accomplish!  That's ridiculous!

  • Can't open web pdf files from my Reader DC because my IMac wants a completed license agreement to use Reader and I never saw that page during installation.

    Can't open web pdf files from my newly installed Reader DC because my IMac wants a completed license to use agreement to Reader, and I never saw that page during installation.  How do I get past this?

    You need to accept the EULA on first launch of the Reader DC application.
    Go to the Applications folder and launch Adobe Acrobat Reader DC. 
    This will bring up the EULA.
    Select the "Agree" button if you agree with the terms
    Assuming you selected the "Agree" button, Reader DC should open.
    You should now be able to open PDF files in your web browser.

  • How can I open my .cwk files on my new iMac OS 10.8?

    How can I open my .cwk files on my new iMac OS 10.8?

    Tom in London wrote:
    Alas, you can't.
    You can open nearly all of them. Pages will open AppleWorks 6 Word Processing documents but not AppleWorks 5 ones.
    Word Processing documents can be opened directly only in Pages.
    Draw Documents can be opened directly only in EazyDraw (the more expensive version from their website, not the cheaper one from the Mac App Store, and you will need v4.0 'Retro' not the most recent version) or Intaglio (though this appears not to be able to handle very complex drawings). (It's possible to copy Draw documents into a Word Processing document in order to open them in Pages, but you need AppleWorks to do this in the first place.)
    Spreadsheets can be opened directly only in Numbers.
    Presentations can be opened directly only in Keynote.
    Nothing will open AppleWorks databases or Paint documents: the only way to access them is to open them in AppleWorks and export.
    This seven-page article examines migrating from AppleWorks in some detail:
    http://www.wilmut.webspace.virginmedia.com/notes/aw/page1.html
    Cheers
    Pete

Maybe you are looking for