Unzip zip

Hi all,
I am trying to unzip in sender CC and Zip at Receiver CC.
I am using AF_Modules/PayLoadZipBean at both sender and receiver cc's
I am getting the error below
Attempt to process file failed with com.sap.engine.services.jndi.persistent.exceptions.NameNotFoundException: Object not found in lookup of PayLoadZipBean
what could be the reason for this error?
Thanks,
Srinivas

Hi,
Use adapter module PayloadZipBean to zip/unzip.
/people/stefan.grube/blog/2007/02/20/working-with-the-payloadzipbean-module-of-the-xi-adapter-framework
http://help.sap.com/saphelp_nw04/helpdata/en/45/da9358a1772e97e10000000a155369/frameset.htm
Thanks,
Satya Kumar..

Similar Messages

  • Easy way to unzip zipped files?

    I'm trying to figure out an easy way to unzip zipped files.  I'm using C# in VS 4.5.
    I download this:
    http://dotnetzip.codeplex.com/
    I couldn't get any dlls installed.  I couldn't set any reference to anything.
    I also tried to follow the example here:
    http://www.danderson.me/posts/zipfile-class-system-io-compression-filesystem/
    I can't find anything titled 'System.IO.Compression.dll'.  I set a reference to these two:
    System.IO.Compression.FileSystem
    System.IO.Compression
    That did nothing at all.
    For instance, I think this should work:
    using System;
    using System.IO;
    using System.IO.Compression;
    namespace ConsoleApplication
    class Program
    static void Main(string[] args)
    string startPath = @"c:\example\start";
    string zipPath = @"c:\example\result.zip";
    string extractPath = @"c:\example\extract";
    ZipFile.CreateFromDirectory(startPath, zipPath);
    ZipFile.ExtractToDirectory(zipPath, extractPath);
    However, i keep getting an error message that says 'The name 'ZipFile' does not exist in the current context'.
    Knowledge is the only thing that I can give you, and still retain, and we are both better off for it.

    Hi
    Please include the below namespace and try it out.
    System.IO.Compression.FileSystem
    The code would be like this.
    using System;
    using System.IO;
    namespace ConsoleApplication
    class Program
    static void Main(string[] args)
    string startPath = @"c:\example\start";
    string zipPath = @"c:\example\result.zip";
    string extractPath = @"c:\example\extract";
    System.IO.Compression.ZipFile.CreateFromDirectory(startPath, zipPath);
    System.IO.Compression.ZipFile.ExtractToDirectory(zipPath, extractPath);
    Please note that you need to add a DLL reference to the framework assembly
    System.IO.Compression.FileSystem.dll
    Please let me know in case of any questions you may have around this. Thank you. 

  • How to check & unzip zip file using java

    Dear friends
    How to check & unzip zip file using java, I have some files which are pkzip or some other zip I want to find out the type of ZIp & then I want to unzip these files, pls guide me
    thanks

    How to check & unzip zip file using java, I have
    ve some files which are pkzip or some other zip I
    want to find out the type of ZIp & then I want to
    unzip these files, pls guide meWhat do you mean "other zip"? Either they're zip archives or not, there are no different types.

  • When I unzip .zip files I get an alias ?

    I've unzipped .zip files for years, but with Lion, unzipping a .zip file (created in Snow Leopard) does not result in a set of files, it results in a set of aliases which do not point to any file when I select "Show Original."
    Any advice appreciated.

    The current version of the built-in Archive Utility has problems with some zip files. Use "The Unarchiver" instead -- free in the App Store.

  • I'm running Firefox 7.0.1 and since the September 30 security update I can no longer unzip zipped files unless I reboot my computer first or run it in Safe Mode. Can anyone help me roll Firefox back to before the update?

    I regularly download zipped files from Survey Monkey. Since the latest security update, the zipped files download to my computer, but when I try and unzip them I get a message telling me the file is in use by another application. If I reboot, I can unzip the file, or if I'm in Safe Mode when I download the file it unzips fine.
    I have tried three different unzip apps and all have the same trouble. Everything was working well after the September 5 update.
    I'm running Windows XP with McAfee antivirus, Spybot, Ad-Aware and Malbytes Anti-malware. All are up to date.

    The URL below is to Adobe's Acrobat update page.
    There you'll find each of the incremental updates to Acrobat 10.
    They must be installed one at a time in sequence. 
      http://www.adobe.com/support/downloads/product.jsp?product=1&platform=Windows
    Now, if after attempted updates fail then you'll need to speak with your IT Department.
    You need your install of Acrobat 10 updated to dot version 10.1.7.
    Be well...
    Message was edited by: CtDave

  • Auto unzip "zipped" files inside OWB. possible?

    Scenario:
    Client will be placing large fixed-delimited files in a directory w/c are in ZIPPED format. This file directory will be my source location.
    Question?
    Is there a way to automate the process of unzipping the files in OWB and placing it in the same directory. I am thinking of using a process flow but I cannot find any utility activity for this. Any suggestions?
    Thanks
    -carlo

    I haven't done it for a while, but I manage to archive files from the workflow via a script.
    In the workflow you have to use the ExternalProcess command.

  • Cannot unzip .zip even with Archive Utility

    Hi,
    I have problem unzipping a .zip file. When I use the Archive Utility to unzip it, it yields a file with the same name with .zip.cpgz on its end. When I subsequently make another trial - to unzip this new file, it yields the very same file only with .zip.cpgz 2 in the end of its name. A repeated process (now with any of these files, either original, first .cpgz or second .cpgz 2) yields a file with appropriate .cpgz #. Repeating the process further seemed to me futile. I hope writing here would in the long run yield an unzipped original .zip file.
    Many thanks for your help,
    pwyll.

    You probably won't see this, but did you ever zip a file during this time and then unzip it with another program and find data missing? The same thing happened to me where I zipped an assignment with archive utility, then when I tried to unzip it it would just make copy after copy. Once it was unzipped by my professior there was missing data. THen when I downloaded another program to unzip the original zipped file, that data was missing, too! I tried it again and zipping the file kep deleting part of my file!

  • Unzipping zip, rar, etc.

    Hi! I would like to unzip some files, but my archive manager dosent support zip or rar files, anyone know about a program for arch, that support zip, rar and other zip-files?
    thnx:P

    I use unrar for rar's and unzip for zip's, both from the CLI.
    pacman -S unzip unrar

  • Unzipping ZIP file - Best way

    Hi,
    I found many ways to unzip a ZIP archive,
    but which is the best way in term of performance ?
    I found some examples doing :
    ZipFile zipFile = new ZipFile( file ) ;
    Enumeration entries = zipFile.entries() ;
    while( entries.hasMoreElements() ) {
    ZipEntry entry = ( ZipEntry )entries.nextElement() ;
    // extract entry
    Others :
                   ZipEntry zipentry;
                   zipinputstream =
    new ZipInputStream(
    new FileInputStream(zipFile));
                   zipentry = zipinputstream.getNextEntry();
                   while (zipentry != null) {
    // extract entry
    zipentry = zipinputstream.getNextEntry();
    For extracting the entries I saw examples using BufferedInputStream and BufferedOutputStream
                             BufferedInputStream is =
                                  new BufferedInputStream(zipFile.getInputStream(entry));
                             int currentByte;
                             // establish buffer for writing file
                             byte data[] = new byte[1024];
                             // write the current file to disk
                             FileOutputStream fos = new FileOutputStream(destFile);
                             BufferedOutputStream dest =
                                  new BufferedOutputStream(fos, 1024);
                             // read and write until last byte is encountered
                             while ((currentByte = is.read(data, 0, 1024)) != -1) {
                                  dest.write(data, 0, currentByte);
                             dest.flush();
                             dest.close();
                             is.close();
    others using ZipInputStream and FileOutputStream :
    zipinputstream =
    new ZipInputStream(
    new FileInputStream(zipFile));
                        int n;
                        FileOutputStream fileoutputstream;
                        File newFile = new File(entryName);
                        String directory = newFile.getParent();
                        if (directory == null) {
                             if (newFile.isDirectory())
                                  break;
                        fileoutputstream =
                             new FileOutputStream(destinationname + entryName);
                        while ((n = zipinputstream.read(buf, 0, 1024)) > -1)
                             fileoutputstream.write(buf, 0, n);
                        fileoutputstream.close();
                        zipinputstream.closeEntry();
    Can u tell me which solution to use for looping through the files (by this Enumertion or by checking nextEntry is null ?)
    And for the extracting (use of BufferedInp. BufferedOutp. or ZipInputStream and FileOutputStream?) in term of performance
    Thank u for any tips
    Message was edited by:
    matt.webdev
    Message was edited by:
    matt.webdev
    Message was edited by:
    matt.webdev

    Hi there,
    Pl see code below. For example, create a file named "interest"on your c:\test\interest in notepad with your recordkey line info.
    recordKey     dollarAmount     interestRate     years
    1234          50          3          4          
    5678          60          4          5
    9876          70          5          6
    8765          80          6          7
    program below extracts recordKey line info if available in file.
    import java.io.*;
    public class SearchString
         String message = "9999";
         public static void main(String args[])
              SearchString ss = new SearchString();
              ss.searchFile("1234");
         public String searchFile(String sRecordKey)
              try
                   BufferedReader br = new BufferedReader(new FileReader("c:/test/interest.txt"));
                   String str = "";
                   while((str = br.readLine()) != null)
                             // passing a specific recordKey to search
                             if (str.indexOf("5678") != -1)
                                       System.out.println(str);
                                       message = str;
              catch (IOException e)
                   System.out.println("Could Not Search File");
              return message;

  • Unzip - zip file

    Can any one give some info regarding extracting a uploaded zip file on server from my web application..
    my environment is...
    IBM websphere
    Struts frame work.
    My uploaded zip file contains some excel sheets and some images.
    each image name is mentioned in excel sheet.
    I need to migrate the contents in excel to database.
    My each excel sheet contains a Learning Course for a online exam with couple of Questions.
    each Question in may containg some image.
    so, my problem is uploading the contents of course in excel sheet to database along with images names as
    course1_question1_imagename.gif
    I am expecting some suggestions and help from the FORUMS.

    I am expecting some suggestions and help from the
    FORUMS.
    good luck

  • Does SL have a built-in zip/unzip utility?

    I was wondering if I can unzip zipped files in SL or if I will need to purchase a utility like Stuffit?

    Yep, it sure does.
    From the help menu:
    To compress items:
    Do any of the following:
    Select the item or items you want to compress and choose File > Compress.
    Control-click an item and choose Compress from the shortcut menu.
    In a Finder window, select one or more items and choose Compress from the Action menu (looks like a gear).
    If you compress a single item, the compressed file has the name of the original item with the .zip extension. If you compress multiple items at once, the compressed file is called Archive.zip.
    To uncompress (expand) an item:
    Double-click the .zip file.
    Basically you can just right click (control click) on a folder or group of files and compress them. To uncompress just a simple double click will do it.
    Hope that helps

  • Why won't my mac won't unzip downloaded zip files anymore?

    ive been using my mac to unzip zip arhcive files ive downloaded from the internet and for the past few months ive had to troubles at all. but more recently my mac wouldnt actuallty zip the files. so i started using a free application in the app store called stuffit expander. but now even stuffit expander wont unzip my files. what is happening? the stuffit expander just says it is unable to recognize the file type which makes no sense, and when i use the default unzip application already on my mac it just turns the zip file into a file with the extension .cpgz

    Solved
    All you need to do is go to:     ~/Library/Preferences/  (⇧⌘G)
    find and delete this plist:  com.apple.archiveutility.plist
    Restart your mac.
    Try any zip, Enjoy!    
    P.S. Dont worry, system will generate new working plist as well

  • Howto use zipped-file for payload?

    hi experts,
    in our interface, we get a message with a zipped xml-document. so i have to change the "main payload" to the attachment and then unzip the file.
    to swap the payload i used the following entry in the "modul"-tab:
    AF_Modules/PayloadSwapBean, local enterprise bean, transform
    keys:
    transform, swap.keyName, payload-name
    transform, swap.keyValue, attachment-1
    --> i think this works, because in the response message i see only the payload "attachment-1"
    but i am not able to unzip the file.
    i used the PayloadZipBean with the following values:
    AF_Modules/PayloadZipBean, local enterprise bean, unzip
    keys:
    unzip, zip.mode, unzip
    what am i doing wrong, or did i forgot something?
    thx 4 your help!

    Hi dieter,
    in your sender CC (tab module), try that:
    Processing Sequence:
    Nbr     Module Name                     Type                    Module Key
    1     AF_Modules/PayloadZipBean     Local Enterprise Bean     unzip
    2     AF_Modules/PayloadSwapBean     Local Enterprise Bean     swappayload
    3     CallSapAdapter                     Local Enterprise Bean     0
    Module Configuration:
    Module Key               Parameter Name     Parameter Value
    swappayload          swap.keyName     content-type
    swappayload          swap.keyValue     application/xml
    unzip                     zip.mod         unzip
    Regards.
    Mickael

  • Problem in unzip a file

    hai,
    Iam trying to unzip a file but its not working.
    //Unzip a file
      final int BUFFER = 2048;
      String zfname=application.getRealPath("/") + "temp/Bulk.zip"; 
           File  zf=new File(zfname);
      try {
             BufferedOutputStream dest = null;
             FileInputStream fis = new FileInputStream(zf);
             ZipInputStream zis = new ZipInputStream(new BufferedInputStream(fis));
             ZipEntry entry;
             while((entry = zis.getNextEntry()) != null)
                                       System.out.println("Extracting: " +entry);
                     int count;
                     byte data[] = new byte[BUFFER];
                    // write the files to the disk
                    File outFile=new File(outPath);
                    //FileOutputStream fos = new FileOutputStream(outFile);
                    FileOutputStream fos = new FileOutputStream(entry.getName());
                    dest = new BufferedOutputStream(fos, BUFFER);
                    while ((count = zis.read(data, 0, BUFFER))!= -1)
                        dest.write(data, 0, count);
                    dest.flush();
                    dest.close();
             zis.close();
          } catch(Exception e) {
             e.printStackTrace();
    Bulk.zip folder has the following files:
    Bulk/test.txt
    Bulk/fm.jsp
    I get the following exception
    java.io.FileNotFoundException: Bulk\test.txt
    (The system cannot find the path specified)
    Iam i making mistake in this line
    FileOutputStream fos = new FileOutputStream(entry.getName());
                    dest = new BufferedOutputStream(fos, BUFFER);Thanks,
    Thanuja.

    ok vijay iam so sorry for not mentioning how i rectified it. somehow i missed it. may be was bit excited when i got the result.
    anyways below code worked.
    //Unzip a file
        String zip_fname=request.getParameter("zfilename")!=null?request.getParameter("zfilename"):"";
        String fromZip=zip_fname;
        //out.println("FromZip:"+fromZip);
        File zipFname=new File(newFileName);
        String toLocation=newFilePath; //path to unzip the file
        String seperator = System.getProperty("file.separator");
        System.out.println("unzipping zip file to "+toLocation);
        try
            BufferedOutputStream dest = null;
            File zipDir = new File(toLocation);
             zipDir.mkdir();
            ZipFile zip = new ZipFile(fromZip);
            final int BUFFER = 2048;
            FileInputStream fin=new FileInputStream(fromZip);
            ZipInputStream zis = new ZipInputStream(new BufferedInputStream(fin));
            ZipEntry entry;
            while((entry = zis.getNextEntry()) != null)
                     //System.out.println("Extracting: " +entry);
                     int count;
                     byte data[] = new byte[BUFFER];
                     String zip_Fname=entry.getName().substring(entry.getName().lastIndexOf("/")+1);
                        if(!zip_Fname.equals(""))
                            zipFiles.add(zip_Fname);
                  if(!zip_Fname.equals(""))  
                     FileOutputStream fos = new FileOutputStream(toLocation + seperator + entry.getName().substring(entry.getName().lastIndexOf("/")+1));
                     dest = new BufferedOutputStream(fos, BUFFER);
                     while ((count = zis.read(data, 0, BUFFER))!= -1)
                        dest.write(data, 0, count);
                    dest.flush();
                    dest.close();
             zis.close();
        catch (Exception ex)
            unZipResult++;
            System.out.println(ex);
        }Thanks,
    Thanuja.

  • 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.

Maybe you are looking for

  • I can't get mail to work after complete re-install

    Every time I open mail I can click on one message, when I click on the second it hangs and must be force quit. I deleted preferences, mail folder, etc. and reinstalled mail. Problem still exists. I am able to access the account with my iphone and t-b

  • Report format issue.,

    Hi all I have below values to create report. can anyone provide any inputs to get the format which i given below please. Chars:           customer, calmonth. Key Figures: value, quantity, total (calculated key figure already defined) *Expecting forma

  • Problems installing Adobe Acrobat Pro X (language mix-up)

    Hey, I have a license for the Adobe Creative Suite 5.5 Design Standard in English. I have no problems whatsoever installing and using InDesign, Illustrator and Photoshop. However when I try to open Acrobat (from the install CD I installed the other a

  • POP3Service.log file is 1.6gb

    Hi I read on the forums that the POP3Service log should automatically trim at 450MB to 400MB I have just checked my log and clearly this isn't happening. It is 1.6GB in size.... (95% of the size of the Logs folder) How do I fix this? Obviously I need

  • Trouble saving encrypted PDF to MAC

    I am having trouble saving my EStatement to my computer - but only when I try to "save as" to my home MAC. I don't have any trouble saving the exact same EStatement it to my work PC (without having to enter any password). I have saved several EStatem