Unzip Files WITHIN IFS?

At a recent demo, Oracle showed how IFS automatically expanded the contents of a zip file uploaded into the db. Now that I have 9iFS, I can't find how to do it... any help?

Chris, Portal 3.0.9 can do this, but I wasn't aware that IFS could as well.

Similar Messages

  • Unzip files within labview

    I have been playing around with the new zip functions in labview 8.  I like it, nice and simple.  Then I realized something.  They don't have any functions listed to unzip files?!?!  Am I missing something, or is there another method to call zip files in labview, unzip to a location, and then grab files from the unzip within labview programatically?  The only method I can think of is to have winzip installed on the machine so you can use the command line execute function (but that is an awful method IMHO).  I would have thought that if NI got the license to build zip files they would have also gotten the rights to include the unzipping as well.

    Mads wrote:
    Unzip functions in native G would be very useful, simply because that code is supported on the RT targets. There is an unzip option in the palette in LV 8.5, but it returns error 2 if I try to unzip anything with it...if the file only contains one file it works, but it retunrs the error and with more than one file inside the archive it fails....is it supposed to work, or is there still no proper unzip support?
    I have code I want to move from a PC to a RIO unit, but the lack of a G-version of unzip makes this difficult, the OpenG alternative is not native G so no luck there...It seems the VIs available in LV 8.5 could do the job, if only some minor bug-fixing was done(?)
    ZIP/Unzip support as native VIs is not very practical. Compression is a very tricky business and developing such algorithmes in a way that always works is not very easy and quite time consuming, not to mention that LabVIEW is not the ideal invironment to do low level bit shuffling and manipulation.
    Combine that with the fact that there are ready made and VERY throughly tested open source libraries with the needed functions (of course mostly in C) and you really realize that trying to reinvint that wheel in LabVIEW itself is simply an exercise in vain.
    The OpenG ZIP/UNZIP library is based on the wide spread zlib library that just about compiles on any C compiler that dates from after the early 1960ies and so it should be no problem to grab the according C source code from the OpenG Toolkit depository on sourceforge.net and recompile it with the correct C toolchain for your CRIO realtime target.
    Oh and if you mean to transport the unzip algorithme to the FPGA target instead of the realtime target, keep dreaming. Once the FPGA chips start to reach the 1 Billion gate count this could actually start to get feasable. 3 Million gates is really nothing for such a task.
    Rolf Kalbermatter
    Message Edited by rolfk on 11-28-2007 11:22 AM
    Rolf Kalbermatter
    CIT Engineering Netherlands
    a division of Test & Measurement Solutions

  • How to read/unzip a specific file within a zip file

    Hi,
    I have a file within a zip file that contains a timestamp - I want to read this timestamp and then create a destination directory for the remaining zip files to be unzipped into. Since I know the name of the file with the timestamp in it I thought I could create a zipfile and use getEntry to get the entry but then other than getting the size and name of the file I can't do much more with it like read it unless I use a stream (zipinputstream) instead of a file (zipfile) - do I have this right?
    Does this mean to get the content I would have to loop through possibly all the files using the stream until I come across the one I want - then get the timestamp and loop through them all again to write them to the destination directory? Or am I reading this wrong - seems a bit round about.
    Any suggestions would be greatly appreciated.
    Thanks

    this works though - and you don't have to loop through all the files - just use the ZipFile:
    ZipEntry ze = zipfile.getEntry("path/to/file");
    BufferedReader br = new BufferedReader(new InputStreamReader(zf.getInputStream(ze)));
    line = br.readLine;Thanks!

  • How to unzip a zip file within another zip file

    I've got code that successfully processes a file within a zip file.
    But now the zip file can also contain other zip files. How can I
    process a zip nested within a zip without actually extracting the
    files? It looks like I need a ZipFile object to be able to take
    advantage of the zip classes for reading zip entries. But the
    ZipFile methods want as an argument an actual file, as opposed
    to some object in memory. I can read the 'inner' zip file into a
    ZipInputStream object, but then how do I make that available for
    processing as a ZipFile? I've searched all over and cannot find
    anything anywhere that talks about working with nested zip files.
    Does anyone have any sample code that does this? Thanks!

    I have successfully done it.
    You cannot have the code - it is proprietary.
    However here are a few pointers:
    o Use ZipStreams rather than ZipFile.
    o ZipStream is just a filter on a stream, so you can have a zipstream open, read a ZipEntry, then ask for a substream for the stuff up to the next ZipEntry. Put a second ZipStream on that substream.
    o As I recall you have to watch out that your inner ZipStream does not do a close. (Everything will get closed.) Instead, there is another ZipStream method that will close without closing all the underlying streams.
    Hope this helps.

  • UNZIP file from ABAP

    Hi,
    I have a requirement to retrieve a zip file from the FTP Server, unzip it to the SAP Server and process the unzipped files. Retrieving the data from the FTP server should work via FTP commands which can be executed from within an ABAP program. However, the problem is unzipping these files via ABAP and put them on the server as well. 1. How to do this from within an ABAP Program? (unix commands?)
    2. Can I unzip these files with or without using the folder structure? (additional parameter for unix command?)
    Kind regards,
    Micky.

    REPORT ZTESTUNIX line-size 400
                    no standard page heading.
    selection-screen begin of block ucmd with frame title text-001.
    parameters: unixcom like   rlgrap-filename.   " ...SAP Interface file
    selection-screen end of block ucmd.
    data: begin of tabl occurs 500,
            line(400),
          end of tabl.
    data: lines type i.
    start-of-selection.
      refresh tabl.
      call 'SYSTEM' id 'COMMAND' field unixcom
                    id 'TAB'     field tabl[].
      describe table tabl lines lines.
      loop at tabl.
        write:/01 tabl-line.
      endloop.
      skip 2.
      if lines = 0.
        write:/ 'NO Occurances were found'.
      else.
        write:/ 'Command was successfully executed' color col_total.
        write:/ 'Number of entries in Search' color col_total,
                 lines color 6.
      endif.
    end-of-selection.
    while running give the command as
    <b>unzip test.zip  -x dir</b>
    then it will unzip test.zip file to dir called dir.
    you can specify the filepath instead of file...
    regards
    vijay

  • Unzip file

    Using this code:
    Inflater inflater = new Inflater();
    FileInputStream fis = new FileInputStream("c:\\a\\unzip.zip"); //args[0].toString()
    BufferedInputStream bis = new BufferedInputStream(fis);
    ByteArrayOutputStream bos = new ByteArrayOutputStream();
    int len;
    while ((len = bis.read()) != -1)
    bos.write(len);
    byte[] input = bos.toByteArray();
    byte[] output = new byte[2000000];
    inflater.setInput(input);
    inflater.inflate(output);
    to inflate a ZIP file I got following Exception:
    java.util.zip.DataFormatException: unknown compression method
    at java.util.zip.Inflater.inflateBytes(Native Method)
    at java.util.zip.Inflater.inflate(Inflater.java:195)
    at java.util.zip.Inflater.inflate(Inflater.java:212)
    at UnZIP.UnZIP.main(UnZIP.java:27)
    Exception in thread "main"
    What's wrong with my code???
    Thanks
    Frank

    Take a look at class ZipFile.
    o Create one on your input.
    o Get an enumeration of the entries - the headers for your files within the zip file.
    o Ask for the input stream of the file you want.
    o Read the data - it is unzipped for you.

  • Unzip files in Oracle

    Is there any solution to unzip a file within Oracle utilities then can be used to load an Oracle table and then schedule the process to unzip the file?
    Thanks in advance

    Yes it would be possible if you like coding ;).
    You can write for example a java class that will unzip the file (using java.util.zip), you can call methods directly from Oracle, using external procedures.
    Then from unzipped file you can create an external table and using that table load your database table, of course you can also also use SQL*Loader to load data after you unzip the file.
    But I think the easier option would be to write a program / scripts that will unzip the file on OS level, and then from Oracle you will create external table or using sqlldr utility you will load the data.
    Best Regards
    Krystian Zieja / mob

  • Unzipping Files in the wrong folder

    Hi
    I am trying to unzip files. It works fine except that it unzips the files at the root. So i have tried specifying the path for making the directory (in which the unzipped files are stored). But that doesnt seem to work. Now i am unable to find the unzipped files. CAN ANYONE HELP PLEASE
    public static void unzipFile(String zFile)
            Enumeration entries;
            ZipFile zipFile;
           try {
                zipFile = new ZipFile(zFile);
                File file = new File(zipFile.getName());
                String fname = file.getName();
               String substr1 = fname.substring(0, fname.indexOf("."));
                String filepath = "/data/psawant/temp";
                File dir = new File(filepath, substr1);
                try {
                        dir.mkdir();
                catch (Exception fe)
                      System.err.println("Unhandled exception:");
                        fe.printStackTrace();
                        return;
                entries = zipFile.entries();
                while(entries.hasMoreElements()) {
                    ZipEntry entry = (ZipEntry)entries.nextElement();
                    if(entry.isDirectory())
                         // Assume directories are stored parents first then children.
                        System.err.println("Extracting directory: " + entry.getName());
                                          (new File(entry.getName())).mkdir();
                        continue;
                    } //end of if
                    System.err.println("Extracting file: " + entry.getName());
                    copyInputStream(zipFile.getInputStream(entry),
                        new BufferedOutputStream(new FileOutputStream(entry.getName())));
                 } //end of while
                zipFile.close();
                   } catch (IOException ioe)  {                 }
             } //end of unzip function
    public static final void copyInputStream(InputStream in, OutputStream out)
        throws IOException
            byte[] buffer = new byte[1024];
            int len;
            while((len = in.read(buffer)) >= 0)
            out.write(buffer, 0, len);
            in.close();
            out.close();
    Any help is apprciated
    Thanx

    Sorry I got it this time. I had overlooked the new File. I added that & it works fine but there seems to be some problem
    If the folder has another folder inside . it doesnt show that one. or rather just unzips one folder & no folders inside it. But i guess i can check for that
    Thanx for u r help
    Have a nice day

  • Batch code for running a find/replace all on multiple files within a source floder/directory

    What I need is a Batch source code that will open all files in a folder/directory and run a find and replace_all query within them and then save all the files.  The files were created in Illustrator and saved using the Scene7 FXG format extension.    These files will be uploaded into Scene7 as a group after the find and replace macro/query is run on the code.  The same find and replace query will be the same for all the files.  Basically this function or batch process  will save time in setting the same parameters all at one time instead of having to set the parameters individually in scene7.
    a source code sample of the find/replace module macro might be              searchString:  s7:colorvalue="#FFFFFFFF" 
                                                                                                                          replaceString: s7:colorValue="#&txtclr;"
                                                                                                                          searchWhat   "FXG document"    
                                                                                                                             searchSource:  true,
                                                                                                                        useRegularExpressions:   true
    I have no problems creating batch files within Ai and PhotoShop but I have limited programming skills in how to create source code for manuipulating documents outside of those apps or in a OS invironment.
    I could probably come up witha simple program to do what i want for one document but i get lost when dealing with multiple documents in a source folder (prolbem is,  I will be dealing with thousands of documents not 100 or less)
    If anything which Adope cloud app would work best:  Dreamweaver or Edge code   (or just use my notepad)

    What I need is a Batch source code that will open all files in a folder/directory and run a find and replace_all query within them and then save all the files.  The files were created in Illustrator and saved using the Scene7 FXG format extension.    These files will be uploaded into Scene7 as a group after the find and replace macro/query is run on the code.  The same find and replace query will be the same for all the files.  Basically this function or batch process  will save time in setting the same parameters all at one time instead of having to set the parameters individually in scene7.
    a source code sample of the find/replace module macro might be              searchString:  s7:colorvalue="#FFFFFFFF" 
                                                                                                                          replaceString: s7:colorValue="#&txtclr;"
                                                                                                                          searchWhat   "FXG document"    
                                                                                                                             searchSource:  true,
                                                                                                                        useRegularExpressions:   true
    I have no problems creating batch files within Ai and PhotoShop but I have limited programming skills in how to create source code for manuipulating documents outside of those apps or in a OS invironment.
    I could probably come up witha simple program to do what i want for one document but i get lost when dealing with multiple documents in a source folder (prolbem is,  I will be dealing with thousands of documents not 100 or less)
    If anything which Adope cloud app would work best:  Dreamweaver or Edge code   (or just use my notepad)

  • Just moved to Mac from Windows, so far biggest headache is the way folders are treated. I manage several very large websites and involve a lot of files within folders and I need the folders to show the date the last file inside it was changed?

    In my FTP client I can click to sort by date modified which is fine if you are in a folder and then it shows the file dates correctly - but any folders within the root folder don't they seem to display randomly all together at the bottom of the list and it is a nightmare trying to find what folders have files in them that have been changed.
    Is there any way to get the folder to register the last date of a file within it that was modified?

    I dont know the answer yet, but i have noted what appears to be a bug in 10.9 in how it handles folder dates.  Right now i am seeing folder modified dates changing randomly ot "today" - whatever date the parent folder was opened.
    In the past my folders "modified" date was always the same as the last modified date of the items within.  But this only moved down ONE level - if a subfolder's entries were updated the "gradfather" folder did not update.
    But now severa people are reporting random, incorrect folder dates. I hoep this will be corrected soon, but who knows?
    Grant

  • How to write to a log file within a JSP

    Hello everybody,
    do you know how to write to a log file within a JSP.
    my code is (/space/SP/tlf/ExcepcionJava.jsp):
    <html>
    <body bgColor=#C4E1FF>
    <%@ page import="java.io.*" %>
    <%
         FileWriter salida = new FileWriter(response.encodeURL("log.txt"));
         salida.write(request.getParameter("errorMsg"));
         salida.close();
    %>
    </body>
    </html>.. I run under Solaris, Jrun 2.3.3
    I have also test with getServletContext().getRealPath(), but I get /netsrv/nes/docs/ instead of /space/SP/tlf/

    Hi,
    Give the full path of the log file to the FileWriter. Such as;
    FileWriter salida = new FileWriter(response.encodeURL("/usr/local/tomcat/logs/testlogs/log.txt"));
    nurettin

  • Okay, i have 2 bugs with maverick.  First, when I delete a file within a window, the files deletes but the preview doesn't delete until I close the window and reopen it.  Second, I work on a network of computers and the search feature is now buggy...

    Okay, i have 2 bugs with maverick.  First, when I delete a file within a window, the files deletes but the preview doesn't delete until I close the window and reopen it.  Second, I work on a network of computers and the search feature is now buggy...  When I search for a file, A) it asks me if it's a name, or it wont produce anything, and B), its slower than in prior OS versions and in some instances I have to toggle to a different directory and go back to my original directory in the search: menu bar or the search wont produce anything...  Very buggy. 

    It appears to me that network file access is buggy in Maverick.
    In my case I have a USB Drive attached to airport extreme (new model) and when I open folders on that drive they all appear empty. If I right click and I select get info after a few minutes! I get a list of the content.
    It makes impossible navigate a directory tree.
    File access has been trashed in Maverick.
    They have improved (read broken) Finder. I need to manage a way to downgrade to Lion again.

  • HT4527 I recently moved my files from windows xp to a new windows 8.1 pc using PCMover Express. When I open up a file within itunes, the music doesn't start in itunes, it starts in xbox music player. How do I move my itunes file so it opens in itunes?

    I recently moved my files from a windows xp pc to a new widows 8.1 pc using PC Mover Express. When I open up a file within the itunes folder, it opens to the default player xbox 360 media player. How do i transfer my itunes folder so it opens up in my itunes account?

    Hi kozzie17,
    If your music is no longer opeing in iTunes by default on your Windows machine, you may find the following article helpful:
    iTunes for Windows: How to make iTunes the default application for music and audio files in Windows Vista and Windows 7
    http://support.apple.com/kb/HT3202
    Regards,
    - Brenden

  • Can you manually move files within a folder to put them in a specific order?

    I am new to mac, I was wondering if there is an app maybe that you could move files within a folder (ie photos) to make them in a specific order and then rename them, I used to be able to do this with my windows xp..... cant seem to make it happen with my new macbook pro and from what i can gather it cant be done? can it? Thanx in advance.........

    Thomas, I have set the view to maunally but when i move the icons they return to where they were sitting..?
    In the Finder? You probably have a sort selected in the Sort By submenu in the View menu. However, the order of icons in icon view won't have any influence on the order of the images in the slideshow, I think. Use iPhoto, this is one of the things it's made for, the Finder is not.

  • How do I encrypt my external hard drive and subsequently a specific file within it, using my Mac? I tried creating a disk image but permission was denied.

    Encrypting an external hard drive and specific folders within. Permission denied using disk image.

    VKP90 wrote:
    When I tried to encrypt a single file within the hard drive itself, I got the following: Disk Utility Progress: Unable to create "Name of my file" (Permission Denied).
    When I tried encrypting the entire hard disk itself, I got: A GUID Partition Table (GPT) partitioning scheme is required.
    I have also currently used Time Machine on the external hard drive, along with saving other data. Hence, I am not sure if partitioning is going to delete any of this (a video I watched mentioned that using the + button when creating partitions retains current data). Backing up the external hard drive is out of the option since it is the back up to my Mac.
    You can't encrypt a single file. I'm not sure what you did to try. You can make an encrypted disk image which begins with a folder, if desired. Or, you can just create a blank, encrypted disk image, then move your desired files into that.
    While you could partition off the free space without erasing the disk, you cannot encrypt it because you need a GUID Partition table which requires you to repartition the entire drive, not just the free space.

Maybe you are looking for

  • Placed pdf showing "x" where numbers should be

    greetings. i'm placing a pdf created by another designer into indesign for printing layout purposes.  the pdf is a magazine - multiple pages  w/ articles, advertisements, etc. here's the issue:  some numbers in the ad's (i.e., the company's address,

  • How can it be done?

    I have heard about people compile java apps into native machine code, but how can it be done? I have heard that the javac compiler, and netbeans is also written in Java, but as I can see they are Win32 EXEs, as well as native for other platforms, is

  • Can java app be in win sys tray?

    Hello all. Can a JAVA application be displayed in the system tray? If so can someone point me in the right direction for this? Thanks

  • My virtual printer has an error status

    i have just downloaded the adobe createpdf virtual printer and have just used it to 'print my first document' however the document is still in the que for the printer and has a status of 'error' i have called tech support but i dont think they are op

  • Removing currency system

    When using the PLD, and a system variable, how can the currancy symbol be removed?