Extracting Tiff files stored into Oracle 8.1.7 as Long Raw

I have around 1 million tiff images stored into Oracle 8.1.7. The field type is Long Raw. The frontend used to store images into the database is SQL Windows 5 from Gupta Corporation, now called Centura. I guess the images are stored in binary format in the database. I need to extract these images at the OS level. Each Rec_no contains one tiff file in database. The table structure is as follows:
Rec_no Number(8)
image Long Raw
My goal is to convert these tiff files to JPG files so that my web application written in ASP.Net can use them and show in IE. The files are required to be converted to jpg as IE does not have native support for showing the tiff files(I hope I am not wrong in this assumption). Can i convert these tiffs to jpg directly inside the oracle database??? or i need to extract them first, save at OS level, convert them and then write back to the database?? Pls give code examples if possible. I plan to migrate the database also from 8i to 10g shortly and this is one of the migration taks. Thanks in advance...
Ravinder Hooda

I have around 1 million tiff images stored into Oracle 8.1.7. The field type is Long Raw. The frontend used to store images into the database is SQL Windows 5 from Gupta Corporation, now called Centura. I guess the images are stored in binary format in the database. I need to extract these images at the OS level. Each Rec_no contains one tiff file in database. The table structure is as follows:
Rec_no Number(8)
image Long Raw
My goal is to convert these tiff files to JPG files so that my web application written in ASP.Net can use them and show in IE. The files are required to be converted to jpg as IE does not have native support for showing the tiff files(I hope I am not wrong in this assumption). Can i convert these tiffs to jpg directly inside the oracle database??? or i need to extract them first, save at OS level, convert them and then write back to the database?? Pls give code examples if possible. I plan to migrate the database also from 8i to 10g shortly and this is one of the migration taks. Thanks in advance...
Ravinder Hooda

