File To be Zipped

Dear Friends
we are working on Data compression of a file for which I have to develop an Adapter Module. I have Created a EJB project in NWDS for the same and I need some library files like   aii_af_mp.jarand aii_af_ms_api.jar which should be downloaded from SAP Service Market place. I am unable to download the files.
One more thing  can anyone suggest me like are there any other possibility that a file can be compressed. Also suggest me like how can we use external testing tools to test and validate the data.
regards
chandra

Hi Chandra
These jar files can be found on your XI installation:
/usr/sap/<SYSID>/DVEBMGS00/j2ee/cluster/server0/bin/services
/usr/sap/<SYSID>/DVEBMGS00/j2ee/cluster/server0/bin/ext
You can also do a search for the file names.
ejb20.jar can also be downloaded from SUN.
This may help you
http://www.alphaworks.ibm.com/tech/jarclassfinder/download
/people/kirupanand.venkatapathi2/blog/2006/01/02/using-jar-class-finder
Also see this url:
https://www.sdn.sap.com/irj/sdn/downloaditem?rid=/library/uuid/cfc19866-0401-0010-35b2-dc8158247fb6
have a look at stefan's reply in the below thread
Re: Required JAR files for XMLPayload and ModuleData
refer this thread for Zip
Re: Unzipping & zipping of a file
<b>Pls rewards if useful</b>

