Image file of reading BLOB and the opening on the side customer

Dear all,
I have a table of database with a BLOB data type field and there are files TIFF stored in this column.

I want to open this file on desktop of the client as Tiff soon he call a PL/SQL procedure?

How built-ins or methods, I can use?

Thanks in advance!

Kind regards
Ali

As an example of a PL/SQL procedure image file, the following procedure for web enabled (called via Apache and using the module of Apache Oracle mod_plsql ) returns an image.

create or replace procedure TIFFimage( fileName varchar2 ) is
  b blob;
begin
  -- read the TIFF blob from image table
  select p.file into b from my_tiff_files p where p.file_name = fileName;

  -- create the HTTP response header for the browser
  OWA_UTIL.mime_header( 'image/tiff', FALSE );
  HTP.p( 'Content-Disposition: attachment; filename='||fileName );
  HTP.p( 'Content-Length: ' || DBMS_LOB.getlength(b) );
  OWA_UTIL.http_header_close;

  -- stream the content using Oracle's Web Procedural Gateway interface
  WPG_DOCLOAD.download_file( b );
end;

In this case, the customer will be a web browser. It will use the URL will look something like this:

http://my-web-server.my-domain.com/pls/TIFFimage?fileName=PrettyPicture.tiff

No need for intermediate files. PL/SQL procedure creates a HTTP from MIME response that contains the image - something that the client (web browser in this case) understand and fully support.

The same principle applies to any other type of client - he called SQL or PL/SQL - it gets a response - this process / makes this answer.

Tags: Database