Similar Messages

  • Reading an XML file stored in Oracle

    Is it possible to read an xml file stored in Oracle via Oracle methods?

    If by "read" you mean "read as text", then you can just select the document as a CLOB and return it.
    If by "read" you mean "read and parse", then you can use the Oracle XML Parser for PL/SQL to parse the CLOB into a DOM structure.
    My Building Oracle XML Applications book has lots of examples of doing this, but especially in chapter 5, "Processing XML with PL/SQL".
    Steve Muench
    Development Lead, Oracle XSQL Pages Framework
    Lead Product Manager for BC4J and Lead XML Evangelist, Oracle Corp
    Author, Building Oracle XML Applications
    null

  • I can't see from my PC the .pps files stored into Keynote in my iPad

    Hi all, i would want to know if it's possible to see from my PC the .pps files stored into Keynote in my iPad 2. When i am syncronyzing the iPad with the PC, in the iTunes tab called Applications, in its end part there's a double panel (Share files): on the left side, under 'Applications', a list of the Apps. installed on the iPad; on the right side, under 'Documents', a list of the documents that the selected app. on the left has in the iPad.
    No problem for Quicknote or Documents to go Premium: i can see the docs these apps. have in the iPad, and thus i can use the  'Save in' option to copy them to my PC, and also i can use the 'Add' option to transfer docs from my PC to the selected app.
    The problem is with Keynote application: while i have two docs in this app. in my iPad, i can't see them from iTunes; and also, i can't see in the iPad the docs i transfer to the Keynote app. with the 'Add' button.
    I have uninstalled and re-installed the Keynote app. on the iPad (without rebooting the device between the two things) without result.
    Any help on this matter would be appreciated. Regards.

    I have seen the solution: i have to explicitly share the files from Keynote options:
    - IPad --> iTunes: with the presentation open,  Configuration > Share and print > Send to iTunes.
    - iTunes --> iPad: '+' > Copy from: iTunes.

  • Can't reconnect edited TIFF files back into library

    There's a big problem I'm having.
    After a vault restore, Aperture won't let me reconnect my edited tiff files. I open the "manage referenced files" dialogue and I navigate to the image, but I can't reconnect them. The "reconnect" buttons are greyed out. Here's a couple of pix of what's happening:
    http://amrosario.com/Aperture001.jpg
    http://amrosario.com/Aperture002.jpg
    Not to mention that with some images, Aperture is recorded the wrong file size (as seen in my second screenshot).
    I need help desperately!
    Antonio

    Thanks for all the words of help.
    What is strange about this is this:
    I'm working with NEF raw files from a D2X.
    Before my hard drive issue, I did some editing of the raw files in Aperture. Then, I had Aperture send the tweaked file to Photoshop for more editing. Aperture sent over a 16bit tiff file. The file was about 70 megs in size (a 12.4 megapixel file @16 bits). Fine.
    So, I did some editing and resizing in Photoshop and ended up with a layered TIFF file which was about 300 megs in size. Fine.
    I saved it and went back to Aperture. Aperture took a minute or two to update the thumbnail. Fine - it's a big file. So far, everything was working as it should.
    Back in Aperture, the edited TIFF was (automatically) stacked with the raw NEF file. Fine.
    Then... HARD DRIVE ISSUE (actually, a raid failure, but that's another story).
    After many hours or rebuilding and restoring from a saved vault, I get this issue where Aperture cannot find the stacked, edited tiffs. Ok, fine, so....
    I go to the "manage referenced files" command and navigate to the tiff files stored on my hard drive and bingo....
    No go...
    But the strange thing is (and you can see it in my second screenshot above) that aperture is looking for a 70meg image where the edited image is actually much larger. If you look at this screenshot ( http://amrosario.com/Aperture002.jpg ) you can see that Aperture is looking for a 70.1mb file at 2852x4296 pixels. This is what Aperture originally sent over to Photoshop for me to edit. The actual edited file was saved (and cataloged by Aperture before my HARD DRIVE ISSUE) as a 236.8mb file at 3419x5150 pixels (this was the edited version.
    After my hard drive issue and restore from vault, Aperture "forgot" that I had edited the image and enlarged it. It is looking for the 16bit TIFF that it originally sent to Photoshop when I first started to edit the image.
    This is the big problem and, I think, bug in Aperture.
    I have since reimported the TIFF files and will re-stack them with the original NEFs. But this is a lot of work.
    I'm wondering if someone from the Aperture team can help figure this out.
    I hope that I've made the problem clearer. This is hard to do with words.
    Thanks for everyone's input.
    Antonio

  • With Lightroom 4 I can't read any .DNG files directly into Photoshop CS. I have camera raw 2.4

    With Lightroom 4 I can't read any .DNG files directly into Photoshop CS. I have"camera raw 2.4" selected in LR and the Plug-in for CS is Camera Raw.8BI.
    Any suggestions on what to do? Thanks.

    Welcome to the Apple Discussions. Have you tried a different DNG converter? Adobe released Adobe DNG Converter 5.3 in March of this year. Maybe, if it supports your camera, this version will create a more compatible file.

  • How can I read content from PDF file stored in Oracle 9i XMLDB

    Hi Friends:
    Now I have met one question that I don`t know how to read some String , for example "Hello", from the PDF file stored in the Oracle 9i XMLDB, I have stored that PDF file into the XMLDB now, any suggestions are appriciated . Thank you in advance.

    You may be able to do something with Oracle Text. The following shows how to get an HTML rendiditon of a binary document. I think you can also get plain text instead of HTML
    set echo on
    spool xfilesUtilties.log
    connect sys/&1 as sysdba
    grant ctxapp to &2
    connect &2/&3
    begin
      ctxsys.ctx_ddl.create_policy(policy_name=>'XFILES_HTML_GENERATION', filter=>'ctxsys.auto_filter');
    end;
    create or replace package xfiles_internal_11010
    authid definer
    as
      function renderAsHTML(sourceDoc BLOB) return CLOB;
    end;
    show errors
    create or replace package body xfiles_internal_11010
    as
    function renderAsHTML(sourceDoc BLOB)
    return CLOB
    as
      html_content CLOB;
    begin
      dbms_lob.createTemporary(html_content,true,DBMS_LOB.SESSION);
      ctx_doc.policy_filter(policy_name => 'XFILES_HTML_GENERATION',
                            document => sourceDoc,
                            restab => html_content,
                            plaintext => false);
      return html_content;
    end;
    end;
    show errors
    create or replace package xfiles_utilities_11010
    authid current_user
    as
      HOME_FOLDER   constant varchar2(700) := xdb_constants.HOME_FOLDER;
      PUBLIC_FOLDER constant varchar2(700) := xdb_constants.PUBLIC_FOLDER;
      function renderAsHTML(sourceFile VARCHAR2) return CLOB;
      function transformToHTML(xmldoc XMLType, xslPath VARCHAR2) return CLOB;
    end;
    show errors
    create or replace package body xfiles_utilities_11010
    as
    function renderAsHTML(sourceFile VARCHAR2)
    return CLOB
    as
    begin
      return xfiles_internal_11010.renderAsHTML(xdburitype(sourceFile).getBLOB());
    end;
    function transformToHTML(xmldoc XMLType, xslPath VARCHAR2)
    return CLOB
    as
      html clob;
    begin
      select xmldoc.transform(xdburitype(xslPath).getXML()).getClobVal()
        into HTML
        from dual;
      return html;
    end;
    end;
    show errors
    grant execute on xfiles_utilities_11010 to public
    create or replace public synonym xfiles_utilities for xfiles_utilities_11010
    quitMessage was edited by:
    mdrake

  • Getting attributes from a XML File, stored in Oracle

    Hello,
    my problem is the following
    I have a xml file that looks like that:
    <?xml version="1.0" encoding="ISO-8859-1" standalone="yes"?>
    <root path="H:\musik">
    <directory name="Bj�rk - Homogenic" path="H:\musik\Bj�rk - Homogenic">
    <file album="Homogenic" artist="Bjoerk" comment=""
    completename="Bjoerk - Hunter" genre="Techno"
    name="01 - Hunter.mp3"
    path="H:\musik\Bj�rk - Homogenic\01 - Hunter.mp3"
    title="Hunter" year="1997"/>
    <file album="Homogenic" artist="Bjoerk" comment=""
    completename="Bjoerk - Joga" genre="" name="02 - Joga.mp3"
    path="H:\musik\Bj�rk - Homogenic\02 - Joga.mp3" title="Joga" year="1994"/>
    </directory>
    <directory name="Blank & Jones - In Da Mix" path="H:\musik\Blank & Jones - In Da Mix">
    <file album="In da Mix" artist="Blank & Jones" comment=""
    completename="Blank & Jones - On a journey (Intro)"
    genre="Dance" name="01 - On a journey (Intro).mp3"
    path="H:\musik\Blank & Jones - In Da Mix\01 - On a journey (Intro).mp3"
    title="On a journey (Intro)" year="1999"/>
    <file album="In da Mix" artist="Blank & Jones" comment=""
    completename="Blank & Jones - Cream" genre="Dance"
    name="02 - Cream.mp3"
    path="H:\musik\Blank & Jones - In Da Mix\02 - Cream.mp3"
    title="Cream" year="1999"/>
    </directory>
    </root>
    This file I have stored in Oracle as table of XML Type.
    Now I have build a little Java Programm, that displays the XML File like the File structure in the Windows Explorer.
    I want, when I choose a file in the File structure, that the ID3 Informations like album artist a.s.o. can be displayed. My problem is, I couldn't get these informations e.g. in an array from the database. Any suggestions how I could realize this in Java?
    Thx for any comments
    Max

    Try this:
    select extract(xmltypefieldname, '//xpath/field@attribute').getStringVal() from yourtable where yourwhereclause
    You can also select elements that match certain attributes by using a predicate such as field[@attr = myval][@attr2 = myval2]...
    Hope this helps.

  • Accesss Files Stored in Oracle Files from Forms

    I am attempting to access the files that are stored in Oracle Files (oracle collaboration suite) from an Oracle Forms.
    To be more specific I am would like to implement a solution to access Files from Custom Form in Oracle Application(11i).
    Any suggestions/thoughts in this regard is very much appreciated.
    Pavan

    Hi we are on a project similar to this, basically you have two options:
    a) Use Java-Importer to include the necessary classes to interact with IFS (e.g. rename, delete or get informations about documents).
    b) Use a servlet to get files out-of and into IFS.
    Because we had to do a lot of "loading" and we didn't want to run a round at client side to sign our forms jar files we decided to use method b).
    Regards,
    Ingo

  • How to extract CPIO file to install Oracle in LINUX REDHAT9

    I DOWNLOADED THE ORACLE 9I SOFTWARE FROM ORACLE SITE FOR
    LINUX REDHAT9. NOW I DONT KNOW HOW TO EXTRACT THE FILE WITH CPIO.
    CAN ANY BODY HELP ME.
    THANKS.

    extract the cpio file with the following command:
    cpio -idmv < filename.cpio
    hope this will help you
    SUMIT

  • Importing TIFF files (Portrait) into iPhoto '11

    Since upgrading from iLife '09 to iLife '11, I can't import portrait photos in TIFF format into iPhoto! JPEG versions work fine but as most of my photos are TIFF I'm left with a lot of photos that I can't see/use. Landscape photos are fine.
    I'm using a Nikon D300 camera. I have 2 iMacs and a Mac Book - all running Mac OS X vers. 10.6.8 - and they all have the same problem.

    I had a similar problem, which I suspect is going to be off little help if trying to get photos into the mac from a camera.
    I had all my pics on a USB drive external to my old windows machine. When I moved to a mac I started to import into iPhoto 11. The only images I could not load were portrait tiff files, all of which have an Orientation: 8 (Rotated 90° CW) setting as oposed to Orientation: 1 (Normal).
    Fortunately I have Photoshop which will open them, so open and save as does the trick. I suspect there's a setting in the camera to turn off auto rotation which is what I'll try next before I try to load my next set.
    I'm using a D300s so if I can solve this it should work for the D300 also.

  • Trying to convert a TIFF file channels into layers, or convert into JPEG.

    Hello, I am using an artwork with several different channels which im having difficulty turning into layers in Photoshop, when copying and pasting they will  not copy. It is an 8bit RGB file.
    I am wanting to turn it into a jpeg so I can rework the file from scratch as a flat layer.
    When i save as a JPEG it saves everything blank,
    Any help on the matter would be greatly appreciated

    Thanks c.pfaffenbichler
    This has solved my problem for now! Still cant get my head around TIFF files but ill get there one day!
    Thank you!

  • How to extract the contents of ZIP file stored in oracle database column ?

    The file is in ZIP format and it is stored in BLOB databse column . The contents of file is in binary format .
    How to extract those contents from file and thus creating the same ZIP file as output in ODI ?
    Thanks
    Arun

    Perhaps you can something like what is described in the support note "How To Load A PDF File Or Other Binary Files To a BLOB Column From ODI (Doc ID 1412753.1)"

  • Create XLS file of 12 lakhs rows stored into oracle database.

    Respected All,
       My requirement is :
    Into my database , in one of my table has 12 lakhs rows. Now I want to create a PLSQL procedure which can convert all those rows into Microsoft .XLS file.
    So I tried out with Procedure below : -
    CREATE OR REPLACE PROCEDURE SCOTT.EMPLOYEE_REPORT(
    DIR IN VARCHAR2, FILENAME IN VARCHAR2) IS
    F UTL_FILE.FILE_TYPE;
        CURSOR AVG_CSR IS
        SELECT ENAME, DEPTNO, SAL
        FROM EMP;
    BEGIN
    F := UTL_FILE.FOPEN(DIR, FILENAME,'W');
    UTL_FILE.PUT_LINE(F, 'REPORT GENERATED ON ' ||SYSDATE);
    UTL_FILE.NEW_LINE(F);
    FOR EMP IN AVG_CSR
    LOOP
    UTL_FILE.PUT_LINE(F,
    RPAD(EMP.ENAME, 30) || ' ' ||
    LPAD(NVL(TO_CHAR(EMP.DEPTNO,'9999'),'-'), 5) || ' ' ||
    LPAD(TO_CHAR(EMP.SAL, '$99,999.00'), 12));
    END LOOP;
    UTL_FILE.NEW_LINE(F);
    UTL_FILE.PUT_LINE(F, '*** END OF REPORT ***');
    UTL_FILE.FCLOSE(F);
    END EMPLOYEE_REPORT;
    COMMAND TO EXECUTE THE PROCEDURE IS : - >
    EXEC EMPLOYEE_REPORT('UTL_FILE','TEST.XLS')
       in this package , I used scott user table for the r & d.
    While I execute this package , I got the error :
    ORA-29280: invalid directory path
    ORA-06512: at "SYS.UTL_FILE", line 18
    ORA-06512: at "SYS.UTL_FILE", line 424
    ORA-06512: at "SCOTT.EMPLOYEE_REPORT", line 8
    ORA-06512: at line 1
       KINDLY HELP ME TO SOLVE THIS PROBLEM
    THANKS/ REGARDS
    HARSH SHAH
    URMIN GROUP OF COMPANIES

    Hi,
    first of all try to use international measures. Any time I see lakh I have to google to find what it is.
    So you are trying to put in an Excel file 1.200.000 records (more than 1 million).
    Actually even if you would produce such file Excel will not be able to load it.
    Even in the latest version of Excel (2013) the maximum number of rows per sheet are 1,048,576 (source: Excel specifications and limits - Excel - Office.com).
    So if you will try to load in Excel such a big file you will get an error.
    And, as Blue has said, you are not producing an Excel file with your statement.
    Regards.
    Al

  • Parsing XML file & insert into Oracle Tables

    Hi,
    Following is a sample xml file which is an input for a oracle procedure :
    <Sales ID="1" CreatedDate="16-Jan-2007" CreatedTime="16:09:40">
    <Customer ID="1" Name="Scott" Address="City1">
         <Order ID="1" Date="15-Jan-2007" TotItems="2" Value="200">
              <Item ID="01" Name="Chocolate" Qty="2" Amount="80" />
              <Item ID="03" Name="Biscuit" Qty="5" Amount="120" />
         </Order>
    </Customer>
    <Customer ID="2" Name="Tiger" Address="City2">
         <Order ID="1" Date="15-Jan-2007" TotItems="1" Value="500">
              <Item ID="01" Name="Pizza" Qty="3" Amount="500" />
         </Order>
    </Customer>
    <User ID="ABC" Name="TestUser" LastLogin="16-Jan-2007" />
    <City Code="NY" Name="New York" />
    <City Code="NJ" Name="New Jersy" />
    </Sales>
    I have individual tables for Sales, Customer, Order, Item, User & City tags with proper referential constraints. I have to parse the xml & have to insert the corresponsing tables for each & every tag if the ID in individual tag does not exists in the table. If the ID already exist, then, I have to update other attributes in the table for the corresponding ID.
    Can anyone suggest me the simplest way to perform the above said scenario?

    Dera Michael,
    Sorry for the confusing previous reply. I went through your solution again and tried for my XML File.
    I have stored the XML File in table XXLF_DS_XML.Should I make use of the table in the below query.
    Here is my SQL Query erroring Out
    SQL> SELECT EXTRACTVALUE(s.COLUMN_VALUE,
    2 '/Header@orderID') ID
    3 ,EXTRACTVALUE(c.COLUMN_VALUE,
    4 '/Detail@lineNumber') lienum
    5 ,EXTRACTVALUE(t.COLUMN_VALUE,
    6 '/Detail/Tax@currency') currency
    7 ,EXTRACTVALUE(t.COLUMN_VALUE,
    8 '/Detail/Tax/Money') customer_name
    9 FROM TABLE(XMLSEQUENCE(EXTRACT(XMLTYPE('- <Recordset>
    10 - <Header dueDate="2007-01-17T16:09:05" orderDate="2004-01-17" orderID="0009" transactionID="1389"
    type="new">
    11 <KeyIndex>2</KeyIndex>
    12 - <BillTo>
    13 - <Address addressID="5619" isoCountryCode="US">
    14 <Name>fMat</Name>
    15 - <PostalAddress name="default">
    16 <Street>34545</Street>
    17 <City>dfgfg</City>
    18 <State>AZ</State>
    19 <PostalCode>85086-1693</PostalCode>
    20 <County>Maricopa</County>
    21 <Country>US</Country>
    22 </PostalAddress>
    23 <Email name="default">[email protected]</Email>
    24 </Address>
    25 </BillTo>
    26 <PromotionCode />
    27 - <SubTotal>
    28 <Money currency="USD">32.49</Money>
    29 </SubTotal>
    30 - <Tax>
    31 <Money currency="USD">2.32</Money>
    32 <Description />
    33 </Tax>
    34 - <Shipping>
    35 <Money currency="USD">8.95</Money>
    36 <Description />
    37 </Shipping>
    38 </Header>
    39 - <Detail lineNumber="1" quantity="1">
    40 - <ItemDetail>
    41 - <UnitPrice>
    42 <Money currency="USD">29.99</Money>
    43 </UnitPrice>
    44 <ShortName>Little;reg; pxxxx® Learning System</ShortName>
    45 </ItemDetail>
    46 - <Tax>
    47 <Money currency="USD">1.68</Money>
    48 <Description />
    49 - <TaxDetail category="sales">
    50 - <TaxAmount>
    51 <Money currency="USD">1.68</Money>
    52 </TaxAmount>
    53 <TaxLocation>AZ</TaxLocation>
    54 </TaxDetail>
    55 </Tax>
    56 </Detail>
    57 - <Detail lineNumber="2" quantity="1">
    58 - <ItemDetail>
    59 - <UnitPrice>
    60 <Money currency="USD">29.99</Money>
    61 </UnitPrice>
    62 <ShortName>Little;reg; pxxxx® Learning System</ShortName>
    63 </ItemDetail>
    64 - <Tax>
    65 <Money currency="USD">1.68</Money>
    66 <Description />
    67 - <TaxDetail category="sales">
    68 - <TaxAmount>
    69 <Money currency="USD">1.68</Money>
    70 </TaxAmount>
    71 <TaxLocation>AZ</TaxLocation>
    72 </TaxDetail>
    73 </Tax>
    74 - <Tax>
    75 <Money currency="USD">0.68</Money>
    76 <Description />
    77 - <TaxDetail category="sales">
    78 - <TaxAmount>
    79 <Money currency="USD">0.68</Money>
    80 </TaxAmount>
    81 <TaxLocation>DISTRICT</TaxLocation>
    82 </TaxDetail>
    83 </Tax>
    84 </Detail>
    85 </Recordset>'),'/Recordset/Header'))) s
    86 ,TABLE(XMLSEQUENCE(EXTRACT(c.COLUMN_VALUE,
    87 '/Recordset/Detail'))) c
    88 ,TABLE(XMLSEQUENCE(EXTRACT(t.COLUMN_VALUE,
    89 '/Recordset/Detail/Tax'))) t
    90 /
    ,TABLE(XMLSEQUENCE(EXTRACT(c.COLUMN_VALUE,
    ERROR at line 86:
    ORA-00904: "C"."COLUMN_VALUE": invalid identifier
    Here is my XML Data
    <Recordset>
    <Header dueDate="2007-01-17T16:09:05" orderDate="2004-01-17" orderID="0009" transactionID="1389"
    type="new">
    <KeyIndex>2</KeyIndex>
    <BillTo>
    <Address addressID="5619" isoCountryCode="US">
    <Name>fMat</Name>
    <PostalAddress name="default">
    <Street>34545 </Street>
    <City>dfgfg</City>
    <State>AZ</State>
    <PostalCode>85086-1693</PostalCode>
    <County>Maricopa</County>
    <Country>US</Country>
    </PostalAddress>
    <Email name="default">[email protected]</Email>
    </Address>
    </BillTo>
    <PromotionCode/>
    <SubTotal>
    <Money currency="USD">32.49</Money>
    </SubTotal>
    <Tax>
    <Money currency="USD">2.32</Money>
    <Description/>
    </Tax>
    <Shipping>
    <Money currency="USD">8.95</Money>
    <Description/>
    </Shipping>
    </Header>
    <Detail lineNumber="1" quantity="1">
    <ItemDetail>
    <UnitPrice>
    <Money currency="USD">29.99</Money>
    </UnitPrice>
    <ShortName>Little;reg; pxxxx® Learning System </ShortName>
    </ItemDetail>
    <Tax>
    <Money currency="USD">1.68</Money>
    <Description/>
    <TaxDetail category="sales">
    <TaxAmount>
    <Money currency="USD">1.68</Money>
    </TaxAmount>
    <TaxLocation>AZ</TaxLocation>
    </TaxDetail>
    </Tax>
    </Detail>
    <Detail lineNumber="2" quantity="1">
    <ItemDetail>
    <UnitPrice>
    <Money currency="USD">29.99</Money>
    </UnitPrice>
    <ShortName>Little;reg; pxxxx® Learning System </ShortName>
    </ItemDetail>
    <Tax>
    <Money currency="USD">1.68</Money>
    <Description/>
    <TaxDetail category="sales">
    <TaxAmount>
    <Money currency="USD">1.68</Money>
    </TaxAmount>
    <TaxLocation>AZ</TaxLocation>
    </TaxDetail>
    </Tax>
    <Tax>
    <Money currency="USD">0.68</Money>
    <Description/>
    <TaxDetail category="sales">
    <TaxAmount>
    <Money currency="USD">0.68</Money>
    </TaxAmount>
    <TaxLocation>DISTRICT</TaxLocation>
    </TaxDetail>
    </Tax>
    </Detail>
    </Recordset>
    Thanks

  • Uploaded Files stored in Oracle 10G database or in Unix File system

    Hey All,
    I am trying to understand best practices on storing uploaded files. Should you store within the database itself (this is the current method we are using by leveraging BLOB storage) or use a BFILE locator to use the files system storage (we have our DB's on UNIX) . . .or is there another method I should be entertaining? I have read arguments on both sides of this question. I wanted to see what answers forum readers could provide!! I understand there are quite a few factors but the situation I am in is as follows:
    1) Storing text and pdf documents.
    2) File sizes range from a few Kb to up to 15MB in size
    3) uploaded files can be deleted and updated / replaced quite frequently
    Right now we have an Oracle stored procedure that is uploading the files binary data into a BLOB column on our table. We have no real "performance" problems with this method but are entertaining the idea of using the UNIX file system for storage instead of the database.
    Thanks for the insight!!
    Anthony Roeder

    Anthony,
    First word you must learn here in this forum is RESPECT.
    If you require any further explanation, just say so.
    BLOB compared with BFILE
    Security:
    BFILEs are inherently insecure, as insecure as your operating system (OS).
    Features:
    BFILEs are not writable from typical database APIs whereas BLOBs are.
    One of the most important features is that BLOBs can participate in transactions and are recoverable. Not so for BFILEs.
    Performance:
    Roughly the same.
    Upping the size of your buffer cache can make a BIG improvement in BLOB performance.
    BLOBs can be configured to exist in Oracle's cache which should make repeated/multiple reads faster.
    Piece wise/non-sequential access of a BLOB is known to be faster than a that of a BFILE.
    Manageability:
    Only the BFILE locator is stored in an Oracle BACKUP. One needs to do a separate backup to save the OS file that the BFILE locator points to. The BLOB data is backed up along with the rest of the database data.
    Storage:
    The amount of table space required to store file data in a BLOB will be larger than that of the file itself due to LOB index which is the reason for better BLOB performance for piece wise random access of the BLOB value.

Maybe you are looking for