Extracting compressed file (zip) using PL/SQL

Hi!
Can anyone help me on how to extract data out of a compressed file(ZIP) using pl sql.
Regards,
dhekz

user8707902 wrote:
Can anyone help me on how to extract data out of a compressed file(ZIP) using pl sql.Bear in mind that the Lempel-Zif-Welch (LZW) compression used in zip files may still have patent issue relating to Unisys (not sure of the patent has expired now or what, it's always been somewhat confusing). So, if you already have software written to zip/unzip files you should use that as it should be licenced already. If you write your own LZW compression/decompression routine for use in any commercial software you may be required to register and submit royalties to Unisys for the privilege. As I say, I don't know the latest, so you may be ok, but it's something to be aware of and check out if you intend to write your own and it's for commercial reasons.

Similar Messages

  • Extracting compressed files of 2byte filename?

    Sometimes I get zip files containing files 2byte letter-name archived from windows systems.
    Most of the time, Tiger's unzip feature cannot show the extracted file name correctly.
    They are shown in numbers like this, "\270\360\300\307\260\355\273\347"
    If the files are from Mac, but Tiger handles the files very well and shows the correct extracted file names.
    I think it's because the charset of compressed file-names are not unicode...
    is there any way to solve this problem?
    Oh, I've also used Stuffit, but stuffit shows even more cracked letters.

    Do you know what language is involved exactly? The numbers are octal representations of individual bytes and, as you surmise, are probably caused by the file names being in an encoding that OS X cannot read directly. It's a longshot for Windows files, but you might have a look at this utility:
    http://docs.info.apple.com./article.html?artnum=86182
    Just ignore any error messages when you try to install it. It will be found in Applications/Utilities and works by drag/drop.

  • Want To Capture The File name Using the SQL Loader

    Hi,
    I Am loading The Data To Staging Table Using The SQL*developer, The File That need to be Loaded Will be One Of The Input To the SQL*Loader Concurrent Program.
    In One Of The Column Of My staging Table I want To Put The File name.
    Can We do the Same.
    thanks,
    Ankit

    Not unless you generate the loader controlfile dynamically.. try this.. pass file name as $1 first parameter. Use the below example and modify as per your requirement
    1) create table with following table structure
    create table temp_table (x varchar2(20),file_name varchar2(30));
    2) create data file - test.dat (contains only values for x)
    abc
    def
    geh
    ggg
    fff
    3) create a host file host file - test.sh with following content:
    echo "load data
    infile $1
    append
    into table temp_table
    fields terminated by ','
    (x,
    file_name constant "$1")" > test.ctl
    sqlldr <usr>/<pwd>control=test.ctl
    4) run the host file from unix prompt with data file name as parameter (ensure test.sh has execute permissions)
    test.sh test.dat
    Hope this helps
    Regards,
    Bhadri

  • File Properties using PL-SQL

    Hi Experts,
    Basically we have a data source that is in the form of an external file(.csv). So we are trying to automate a process. If any new .csv file appears in the Directory, then automatically a procedure/function is called.
    Now, the job will be executed only if the already existing file has new set of data. Hence i found a way to identify that whether its a new or an exisiting file. The last modified date of the file will change *(On Windows, in Directory if we view all the details of the list we get modified date,size etc...)*
    However, I am unable to find the way to retrieve its modified-date using pl-sql.
    Could anyone please help me...
    Regards,+
    Ravi R+

    Ravi R wrote:
    Basically we have a data source that is in the form of an external file(.csv). So we are trying to automate a process. If any new .csv file appears in the Directory, then automatically a procedure/function is called.And what if the PL/SQL automated code detects a new file and starts the load, while that new file is still busy being created (copied/ftp'ed/etc)?
    The load can complete first (and likely with the last line as a bad row) and only load the file partially.
    Now, the job will be executed only if the already existing file has new set of data. Hence i found a way to identify that whether its a new or an exisiting file. The last modified date of the file will change *(On Windows, in Directory if we view all the details of the list we get modified date,size etc...)*
    However, I am unable to find the way to retrieve its modified-date using pl-sql. Not a robust approach. It can be done (determining the file properties, including time stamps) using a Java stored proc for example, than can be called from PL/SQL.
    However, I would be hesitant to implement this approach into production as it is not robust enough. How is that file delivered? Why can't the delivery process not inform Oracle that the file needs to be loaded? Why can't the deliver process not start SQL*Loader and drive the load process instead?
    I would rather be looking at making that file delivery process intelligent - instead of attempting to "detect" new or changed files from PL/SQL.

  • Problem extracting SOAP XML payload using pl/sql

    Hi,
    I was wondering if I could get some help on extracting the address matches that are returned from the Web Service I am consuming. This is the first time I have dealt with XML and web services. I'm using Oracle 10.2.0.1.
    The response I’m getting back returns 4 address matches (shown below against n2, n4, n6 and n8) which is:
    <?xml version="1.0" encoding="utf-8"?>
    <soapenv:Envelope
    xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
    xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><soapenv:Header/><soapenv:Body><searchResponse
    xmlns="http://ws.aplt.msi.com"><searchReturn>&lt;?xml version=&quot;1.0&quot;
    encoding=&quot;UTF-8&quot; standalone=&quot;yes&quot;?&gt;
    &lt;GetAddressSearchResponse
    xmlns=&quot;http://aplt.nzpost.co.nz/schemas/search&quot;&gt;
    &lt;ns1:ResponseHeader
    xmlns:ns1=&quot;http://aplt.nzpost.co.nz/schemas/common&quot;&gt;
    &lt;ns1:Errors/&gt;
    &lt;/ns1:ResponseHeader&gt;
    &lt;SearchResults SearchType=&quot;StreetAddress&quot;&gt;
    &lt;ResultRecord Type=&quot;URBAN&quot;&gt;
    &lt;ns2:AddressDetails
    xmlns:ns2=&quot;urn:nzpost:schemas:xAL:3.0&quot;&gt;
    &lt;ns2:Locality&gt;
    &lt;ns2:Name&gt;LOWER HUTT&lt;/ns2:Name&gt;
    &lt;ns2:DependentLocality&gt;
    &lt;ns2:Name&gt;WAINUIOMATA&lt;/ns2:Name&gt;
    &lt;/ns2:DependentLocality&gt;
    &lt;/ns2:Locality&gt;
    &lt;ns2:Thoroughfare&gt;
    &lt;ns2:Name&gt;MAIN ROAD&lt;/ns2:Name&gt;
    &lt;ns2:Number&gt;
    &lt;ns2:Number Type=&quot;number&quot;&gt;111&lt;/ns2:Number&gt;
    &lt;/ns2:Number&gt;
    &lt;/ns2:Thoroughfare&gt;
    &lt;ns2:Postal&gt;
    &lt;ns2:PostalCode&gt;
    &lt;ns2:Number&gt;
    &lt;ns2:Number&gt;5014&lt;/ns2:Number&gt;
    &lt;/ns2:Number&gt;
    &lt;/ns2:PostalCode&gt;
    &lt;/ns2:Postal&gt;
    &lt;/ns2:AddressDetails&gt;
    &lt;DPID&gt;494852&lt;/DPID&gt;
    &lt;Geospatial&gt;
    &lt;ns3:Point
    xmlns:ns3=&quot;http://aplt.nzpost.co.nz/schemas/common&quot;&gt;
    &lt;ns3:Coordinate&gt;174.953883,-41.271187&lt;/ns3:Coordinate&gt;
    &lt;/ns3:Point&gt;
    &lt;/Geospatial&gt;
    &lt;/ResultRecord&gt;
    &lt;ResultRecord Type=&quot;URBAN&quot;&gt;
    &lt;ns4:AddressDetails
    xmlns:ns4=&quot;urn:nzpost:schemas:xAL:3.0&quot;&gt;
    &lt;ns4:Locality&gt;
    &lt;ns4:Name&gt;UPPER HUTT&lt;/ns4:Name&gt;
    &lt;/ns4:Locality&gt;
    &lt;ns4:Thoroughfare&gt;
    &lt;ns4:Name&gt;MAIN STREET&lt;/ns4:Name&gt;
    &lt;ns4:Number&gt;
    &lt;ns4:Number
    Type=&quot;number&quot;&gt;111&lt;/ns4:Number&gt;
    &lt;ns4:Number
    Type=&quot;alpha&quot;&gt;A&lt;/ns4:Number&gt;
    &lt;/ns4:Number&gt;
    &lt;/ns4:Thoroughfare&gt;
    &lt;ns4:Postal&gt;
    &lt;ns4:PostalCode&gt;
    &lt;ns4:Number&gt;
    &lt;ns4:Number&gt;5018&lt;/ns4:Number&gt;
    &lt;/ns4:Number&gt;
    &lt;/ns4:PostalCode&gt;
    &lt;/ns4:Postal&gt;
    &lt;/ns4:AddressDetails&gt;
    &lt;DPID&gt;2697192&lt;/DPID&gt;
    &lt;Geospatial&gt;
    &lt;ns5:Point
    xmlns:ns5=&quot;http://aplt.nzpost.co.nz/schemas/common&quot;&gt;
    &lt;ns5:Coordinate&gt;175.070066,-41.124317&lt;/ns5:Coordinate&gt;
    &lt;/ns5:Point&gt;
    &lt;/Geospatial&gt;
    &lt;/ResultRecord&gt;
    &lt;ResultRecord Type=&quot;URBAN&quot;&gt;
    &lt;ns6:AddressDetails
    xmlns:ns6=&quot;urn:nzpost:schemas:xAL:3.0&quot;&gt;
    &lt;ns6:Locality&gt;
    &lt;ns6:Name&gt;WELLINGTON&lt;/ns6:Name&gt;
    &lt;ns6:DependentLocality&gt;
    &lt;ns6:Name&gt;TAWA&lt;/ns6:Name&gt;
    &lt;/ns6:DependentLocality&gt;
    &lt;/ns6:Locality&gt;
    &lt;ns6:Thoroughfare&gt;
    &lt;ns6:Name&gt;MAIN ROAD&lt;/ns6:Name&gt;
    &lt;ns6:Number&gt;
    &lt;ns6:Number Type=&quot;number&quot;&gt;111&lt;/ns6:Number&gt;
    &lt;/ns6:Number&gt;
    &lt;/ns6:Thoroughfare&gt;
    &lt;ns6:Postal&gt;
    &lt;ns6:PostalCode&gt;
    &lt;ns6:Number&gt;
    &lt;ns6:Number&gt;5028&lt;/ns6:Number&gt;
    &lt;/ns6:Number&gt;
    &lt;/ns6:PostalCode&gt;
    &lt;/ns6:Postal&gt;
    &lt;/ns6:AddressDetails&gt;
    &lt;DPID&gt;1066466&lt;/DPID&gt;
    &lt;Geospatial&gt;
    &lt;ns7:Point
    xmlns:ns7=&quot;http://aplt.nzpost.co.nz/schemas/common&quot;&gt;
    &lt;ns7:Coordinate&gt;174.824326,-41.174181&lt;/ns7:Coordinate&gt;
    &lt;/ns7:Point&gt;
    &lt;/Geospatial&gt;
    &lt;/ResultRecord&gt;
    &lt;ResultRecord Type=&quot;URBAN&quot;&gt;
    &lt;ns8:AddressDetails
    xmlns:ns8=&quot;urn:nzpost:schemas:xAL:3.0&quot;&gt;
    &lt;ns8:Locality&gt;
    &lt;ns8:Name&gt;WELLINGTON&lt;/ns8:Name&gt;
    &lt;ns8:DependentLocality&gt;
    &lt;ns8:Name&gt;KARORI&lt;/ns8:Name&gt;
    &lt;/ns8:DependentLocality&gt;
    &lt;/ns8:Locality&gt;
    &lt;ns8:Thoroughfare&gt;
    &lt;ns8:Name&gt;MAKARA ROAD&lt;/ns8:Name&gt;
    &lt;ns8:Number&gt;
    &lt;ns8:Number Type=&quot;number&quot;&gt;111&lt;/ns8:Number&gt;
    &lt;/ns8:Number&gt;
    &lt;/ns8:Thoroughfare&gt;
    &lt;ns8:Postal&gt;
    &lt;ns8:PostalCode&gt;
    &lt;ns8:Number&gt;
    &lt;ns8:Number&gt;6012&lt;/ns8:Number&gt;
    &lt;/ns8:Number&gt;
    &lt;/ns8:PostalCode&gt;
    &lt;/ns8:Postal&gt;
    &lt;/ns8:AddressDetails&gt;
    &lt;Geospatial&gt;
    &lt;ns9:Point
    xmlns:ns9=&quot;http://aplt.nzpost.co.nz/schemas/common&quot;&gt;
    &lt;ns9:Coordinate&gt;174.717753 , -41.284415&lt;/ns9:Coordinate&gt;
    &lt;/ns9:Point&gt;
    &lt;/Geospatial&gt;
    &lt;/ResultRecord&gt;
    &lt;/SearchResults&gt;
    &lt;/GetAddressSearchResponse&gt;
    </searchReturn></searchResponse></soapenv:
    Body></soapenv:Envelope>
    My cursor that gets any errors returned appears ok. This is:
    CURSOR c_xml_err(i_xml IN XMLType, i_xmlns IN VARCHAR2) IS
    SELECT extract(value(xmlseq), '/Errors' , i_xmlns) vi_errors
    ,extract(value(xmlseq), '/Warnings' , i_xmlns) vi_warnings
    FROM TABLE(xmlSequence(extract(i_xml, '/GetAddressSearchResponse/ns1:ResponseHeader' , i_xmlns))) xmlseq;
    i_xml that is passed in is an XMLType converted from a CLOB which is the response from the web service:
    v_xml_response := XMLType(i_response);
    i_response is the SOAP package above with the following done on it:
    -- Strip the unnecessary SOAP XML envelope from the response
    v_xml_resp := XMLType.createXml(o_response);
    i_response := v_xml_resp.extract('/soap:Envelope/soap:Body/child::node()'
    ,'xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"').getClobVal();
    i_response is defined with a type of CLOB.
    i_xmlns that is passed in is: 'xmlns:ns1="' || i_xml_namespace || '"' where i_xml_namespace is: http://aplt.nzpost.co.nz/schemas/search
    My cursor that tries to get the address details returned is:
    CURSOR c_xml(i_xml IN XMLType, i_xmlns IN VARCHAR2) IS
    SELECT extract(value(xmlseq), '/ResultRecord/AddressDetails/Postal.PostBox.Number/text()' , i_xmlns).getNumberVal() box#
    ,extract(value(xmlseq), '/ResultRecord/AddressDetails/Thoroughfare.Number/text()' , i_xmlns).getStringVal() street_number
    ,extract(value(xmlseq), '/ResultRecord/AddressDetails/Thoroughfare.Name/text()' , i_xmlns).getStringVal() street_name
    ,extract(value(xmlseq), '/ResultRecord/AddressDetails/Locality.DependentLocality.Name/text()' , i_xmlns).getStringVal() suburb
    ,extract(value(xmlseq), '/ResultRecord/AddressDetails/Locality.Name/text()' , i_xmlns).getStringVal() town_city
    ,extract(value(xmlseq), '/ResultRecord/AddressDetails/Postal.PostalCode.Number/text()' , i_xmlns).getStringVal() post_code
    ,extract(value(xmlseq), '/ResultRecord/AddressDetails/Postal.PostOffice.Name/text()' , i_xmlns).getStringVal() box_lobby_name
    ,extract(value(xmlseq), '/ResultRecord/AddressDetails/Postal.PostRoute.Name/text()' , i_xmlns).getStringVal() rd_number
    FROM TABLE(xmlSequence(extract(i_xml, '/GetAddressSearchResponse/SearchResults' , i_xmlns))) xmlseq;
    This is not correct because it doesn’t select anything. The i_xml parameter passed in is the same as above however the i_xmlns parameter that is passed into this cursor is different. It’s currently passed in as:
    'xmlns:ns2="urn:nzpost:schemas:xAL:3.0"'
    Which matches what is returned in the soap message (first the first address match returned):
    &lt;ResultRecord Type=&quot;URBAN&quot;&gt;
    &lt;ns2:AddressDetails
    xmlns:ns2=&quot;urn:nzpost:schemas:xAL:3.0&quot;&gt;
    I'm calling this cursor in loop as follows:
    for r_cu in c_xml(v_xml_response, v_xml_namespace)
    loop
    dbms_output.put_line('***** test12 - ws_avs_clients - IN LOOP - delete/insert nzp23_address');
    Nothing gets returned.
    Firstly, I’m not sure how to cater for n2, n3, n4, n5, etc which are the namespaces returned and incremented for each address match.
    I’m also wondering if my cursor should be changed to something like:
    CURSOR c_xml(i_xml IN XMLType, i_xmlns IN VARCHAR2) IS
    SELECT extract(value(xmlseq), '/Postal.PostBox.Number/text()' , i_xmlns).getNumberVal() box#
    ,extract(value(xmlseq), '/Thoroughfare.Number/text()' , i_xmlns).getStringVal() street_number
    ,extract(value(xmlseq), '/Thoroughfare.Name/text()' , i_xmlns).getStringVal() street_name
    ,extract(value(xmlseq), '/Locality.DependentLocality.Name/text()' , i_xmlns).getStringVal() suburb
    ,extract(value(xmlseq), '/Locality.Name/text()' , i_xmlns).getStringVal() town_city
    ,extract(value(xmlseq), '/Postal.PostalCode.Number/text()' , i_xmlns).getStringVal() post_code
    ,extract(value(xmlseq), '/Postal.PostOffice.Name/text()' , i_xmlns).getStringVal() box_lobby_name
    ,extract(value(xmlseq), '/Postal.PostRoute.Name/text()' , i_xmlns).getStringVal() rd_number
    FROM TABLE(xmlSequence(extract(i_xml, '/GetAddressSearchResponse/SearchResults/ResultRecord/ns2:AddressDetails' , i_xmlns))) xmlseq;
    However I couldn’t have the ns2: before “AddressDetails” because this gets incremented. I don’t think I can also have the i_xmlns namespace parameter passed in as 'xmlns:ns2="urn:nzpost:schemas:xAL:3.0"'
    because the ns2 gets incremented for each address.
    I'm looking for any examples of pl/sql code that extracts the addresses from the SOAP message returned like I’m trying to do?
    Any help would be much appreciated.
    Thanks,
    Brad

    You can find some examples in both the {forum:id=34} and {forum:id=75} forums. Just search on soap:Envelope or soap:Body and you should get some hits back.
    Since you are using 10.2, you will want to use XMLTable instead of TABLE(xmlSequence(extract as XMLTable is the direction Oracle is going. As for ns2:, ns4: it doesn't matter what namespace prefix you use in your XPath statement as long as all the prefixes resolve to the same namespace.
    Here is a starter piece of code that puts all that together for you.
    SELECT town_city, peeking
      FROM XMLTABLE(XMLNamespaces(default 'http://aplt.nzpost.co.nz/schemas/search',
                                  'urn:nzpost:schemas:xAL:3.0' as "adns"),
                    '/GetAddressSearchResponse/SearchResults/ResultRecord/adns:AddressDetails'
                    PASSING XMLTYPE('<GetAddressSearchResponse xmlns="http://aplt.nzpost.co.nz/schemas/search">
       <SearchResults SearchType="StreetAddress">
          <ResultRecord Type="URBAN">
             <ns2:AddressDetails xmlns:ns2="urn:nzpost:schemas:xAL:3.0">
                <ns2:Locality>
                   <ns2:Name>LOWER HUTT</ns2:Name>
                </ns2:Locality>
             </ns2:AddressDetails>
              </ResultRecord>
              <ResultRecord Type="URBAN">
                   <ns4:AddressDetails xmlns:ns4="urn:nzpost:schemas:xAL:3.0">
                        <ns4:Locality>
                             <ns4:Name>UPPER HUTT</ns4:Name>
                        </ns4:Locality>
                   </ns4:AddressDetails>
              </ResultRecord>
         </SearchResults>
    </GetAddressSearchResponse>')
                    -- The above XMLType would be your variable instead of what is hard-coded
                    COLUMNS
                    town_city   VARCHAR2(30)  PATH '/adns:AddressDetails/adns:Locality/adns:Name',
                    peeking     XMLTYPE       PATH '.');  -- This var is just to show you what each iteration is working with.You can also assign a namespace prefix to one of the default namespaces if your XPath goes across multiple "default" namespaces.
    SELECT town_city, peeking
      FROM XMLTABLE(XMLNamespaces('http://aplt.nzpost.co.nz/schemas/search' as "def",  -- made up this prefix
                                  'urn:nzpost:schemas:xAL:3.0' as "adns"),
                    '/def:GetAddressSearchResponse/def:SearchResults/def:ResultRecord/adns:AddressDetails'
                    PASSING XMLTYPE('<GetAddressSearchResponse xmlns="http://aplt.nzpost.co.nz/schemas/search">
       <SearchResults SearchType="StreetAddress">
          <ResultRecord Type="URBAN">
             <ns2:AddressDetails xmlns:ns2="urn:nzpost:schemas:xAL:3.0">
                <ns2:Locality>
                   <ns2:Name>LOWER HUTT</ns2:Name>
                </ns2:Locality>
             </ns2:AddressDetails>
              </ResultRecord>
              <ResultRecord Type="URBAN">
                   <ns4:AddressDetails xmlns:ns4="urn:nzpost:schemas:xAL:3.0">
                        <ns4:Locality>
                             <ns4:Name>UPPER HUTT</ns4:Name>
                        </ns4:Locality>
                   </ns4:AddressDetails>
              </ResultRecord>
         </SearchResults>
    </GetAddressSearchResponse>')
                    -- The above XMLType would be your variable instead of what is hard-coded
                    COLUMNS
                    town_city   VARCHAR2(30)  PATH '/adns:AddressDetails/adns:Locality/adns:Name',
                    peeking     XMLTYPE       PATH '.');  -- This var is just to show you what each iteration is working with.Hope that helps as a starter to working on your problem.
    If you follow the FAQ link in the above right, you will see how to use the { code } tag (without spaces) to wrap the examples and retain formatting as shown above.

  • File upload use pl/sql with OAS 4082 and 8i/EE

    is there any way to upload/download files (any format) from web browser use FORM and above env. Don't mention samples in OAS document, it simply doesn't work. thanks.

    806675 wrote:
    I probably wrong but I interpret this as POST is not supported, http://download.oracle.com/docs/cd/E11882_01/appdev.112/e16659/xdb22pro.htm#ADXDB5550, "Supported HTTP(S) Client Methods"
    It says:
    "+The semantics of these HTTP(S) methods is in accordance with WebDAV. Servlets and *Web services may support additional HTTP(S) methods*, such as POST.+" (my emphasis - so yes, it is supported).
    Today we are using an Appserver with HTTP mod_plsql, the code for the form looks like:
    htp.formopen (
    curl => 'FileUpload',
    cmethod => 'POST',
    cenctype => 'multipart/form-data');
    the "FileUpload" takes care of the file and inserts it in the dbThe question is how does it do it? A file upload via mod_plsql/EPG is done via the PLSQL document table. It, mod_plsql/EPG, takes cares of the actual upload part - reading the Mime stream of the upload from the browser and inserting it into the document table.
    Unfortunately, seems that the 11g documentation lacks details in this regard. Please consult the Oracle® HTTP Server mod_plsql User's Guide (10g).
    <li>section 1.7.1 describes the format of the upload table you need to define
    <li>section 1.7.4 shows a sample HTML form doing a HTTP post, and the post-process upload PL/SQL procedure that needs to be written to process the contents of the row just created for the uploaded file in the document table

  • Validating XML with XML Schema using PL/SQL

    Hello,
    I have XSD file and a example XML file.
    Using pl/sql how I can validate the example XML is valid for XSD file?
    Thanks in advance.
    Bakul
    Message was edited by:
    bakulesh

    Have you looked at this documentation, Transforming and Validating XMLType Data

  • How to check for a compressed file

    hi,
    I need to restrict the user to upload only compressed files (zip,sit etc.).
    how do u check whether the input file is compressed or not. is there any way to do that? or should i check only with the extension?
    Thanuja.

    Checking the extension is the best what you can do. You can also consider the java.util.zip API [1] to check if the file is decompressable, but that is rather expensive.
    [1] http://java.sun.com/j2se/1.5.0/docs/api/java/util/zip/package-summary.html

  • Export Compression for Web Use

    Hi All
    I've been through the forum and seen a lot of posts on the "art" of compressing files for use and transfer on the web while wanting to maintain quality.
    I understand that it requires some tweaking of the frame size, the frame rate, and the data rate to get the optimum file size versers quality.
    I've moved from iMove where export was simple(tho files were large) to FCE and I'm finding that the learning curve is very steep.
    I've recently seen a video on Vimeo http://vimeo.com/10022953 which is stunning quality and only 36.5 MB with a frame size of 1280 x 720. I'm wondering if anyone has an idea how he may have achieved this. The Codecs that he has used are AAC, H.264, MPEG-4 ODSM, MPEG-4 SDSM. I'm wondering if it may be necessary to use another compressing software to convert the exported full size QuickTime movie file to a quality file such as this.
    Any ideas???

    Hi All
    While waiting for comments to my question I contacted the producer to the video that I referred to above. When in doubt go to the source.
    His reply is…
    "I use the setting in Quicktime X, go to: File - Save As and in format select 1080p. Easy as pie"
    So I gave it a shot and I managed to get an awesome quality video at a greatly reduced file size, similar to what he had. I also discovered a powerful tool in Quicktime X : File > Save for web. This gives other great sizes and extra files and code for hosting on your own servers.
    If anyone has any other ideas I'd love to hear but this has fixed me for the moment

  • How to create executable(.exe) file to extract a .zip using winzip self extractor

    Hi i wanted to create an .exe file extract the content from .zip using winzip extractor,  please
    see the below piece of code. the same is working in 32bit machine, but not working in 64bit machine windows server 2008
      private bool CreateExeFile(string directoryPath, string zipFileName)
                bool status = false;
                string emuPath = String.Empty;
                emuPath = System.Configuration.ConfigurationManager.AppSettings["winzipSe32Loacation"];
                //string emuParams = @" -e " + directoryPath + "\\" + zipFileName + ".zip " + directoryPath;
              string emuParams = " " + directoryPath + zipFileName + ".zip -win32 -y "; 
                //string emuParams = " " + directoryPath + zipFileName + ".exe a " +zipFileName +".Exe -mmt -mx5 -sfx" + directoryPath;
                try
                    Process p = new Process();
                    ProcessStartInfo psI = new ProcessStartInfo(emuPath, emuParams);
                    psI.CreateNoWindow = false;
                    psI.UseShellExecute = true;
                    p.StartInfo = psI;
                    p.Start();
                    p.WaitForExit()
                    status = true;
                catch
                    status = false;
                return status;
    Regards
    Bharath

    Hello,
      What error with you program?
     if the reply help you mark it as your answer.
     Free No OLE C#
    Word,  PDF, Excel, PowerPoint Component(Create,
    Modify, Convert & Print) 

  • Zip and extract multiple files using java program

    how can i zip and extract multiple files using java program.

    Hi,
    Look into the java.util.zip and java.util.jar they expose methods to manipulate zip and jar files.

  • Extract XML output to file using PL/SQL

    Hi.
    Since Oracle 8.1.4.7.1 I am using XML output in my applications.
    With that version of Oracle, my method was:
    1. Make the select;
    2. Create a file somewhere in my C drive;
    3. Create the XML file header;
    3. For each row, insert into the file, with the correct format;
    4. Close the file;
    ... and, voilá ... the XML file was made.
    Now, with the Oracle 10g, I know that I have much more ways to do it:
    1. Package DBMS_XMLQUERY
    2. Statements like
    "SELECT XMLELEMENT("USERS", XMLELEMENT("nome_pessoa", e.nome_pessoa ||' - '|| e.login), XMLELEMENT ( "password", e.password)) AS "result"
    FROM pessoa e"
    3. Or finally using XML SQL Utility.
    My question, is that if there is any way that i can make it all of this automatically. If there is any procedure or method that allow me to do all this stuff in just one step:
    1. Select in XML output;
    2. Creation of file;
    3. Insertion of Select output in file and Close of File;
    Thankx,

    I'm assuming that you want to write to the file system of the server that the database is running on...
    you'll have to use utl_file
    See
    http://otn.oracle.com/docs/products/oracle9i/doc_library/release2/appdev.920/a96612/u_file.htm

  • Reading a Compressed File from a ZIP File, which is an entry of ZIP File

    Hello, Experts,
    Would it be possible somebody to help me with code example for the following problem?
    I want to read a compressed file from a ZIP file, which is an entry of ZIP File, without extacting/writing files on file system. Is this possible?
    Lets say we have a ZipFile1. There is ZipFile2 inside ZipFile1. And inside ZipFile2 is FileA. The scenario is reading FileA without extracting on file system.
    Thank you in advance for your help.
    Cheers
    RADY

    The classes you want to be using are java.util.zip.ZipInputStream and and ZipEntry from the same package. Construct the ZipInputStream with the input you have for the outer zip. Loop with ZipInputStream.getNextEntry until you find the inner zip you're looking for - that method returns a ZipEntry, and you get the name of the zip entry with ZipEntry.getName. Read the ZipInputStream from that point into some buffer, and read that buffer into a new ZipInputStream - rinse and repeat until you have the contents of the file in the zip in the zip...

  • Downloading BLOB to a file using pl/sql toolkit

    Created an Oracle Reports RDF file using the reports builder (9.0.2.x).
    Uploaded the file into the database in a BLOB column using the following code:
    >>>>
    SET VERIFY OFF
    DECLARE
    p_bfile BFILE ;
    p_blob BLOB ;
    BEGIN
    p_bfile := BFILENAME('CDR_REPORTS', '&1') ;
    INSERT INTO RPTIDE (RPTID, RPTMODULE) VALUES ('&1', EMPTY_BLOB()) RETURNING
    RPTMODULE INTO p_blob ;
    DBMS_LOB.FILEOPEN(p_bfile, DBMS_LOB.FILE_READONLY);
    DBMS_LOB.LOADFROMFILE(p_blob, p_bfile, DBMS_LOB.GETLENGTH(p_bfile));
    DBMS_LOB.FILECLOSE(p_bfile);
    COMMIT ;
    END ;
    <<<<<
    Now when we try to download the same file using pl/sql web toolkit (code pasted
    below), the file downloads fine (with exact same file size as before), but no
    longer can open the file in Reports Builder anymore. Get "Cannot open file"
    error in reports builder. Is it getting corrupt or am I doing something wrong?
    >>>>
    CREATE OR REPLACE PROCEDURE filedownload(p_rpt IN VARCHAR2) AS
    p_file blob;
    p_mime_type varchar2(50);
    p_offset integer := 1;
    p_len number;
    p_buf RAW(32000);
    p_buf_size integer:= 32000;
    BEGIN
    SELECT rptmodule, 'application/x-zip'
    INTO p_file, p_mime_type
    FROM rptide
    WHERE rptid = p_rpt ;
    OWA_UTIL.MIME_HEADER(p_mime_type);
    p_len := DBMS_LOB.GETLENGTH(p_file);
    WHILE p_offset < p_len LOOP
    DBMS_LOB.READ(p_file, p_buf_size, p_offset, p_buf);
    HTP.PRN(UTL_RAW.CAST_TO_VARCHAR2(p_buf));
    p_offset := p_offset + p_buf_size;
    END LOOP;
    EXCEPTION
    WHEN NO_DATA_FOUND THEN HTP.PRN('No document specified') ;
    WHEN OTHERS THEN HTP.P('filedownload: '||SQLERRM);
    END filedownload ;
    <<<<<

    The answer to this problem was to set the NLS_LANGUAGE for the DAD to an 8-bit character set since the database charset was 8-bit. It seems, by default, the web toolkit assumes a 7-bit character set.

  • How to use .dbf files zipped into a .zip file from within a java program

    i have a .zip file containing several .dbf files.
    the zip file is automatically downloaded regularly and data from the .dbf files is inserted into the database.
    how do i facilitate automatic extraction of a zip file or how do i fetch data from the .dbf file? (this cannot be done manually)
    anu.

    you could write a little polling class checking the zip file. you can use the java.util.jar package to extract the zip file (http://java.sun.com/docs/books/tutorial/jar/api/index.html). you could also use Jakarta ant (http://ant.apache.org/manual/index.html) to do this job (core task "zip") and call ant's target file on a regular basis (dependend on the OS you use, you can set os tasks/schedules).

Maybe you are looking for

  • Opinions sought: could Yosemite upgrade affect hardware?

    Hi there, I installed Yosemite on my late-2010 MacBook Pro last week and had a whole host of problems, including an erratic/unresponsive trackpad, which got worse the longer the computer was running. Due to some poor decisions on my part [!] I ended

  • Default interface

    Is there a way to revert back to the default user interface?

  • Can't receive faxes on macbook

    I have the external apple usb modem that plugs into the phone jack, and it seems like I have the fax and print preferences set up correctly. Anyone have any idea why I might not be receiving faxes? And also, is there any way to easily see the faxes t

  • Scheduled TMS_ # TMS_TP_IMPORT  background jobs fail with error code 0232

    Is anyone else having the problem we've just encountered since upgrading to ECC 6.0 and CRM 2007, where once setting up the automatic import ALL background jobs, to have all of the Transport Change Requests imported into the Q-Prod testing systems au

  • Restore default settings after using "Desktop 2 Login" app?

    Hi all! Downloaded the Desktop 2 Login app here: http://www.apple.com/downloads/macosx/icons_screensavers/desktop2login.html How do I restore the default settings after having run this? Thanks in advance!