Similar Questions

  • From El Capitan, a DMG image file is read only

    I have a Seagate external drive to Mac OS extended (journaled) format with 2 partitions. On a partition of the disk, I have an image DMG file which had read and write permissions to the title of Yosemite. Now with El Capitan, the file is read-only when I open it. But what is strange, is that when I do a "Get Info" on the queue image before I open it, it says I've read & write permission.  Then when I opened the image file, Get-Info gives me conflicting information:

    (1) it is said: "read only".

    (2) in the table, it is said to "user (me)" that permissions are "read & write".

    If I try to change the permissions (after unlocking the 'Get Info' dialog box), everything is gray and I can't make changes.

    I thought the problem was similar to:

    Re: external hard drive read it now after update of el capitan

    So I followed the 'solution' listed (used disk utility > first aid), no effect.

    I also downloaded the driver Seagate-fix, but this has no effect (which I expected since mine cannot be an NTFS problem...)

    Any help appreciated.

    JIm

    How is the Seagate HDD formatted?

    If she is still formatted as NTFS then it is very likely that your third party necessary for writing to NTFS software is obsolete. With the El Capitan, upgrading a number of packages NTFS should be updated in order to be able to write the formatted NTFS disks.

  • How to batch, fusion of the 3 different images? I use molten and the total of 240 different images.

    How to batch, fusion of the 3 different images? I use molten and the total of 240 different images.
    is there any script for it?

    like photoshop, batch processing is unable to identify 3 different images and merge these three images. Instead, it performs the action on a single image.

    Thank you

    under the direction

    // 2015, use it at your own risk;
    #target photoshop
    var theFolder = Folder.selectDialog ("select folder");
    if (theFolder) {
    ////////////////////////////////////
    var theFolders = theFolder.getFiles(getFolders);
    for (var a = 0; a < theFolders.length; a++) {
    var theFiles = Folder(theFolders[a]).getFiles(/\.(jpg|tif|eps|psd)$/i);
    ////////////////////////////////////
    // open first image;
    theFile = app.open(theFiles[0]);
    var basename = theFile.name.match(/(.*)\.[^\.]+$/)[1];
    // place other files;
    for (var m = 1; m < theFiles.length; m++) {
    placeScaleRotateFile (theFiles[m], 0, 0, 100, 100, 0, false);
    // set to screen;
    theFile.activeLayer.blendMode = BlendMode.SCREEN
    };
    // save as psd;
    psdOpts = new PhotoshopSaveOptions();
    psdOpts.embedColorProfile = true;
    psdOpts.alphaChannels = true;
    psdOpts.layers = true;
    psdOpts.spotColors = true;
    theFile.saveAs((new File(theFolder+'/'+basename+".psd")),psdOpts,false);
    };
    };
    ////////////////////////////////////
    ////// place //////
    function placeScaleRotateFile (file, xOffset, yOffset, theXScale, theYScale, theAngle, linked) {
    // =======================================================
    var idPlc = charIDToTypeID( "Plc " );
        var desc5 = new ActionDescriptor();
        var idnull = charIDToTypeID( "null" );
        desc5.putPath( idnull, new File( file ) );
        var idFTcs = charIDToTypeID( "FTcs" );
        var idQCSt = charIDToTypeID( "QCSt" );
        var idQcsa = charIDToTypeID( "Qcsa" );
        desc5.putEnumerated( idFTcs, idQCSt, idQcsa );
        var idOfst = charIDToTypeID( "Ofst" );
            var desc6 = new ActionDescriptor();
            var idHrzn = charIDToTypeID( "Hrzn" );
            var idPxl = charIDToTypeID( "#Pxl" );
            desc6.putUnitDouble( idHrzn, idPxl, xOffset );
            var idVrtc = charIDToTypeID( "Vrtc" );
            var idPxl = charIDToTypeID( "#Pxl" );
            desc6.putUnitDouble( idVrtc, idPxl, yOffset );
        var idOfst = charIDToTypeID( "Ofst" );
        desc5.putObject( idOfst, idOfst, desc6 );
        var idWdth = charIDToTypeID( "Wdth" );
        var idPrc = charIDToTypeID( "#Prc" );
        desc5.putUnitDouble( idWdth, idPrc, theYScale );
        var idHght = charIDToTypeID( "Hght" );
        var idPrc = charIDToTypeID( "#Prc" );
        desc5.putUnitDouble( idHght, idPrc, theXScale );
        var idAngl = charIDToTypeID( "Angl" );
        var idAng = charIDToTypeID( "#Ang" );
        desc5.putUnitDouble( idAngl, idAng,theAngle );
    if (linked == true) {
        var idLnkd = charIDToTypeID( "Lnkd" );
        desc5.putBoolean( idLnkd, true );
      };
    executeAction( idPlc, desc5, DialogModes.NO );
    // get layerid;
    var ref = new ActionReference();
    ref.putProperty (stringIDToTypeID ("property"), stringIDToTypeID ("layerID"));
    ref.putEnumerated( charIDToTypeID("Lyr "), charIDToTypeID("Ordn"), charIDToTypeID("Trgt") );
    var layerDesc = executeActionGet(ref);
    var layerID = layerDesc.getInteger (stringIDToTypeID ("layerID"));
    // =======================================================
    return [app.activeDocument.activeLayer, layerID];
    };
    ////// get folders //////
    function getFolders (theObj) {
    if (theObj.constructor == Folder) {return true}
    };
    
  • I am a user of PS (CS6) for a long time and come to THE (CC). I placed a vector image purchased from Amnesty International and the need to get rid of the white background... make transparent but have no idea how to do that.  I tried to do in PS and then s

    I am a user of PS (CS6) for a long time and come to THE (CC). I placed a vector image purchased from Amnesty International and the need to get rid of the white background... make transparent but have no idea how to do that.  I tried to do in PS and then save and carry firearms but cannot save to the PS as a vector file (or AI) and the quality is greatly reduced.  How can I do this in artificial intelligence?

    Are you sure that it is a vector file?

    If Yes: embed him then comes white and select Remove.

    If not: Photoshop lets you remove white.

  • I have some important files on my desktop and the fear that one of my employees has copied that data on its USB...?

    I have some important files on my desktop and the fear that one of my employees has copied that data on its USB, is it possible to check if there was such a transfer, such as a history of copy, or something?

    In my view, the above question sums up all, I'm not that computer savvy, so please give detail instructions, and if there is way to secure these files are copied or sent by electronic mail, please let me know, if I can avoid these problems in the future. Thank you.

    You may not know a posteriori if this transfer took place. To prevent it in the future, lock your device by pressing the Windows key + L before you leave your office and keep your secret password.

  • in acrobat pro DC, I can't re - save files after making changes and the number appear in what looks like Arabic?

    in acrobat pro DC, I can't re - save files after making changes and the number appear in what looks like Arabic?, I run repair and rebooted the computer several times now...

    Ann Chinsang wrote:

    I can not re - save files

    Why? What is the procedure that you follow? What is the error message?

    Ann Chinsang wrote:

    number appear in what looks like the Arabic

    -What are you talking about? When you try to change the numbers in my document; it evolves in Arabic numerals

  • I have 9, 1 pages in PDF files that are accessible and the need to combine them into 1 PDF file.  I tried adding, adding and the combine process of PDF files. The file created does not take my changes. The file created is partially accessible, but I have

    I have 9, 1 pages in PDF files that are accessible and the need to combine them into 1 PDF file.  I tried adding, adding and the combine process of PDF files. The file created does not take my changes. The file created is partially accessible, but I have to re - the problems that I had fixed in the unique files. I need suggestions on what else can be done, if any. Using Acrobat pro XI.

    By habit, I tend to combine PDF files in the Page pane by right-clicking thumbnails then 'Insert of Pages'-> 'From File'. For me, this preserves the tags of these two documents, although the tags may have to be moved to the correct location (if I remember correctly the tags for inserted pages are put at the end of the tag structure, regardless of where the pages are inserted), if I put the tags in the document to insert into a container as a Section tag It makes the process easier. Travel set of tags in the right place is the only re-fixing that I remember having to do. What behavior you encounter?

    a 'C' student

  • Why can't I open image files with. Extention of the PSP?

    I can't open an image file with the name extension. PSP

    http://www.FileInfo.com/extension/PSP

    Program (s) that open the psp files
    Windows Corel PaintShop Photo Pro X 3  
    CorelDRAW Graphics Suite X 5  
    ACD Systems Canvas 11  
    ACDSee 12 Photo Manager (PSP v. 5 and 6)

    Read the info above on the programs that open .psp files.

    See you soon.

    Mick Murphy - Microsoft partner

  • Converted files Adobe Reader programs and does not open

    Whenever I have install Adobe Reader all my programs turn into files Adobe Reader and does not open.  If I uninstall the program, they return.  How can I fix it?

    Hello KaitieFalk,

    Please see the following article.

    Article KB 950505 - when you run an .exe on a Windows Vista-based or Windows 7 computer file, the file may start another program
    http://support.Microsoft.com/kb/950505

    Please let us know if that helps.

    Sincerely,

    Marilyn
    Microsoft Answers Support Engineer
    Visit our Microsoft answers feedback Forum and let us know what you think

  • I WANT TO FIX THE PROBLEM PDF FILES ADOBE READER ICAN CAN'T OPEN MY FILES.

    I'M NOT AN IT EXPERT, JUST AN ORDINARY USER, SO PLEASE KEEP ANSWER SIMPLE. HELP WILL BE APPRECIATED.

    Do a system restore to when it worked:

    Restore point:

    http://www.howtogeek.com/HOWTO/Windows-Vista/using-Windows-Vista-system-restore/

    Do Safe Mode system restore, if it is impossible to do in Normal Mode.

    Try typing F8 at startup and in the list of Boot selections, select Mode safe using ARROW top to go there > and then press ENTER.

    Try a restore of the system once, to choose a Restore Point prior to your problem...

    Click Start > programs > Accessories > system tools > system restore > choose another time > next > etc.

    http://www.windowsvistauserguide.com/system_restore.htm

    Read the above for a very good graph shows how backward more than 5 days in the System Restore Points by checking the correct box.

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

    http://get.Adobe.com/reader/

    Download the latest Adobe Reader.

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

    How to set file Associations:

    http://articles.TechRepublic.com.com/5100-10878_11-6172036.html

    How do I... Change file extension associations in Windows Vista?

    Make sure that the file Associations are correctly defined.

    See you soon.

    Mick Murphy - Microsoft partner

  • When you delete a folder of photos empty, all the image files have been deleted and are not in the Recycle Bin

    I've highlighted that an empty images folder and you press the button Delete. Each photo file (and the content) in the library has been removed. Basket is empty

    * original title - all images disappeared in cyberspace *.

    Sorry if I look like I ask the same thing again and again I REALLY don't want to hear it, but just beyond bizarre. There is no reason crap for photos to just upward and vanish.

    OK how bout this. Assuming the photo library you meant the images library, like the one on the little box in the file Explorer, users, go to start, computer, drive C, and right-click on my pictures, and then select Properties. If this was not the 'official' picture library, go to the folder view these photos and go to properties it there instead.

    Now on the shortcut menu, click previous versions, wait list to fill out, when it does, click one of the folders that was before the photos have disappeared and select restore.

    Essentially, this will make the pictures folder how was the date that you have chosen your photos, then all must return.

  • If I copy and paste an image file (jpeg, for example) in the folder of photos on my Mac, is it automatically imported in the Photos app?

    If I copy & paste an image file (jpeg, for example) that I downloaded from the internet to the folder of photos on my Mac, is it automatically imported in the Photos app? Note that the picture on my Mac folder is the folder that contains the file "Library.photoslibrary Photos".

    N ° you must actively import photos with the file-> import... command.

    Given that you can delete the file as soon as it is imported - if you have the copy in the library checked preferences - I use a folder called 'imports' on my desk to separate files that I'm importing. Once they are imported files into the import folder can trash.

  • Conversion of a structure of entire folder of images in jpeg format, intact, and the folder structure.

    Hello!

    I have a fairly large folder structure composed of images dating all the way back to when I got my first digital camera in 98.

    The images captured by a variety of cameras over the years and also includes the types of images processed with the software. It's a mix of Holy of almost 1.5 tera-bytes of CR2, ARW, JPEG, PSD, PSB, TIFF, HDR and probably more I forgot. However, all formats can be read by photoshop/bridge. The structure of the file is/YYYYMMDD/file.ext. File conversion, per-folder using the standard bridge/photoshop Image processor feature is not really an option, given the size of the structure.

    What I try to do is to convert the entire structure in .jpeg, both for purposes of backup and also to be able to view all images on devices other than those from my computer. It is important that the raw files are converted with their respecive .xmp adjustment applied.

    Is there a possible way to do this? I have lightroom, but if she can do it I will buy it. Maybe other management image, like ACDSee, applications can do that?

    If anyone knows of any applications or scripts (photoshop) that can do this, or have any advice for me it's * VERY * appreciated!

    You can try...

    Pro image processor. Photoshop CS5 is required.

    http://blogs.Adobe.com/jnack/2011/05/new-image-processor-Pro-script-for-CS5.html

    or

    Image converter. Photoshop CS3 or above.

    http://www.scriptsrus.TalkTalk.NET/pp.htm

  • Satellite C650 - error reading disk and the recovery disk does not work

    Hello

    I have a toshiba Satellite C650, who has recently developed with a disc read error. I want to access the command prompt to try some possible solutions I've read on the internet.

    I made a Windows 7 recovery disk using my other acer laptop which has also installed Windows 7 64-bit. When I use the recovery disk and it loaded the files etc it evokes just a black screen and the cursor.

    Does anyone have any ideas as to why this is happening?
    I tried to start my computer acer laptop from the recovery disk and it worked fine.

    As is - this does anyone have suggestions as to why I get the message "disk read error - press ctrl, alt and delete to restart?

    Any help would be appreciated, thanks.

    On this virtual path, it is not easy to offer the exact diagnosis, but of course, there must be a problem with the HARD drive. Can you get a second one for test purposes and exchange it. Just to be sure if the HDD is troublemaker.

    But there is something else:
    > I made a Windows 7 recovery disk using my other computer acer laptop...
    Sorry, but I don t understand this. Can you please explain what you did exactly?

  • Registered suddenly image files shows no not in the Vista Explorer

    All of a sudden when I rework an image in irfanview or MS Paint (the only two I've tried) I go back to the location of the file and I do not see (desktop, folders, any).  If I go on internet to send a file to an e-mail, it is, but going back directly on the desktop shows me nothing, as if the files do not exist.  Even a search does not bring their.  Help! @!

    All of a sudden when I rework an image in irfanview or MS Paint (the only two I've tried) I go back to the location of the file and I do not see (desktop, folders, any).  If I go on internet to send a file to an e-mail, it is, but going back directly on the desktop shows me nothing, as if the files do not exist.  Even a search does not bring their.  Help! @!

    =====================================
    Hmmm... just a thought... is - it possible that photos in
    question are saved in your Temporary Internet Files folder?

    Windows Vista-
    View temporary Internet files
    http://Windows.Microsoft.com/en-us/Windows-Vista/view-temporary-Internet-files

    Path:
    C:\Users\\AppData\Local\Microsoft\Windows\Temporary Internet Files\

    If you do not find the Temporary Internet Files folder you
    may need to change the setting to "Show hidden files":

    Windows Vista-
    Show hidden files
    http://Windows.Microsoft.com/en-us/Windows-Vista/Show-hidden-files John Inzer - MS - MVP - Digital Media Experience - Notice_This is not tech support_I'm volunteer - Solutions that work for me may not work for you - * proceed at your own risk *.

Maybe you are looking for