Similar Messages

  • How to exreact multiple pdf files from a zip files from application server to presentation server

    Hello exprts,
    I am passing one pdf file and one text file to zip file in apllication server through my custom program and then downloading it using standard function module to my desktop. its working fine. Then I added  another pdf file to my zip file. But only single pdf file is getting download . So can you please help me regardiong this issue? 

    Dear Experts ,
    I finded out the way to extrcat pdf files in presentation server. But now my problem is that I am not able to add multiple pdf files in a zip file. When I am adding new pdf file then older one is not coming in read data set. So please kindly tell me how can I add multiple pdf file in my zip file and again I can get all the pdf files from here.

  • Grey background while saving pdf file as a ZIP in IE browser

    I am getting grey background while saving pdf file as a ZIP file in IE browser like below screen shot
    The pdf open properly but  when I click on save button on below screen it become grey.
    The file is getting saved properly.
    But the same thing working fine in firefox(I will not become grey while saving)
    we are using adobe 11 version.

    I am getting grey background while saving pdf file as a ZIP file in IE browser like below screen shot
    The pdf open properly but  when I click on save button on below screen it become grey.
    The file is getting saved properly.
    But the same thing working fine in firefox(I will not become grey while saving)
    we are using adobe 11 version.

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

  • Formatting lost in the text file, got after zipping.

    Hello ABAP gurus,
    A text file has to be zipped .I have used the class method CL_ABAP_ZIP-SAVE() to create a zip file in the application server.    The zip file is double clicked and the text file is opened.
    The formatting is lost in the text file, got after zipping.
    Please let me know how I maintain the formatting in the zip file.
    Thanks.
    Edited by: GVVisweswara . on May 5, 2011 5:17 PM

    Hi.,
    Check this link: [Zip text file using Cl Zip|http://www.saptutor.org/?p=59]
    also this wiki., http://wiki.sdn.sap.com/wiki/display/ABAP/CL_ABAP_ZIPusage-ZippingABAPreportoutput
    hope this helps u.,
    Thanks & Regards
    Kiran

  • Problem with compressing unicode file names in zip file

    Hi Everyone,
    I have a problem while compressing the unicode file name in a zip file. I used the below code for compressing the unicode files.
    String[] source = null;
    // C:\\TestData\\unicode_filename.txt :  unicode_filename.txt is the file created in japanesse language
    source = new String[] {"C:\\TestData\\temp_properties.xml","C:\\TestData\\unicode_filename.txt" };
    byte[] buf = new byte[1024];
    // Create the ZIP file
    String target = "C:\\TestData\\target.zip";
    ZipOutputStream out = new ZipOutputStream(new FileOutputStream(target));
    // Compress the files
    for (int i = 0; i < source.length; i++)
         FileInputStream in = new FileInputStream(source);
         // Add ZIP entry to output stream.
         String fileName;
         File tempFile;
         ZipEntry zipEntry = new ZipEntry(source[i]);
         fileName = zipEntry.getName();
    zipEntry = new ZipEntry(fileName);
    zipEntry.setMethod(ZipEntry.DEFLATED);
    getUTF8Bytes(source[i]);
    // here I'm unable to find the unicode files and not able to understand.
    out.putNextEntry(zipEntry);
    // Transfer bytes from the file to the ZIP file
    int len;
    while ((len = in.read(buf)) > 0) {
    out.write(buf, 0, len);
    // Complete the entry
    out.closeEntry();
    in.close();
    // Complete the ZIP file
    out.close();Please help me how to fix this issue.
    Thanks                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

    Hi,
    Thanks for your time for looking into my query.
    Please check the below code for debugging the issue and throw your comments/suggestions for fixing the issue.
    import java.io.File;
    import java.io.FileInputStream;
    import java.io.FileNotFoundException;
    import java.io.FileOutputStream;
    import java.io.IOException;
    import java.util.zip.ZipEntry;
    import java.util.zip.ZipOutputStream;
    public class ZipTest
      public static void main(String[] args) {
              String[] source = new String[] {"C:\\TestData\\APP_Properties.xml","C:\\TestData\\??.txt" };
              byte[] buf = new byte[1024];
              try {
                   // Create the ZIP file
                   String target = "C:\\TestData\\target.zip";
                   ZipOutputStream out = new ZipOutputStream(new FileOutputStream(target));
                   // Compress the files
                   for (int i = 0; i < source.length; i++) {
                        FileInputStream in = new FileInputStream(source);
                        // Add ZIP entry to output stream.
                        String fileName;
                        File tempFile;
                        ZipEntry zipEntry = new ZipEntry(source[i]);
                        fileName = zipEntry.getName();
                        zipEntry = new ZipEntry(fileName);
                        zipEntry.setMethod(ZipEntry.DEFLATED);
                        getUTF8Bytes(source[i]);
                        out.putNextEntry(zipEntry);
                        // Transfer bytes from the file to the ZIP file
                        int len;
                        while ((len = in.read(buf)) > 0) {
                             out.write(buf, 0, len);
                        // Complete the entry
                        out.closeEntry();
                        in.close();
                   // Complete the ZIP file
                   out.close();
              } catch (IOException e) {
                   e.printStackTrace();
         private static byte[] getUTF8Bytes(String s) {
              char[] c = s.toCharArray();
              FileOutputStream file;
              try {
                   file = new FileOutputStream("C:\\TestData\\output.txt", true);
                   int len = c.length;
                   // Count the number of encoded bytes...
                   int count = 0;
                   for (int i = 0; i < len; i++) {
                        int ch = c[i];
                        if (ch <= 0x7f) {
                             count++;
                        } else if (ch <= 0x7ff) {
                             count += 2;
                        } else {
                             count += 3;
                   // Now return the encoded bytes...
                   byte[] b = new byte[count];
                   int off = 0;
                   for (int i = 0; i < len; i++) {
                        int ch = c[i];
                        if (ch <= 0x7f) {
                             b[off++] = (byte) ch;
                             file.write((byte) ch);
                        } else if (ch <= 0x7ff) {
                             b[off++] = (byte) ((ch >> 6) | 0xc0);
                             file.write((byte) ((ch >> 6) | 0xc0));
                             b[off++] = (byte) ((ch & 0x3f) | 0x80);
                             file.write((byte) ((ch & 0x3f) | 0x80));
                        } else {
                             b[off++] = (byte) ((ch >> 12) | 0xe0);
                             file.write((byte) ((ch >> 12) | 0xe0));
                             b[off++] = (byte) (((ch >> 6) & 0x3f) | 0x80);
                             file.write((byte) (((ch >> 6) & 0x3f) | 0x80));
                             b[off++] = (byte) ((ch & 0x3f) | 0x80);
                             file.write((byte) ((ch & 0x3f) | 0x80));
                   file.write((byte) '\n');
                   file.write((byte) '\r');
                   file.flush();
                   file.close();
                   return b;
              } catch (FileNotFoundException e1) {
                   e1.printStackTrace();
              } catch (IOException e1) {
                   e1.printStackTrace();
              return null;
    }Thanks
    Aravind                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Hi, download of the trial product (photoshop ele 13) does nt start even after successfully installing the Adobe download assistant successfully. Only .7z file is shown, .exe is nt available. Whn i try to extract .7z file wd 7-Zip error pops up " cannot ex

    Hi, download of the trial product (photoshop ele 13) does nt start even after successfully installing the Adobe download assistant successfully. Only .7z file is shown, .exe file is nt visible. Whn i try to extract .7z file wd 7-Zip error pops up " cannot extract **.7z as archive" .I've tried fresh download of adobe photoshop ele 13 but same error occurs. 
    OS:Windows 8.1
    Storage loc for adobe down assistant  : C-Program file(x86)-Adobe download assistant-adobe
    Storage loc for adobe down assistant:    C- Adobe photoshop assistant 13-  PhotoshopElements_13_LS25_win64_1. 7z
    After this I try to extract ** .7z file but following error occurs :
        After this I try to extract ** .7z file but following error occurs
    Kindly Help.

    Thanks fr revert !
    After clicking on the provided link , Above error pops up. I clicked "ok" n allowed download to complete after which same previous error shows up!

  • How can i open a downloaded mp4 file that is zipped?  Witch will not open.   And, Convert that mp4 to play on my iMac with Maverick osx ?   I there an app or apps i need to buy ?

    how can i open a downloaded mp4 file that is zipped?  Witch will not open.   And, Convert that mp4 to play on my iMac with Maverick osx ?   I there an app or apps i need to buy ?

    You should be able to open the zipped file by double clicking on it.
    http://www.videolan.org/vlc/index.html
    This link is for a VLC Player it can play just about everything.
    Cheers
    Don

  • A Problem about zip a Chinese File with Java Zip package

    Hi,
    my problem is following:
    I use "Java(1.3.1_02) Zip package" to compress some files into a zip File
    all thing is smooth except one:(
    If there is a fileName with Chinese (big5 encoding) characters
    it doesen't work!
    Can anyone tell me how to do?
    Thanks a lot!

    Hi !
    i do have a problem relating with the different character(korean).Hope u must be working with chinese characters.My problem is while displaying the korean characters from database , the characters are broken and not able to display on jsp pages.....
    Hope u can understand my problem.....
    Thanks....

  • How to zip multi files into one zip file in ABAP

    hi all:
    As you know, ABAP has CL_ABAP_GZIP class to support zip file function. But it only support one file zip. If I want to zip two files into one zip file, how to do it?
    thanks.

    Hi,
    <li>If you know how to zip one file,  to zip two files , you can follow the below steps.
    DATA:g_zipper     TYPE REF TO cl_abap_zip.
    "create our zipper object
    CREATE OBJECT g_zipper.
    "add 1st file to zip
    CALL METHOD g_zipper->add
       EXPORTING
         name    = file_name
         content = content_x.
      "add 2nd file to zip
    CALL METHOD g_zipper->add
       EXPORTING
         name    = file_name
         content = content_y.
    "save zip
    CALL METHOD g_zipper->save
       RECEIVING
         zip = zip.
    Thanks
    Venkat.O

  • Adding a file into existing zip file

    I need a add a file into existing zip file. and write into printwriter.
    How to do it?
    Waiting for the reply.
    Thanks and Regards,
    Narayanan. G

    Narayanan.G wrote:
    I need a add a file into existing zip file.API: [ZipOutputStream#putNextEntry()|http://java.sun.com/javase/6/docs/api/java/util/zip/ZipOutputStream.html#putNextEntry%28java.util.zip.ZipEntry%29]
    Tutorial: [http://java.sun.com/developer/technicalArticles/Programming/compression/].
    and write into printwriter.Writing a zip file into printwriter? Huh? Please elaborate.

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

  • Linking to PDF files in HTMLResources.zip file with Windows 8.1 Viewer

    I have followed the instructions from 'DPS Tips' regarding creating a HTML Resources folder and compressing  the PDF files etc... It works on IOS Viewer but it doesn't work on Windows 8.1 Viewer.
    Is linking to PDF files in HTMLResources.zip file  support for Windows Viewer?
    Thanks

    Hi Bob,
    I do not understand, you're telling me that if I set my default browser to Chrome on Windows 8.1, the Viewer works with, or does the Indesign Folio Preview works?

  • File Not Getting Zipped

    Hi All,
    I have a requirement in SAP PLM where in I need to get the Documents attached (in content server ) to a particualr DIR .After getting the attachments i have to zip those and then finally call the outlook mail box with the zipped attachment.My Problem is that I am able to create a zipped folder , but files are created.
    Could anyone please throw some light as what needs to done to create the Files in the Zipped Folder...
    The approach that I have taken is as below :
    Moderator message - Please respect the 5,000 character maximum when posting. Post only the relevant portions of code
    Thanks in advance...
    Regards,
    Asish Dash
    Edited by: Rob Burbank on Jun 2, 2011 9:07 AM

    Hi.,
    USe class cl_abap_zip..,,
    check these wikis: [zip any file via ABAP |http://wiki.sdn.sap.com/wiki/display/ABAP/ZipanyfileviaABAPusingCL_ABAP_ZIP]
    [Zipping ABAP Report Output|http://wiki.sdn.sap.com/wiki/display/ABAP/CL_ABAP_ZIPusage-ZippingABAPreportoutput]
    hope this helps u.,
    Thanks & Regards,
    Kiran

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

  • IE or Contract Management v13 thinks my DOCX file is a zip

    When trying to open an attachment IE or Contract Management v13 thinks my DOCX file is a zip. This started last Thursday. Outta the blue. We’ve been searching for a days now for a solution. Nothing has helped. I have a few hundred users all with various combinations of applications on their boxes. XP PRO, Windows 7, Office; 2007, 2010, WordPerfect 5.1 files work just fine. :)

    We are having the same problem and are wondering whether you found a solution. A workaround is to disable MIME handling in IE (this is what Oracle support will suggest), but this is far from ideal as it does compromise security slightly.
    The problem arises when WebLogic (or JBoss, WebSphere....) sends the file to your browser. It marks the file as Content type "application/octet-stream" instead of identifying it as a MS Word 2010 document. This causes IE to try to identify the type itself. First it checks the extension of the file and looks in the registry to see what's there. If it finds an entry, it then reads the first part of the file to see if the content matches what the registry says. Something appears to be broken in the way IE identifies Word 2007+ files, causing it to identify them as .zip files. Users are then prompted to save the file to their desktop.
    Word 2007+ files actually ARE zip files under the hood, but until recently we had no problem with them. There appear to be three possible routes to resolve this issue.
    One, take Oracle's "pass the buck" advice and disable MIME handling in IE so that IE no longer tries to identify the file (registry hack set HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Internet Explorer\Main\FeatureControl\FEATURE_MIME_HANDLING\iexplore.exe to 0). This bypasses the problem and introduces security holes to your workstation configuration.
    Two, configure your Java application server to send the files with the correct content-type header. I can't find a way to do this in WebLogic so far as you have to modify the web.xml file, which is created by the application installation/deployment. Oracle Primavera CM support has yet to respond to my request on this other than to say "consult WebLogic support". Oracle WebLogic's support will (as they have in the past) tell me it's application specific and to consult Oracle CM support. Neither support group seems to be able to support Oracle's products. (Dear Oracle, please get your act together. You own both products and should be embarrassed by the lack of customer service here.)
    Three, figure out why IE is failing to match up the 2007+ file types with the file content. We're assuming a recent patch did this, but haven't identified which one. In any event, we will probably not be allowed to roll back a security patch to fix this.
    Anyway, I hope this helps you. I have a case open currently, as well as another post in the forums.
    Lowell

Maybe you are looking for

  • Text Import Options

    Hi When i create some artwork within a new ai file and save it to my windows server share when i try and open that file again it comes up with the Text Import Options dialog screen and no matter what i pick here is just throughs up gobbly **** on the

  • Does Firefox 3.6.8 on Mac OS X 10.6.4 support Juno Web Mail "new message center" display?

    Does Firefox 3.6.8 on Mac OS X 10.6.4 support Juno Web Mail "new message center" display? == URL of affected sites == http://webmaila.juno.com/webmail

  • Computer won't detect BB Curve

    Hi folks. This has been an issue for some time now. My PC won't detect my BB Curve 8330. It used to, but one day it just stopped. I just installed the latest BB Desktop Software (7.1), and I also upgraded to Windows 7 (and got the updates) and it did

  • % calculation in Tcode MC48

    Hi, When we execute MC48, system gives the total current stock value with some % calculation. Can some one tell me how is this calculated in detail. Regards

  • Nokia X store in Chinese after upgrade

    Hello,  After upgrading Nokia X to version Software version 1.1.2.2 from the System updates menu in the phone, from some reason the Store application is now in Chinese.  How to swich it back to English ? Solved! Go to Solution.