Souce file in zip format

hi all
what settings need to done for picking up the source data which is in zip format in sender FILE adapter?
regards
bhasker.

Bhasker,
What you going to do after picking the zip file? Are u going to send to the target as it is or you want to unzip the file and do the scenario?
raj.

Similar Messages

  • Location of WebLogic Server 6.0 sp2 installable file in ZIP format

    Hello
    I would like to use the ".zip" file of the WebLogic Server 6.0 sp2 installable
    instead of the default ".bin" file.
    Can someone help me locate the URL for downloading it?
    Thanks and Regards
    Kapil Pawar

    Hi.
    The installation for Compaq Tru64 is a zip file - 'weblogic600sp2_generic.zip'.
    However, be aware that installation is not simply a matter of unzipping the file
    like earlier versions of WLS. See the installation directions for details.
    Thanks,
    Michael
    Kapil Pawar wrote:
    Hello
    I would like to use the ".zip" file of the WebLogic Server 6.0 sp2 installable
    instead of the default ".bin" file.
    Can someone help me locate the URL for downloading it?
    Thanks and Regards
    Kapil Pawar--
    Michael Young
    Developer Relations Engineer
    BEA Support

  • Getting download multiple files in zip format.

    Hi
    I am trying to read a zip file on c drive and send it for download on clients browser.
    My problem is that when I am trying to read zip file form my system drive and copying it(Using NIO) on another location on my drive itself its working fine( working code is attached as Code 1)
    but when I try to read zip file in MappedByteBuffer using NIO and append them in a string buffer after converting them to string and get them downloaded at client side, a zip file of same size as that on server is created but it doesn't open up. (Code attached as Code2)
    Code1:
    package com.pine.test;
    import java.io.*;
    import java.nio.*;
    import java.nio.channels.FileChannel;
    class copyFileUsingNIO{
         public static void main (String args[]) throws Exception{
              FileInputStream FIn;
              FileOutputStream FOut;
              FileChannel FIChan, FOChan;
              MappedByteBuffer mBuf;
              long FSize;
              try{
                   FIn = new FileInputStream("c:\\Favorites.zip");
                   FOut = new FileOutputStream("c:\\outfile_new.zip");
                   FIChan = FIn.getChannel();
                   FOChan = FOut.getChannel();
                   FSize = FIChan.size();
                   mBuf = FIChan.map(FileChannel.MapMode.READ_ONLY,0,FSize);
                   StringBuffer sb = new StringBuffer();
                   //System.out.println(mBuf.limit() + mBuf.toString());
                   int len=0;
                   byte[] b = new byte[1];
                   while(len<mBuf.limit()){                     
                        b[0] = mBuf.get();
                        //System.out.print(b.toString());
                        String s = new String(b,0);
                        System.out.print(s);
                        sb.append(s);
                        //System.out.print(len);
                        len = len+1;
                        //System.out.print(s.toString());
                   FOChan.write(mBuf);
                   FIChan.close();
                   FIn.close();
                   FOChan.close();
                   FOut.close();
              }catch(IOException ioe){
                   System.out.println(ioe);
                   System.exit(1);
              }catch(ArrayIndexOutOfBoundsException exc){
                   System.out.println(exc.getStackTrace() + " hi");
                   //System.exit(1);
    //Code 2:-
    package com.pine.test;
    import java.io.*;
    import java.nio.*;
    import java.nio.channels.FileChannel;
    class copyFileUsingNIO{
         public static void main (String args[]) throws Exception{
              FileInputStream FIn;
              FileOutputStream FOut;
              FileChannel FIChan, FOChan;
              MappedByteBuffer mBuf;
              long FSize;
              try{
                   FIn = new FileInputStream("c:\\Favorites.zip");
    FIChan = FIn.getChannel();
                   FSize = FIChan.size();
                   mBuf = FIChan.map(FileChannel.MapMode.READ_ONLY,0,FSize);
                   StringBuffer sb = new StringBuffer();
                   //System.out.println(mBuf.limit() + mBuf.toString());
                   int len=0;
                   byte[] b = new byte[1];
                   while(len<mBuf.limit()){                     
                        b[0] = mBuf.get();
                        //System.out.print(b.toString());
                        String s = new String(b,0);
                        System.out.print(s);
                        sb.append(s);
                        //System.out.print(len);
                        len = len+1;
                        System.out.print(sb.toString());
                   FIChan.close();
                   FIn.close();
                   FOut.close();
              }catch(IOException ioe){
                   System.out.println(ioe);
                   System.exit(1);
              }catch(ArrayIndexOutOfBoundsException exc){
                   System.out.println(exc.getStackTrace() + " hi");
                   //System.exit(1);
    Can anyone tell me where I am wrong?
    Thanks

    but when I try to read zip file in MappedByteBuffer using NIO and append them in a string buffer after converting them to string and get them downloaded at client side, a zip file of same size as that on server is created but it doesn't open upSo don't do it that way.
    BIJ001 is correct.

  • Add .txt files into .zip file

    Hello friends,
    Any buddy knows how to add ".txt" files into ".zip" format through the ABAP code. 
    Thanks in advance.

    Hi Murali,
    You can use the method in the class CL_ABAP_GZIP to zip your file and then download it using GUI_DOWNLOAD.
    data: zip type ref to cl_abap_zip,
          result type xstring.
    create object zip.
    zip->add( name = some_file content = content ).
    result = zip->save( ).
    Also you can check this thread as well.
    How to Download data in Zip folder
    Re: UNZIP file from ABAP
    Hope this will help.
    Regards,
    Ferry Lianto
    Please reward points if helpful.

  • Files of zip type

    Hi friends,
    sender Legacy system is sending files in .Zip format.
    how the adapter is going to process those files?
    what configurations r to be needed in adapter configuration?
    & also for processing of .pdf files what configurations should be done?
    thanks in advance.
    shiva.

    Hi Shiva,
    the adapter can process the file. At mapping time you need to dezip the msg. An example in java:
    import java.io.*;
    import java.util.Map;
    import java.util.zip.*;
    import com.sap.aii.mapping.api.StreamTransformation;
    import com.sap.aii.mapping.api.StreamTransformationException;
    public class DecompressMapping implements StreamTransformation {
         /* (non-Javadoc)
          * @see com.sap.aii.mapping.api.StreamTransformation#setParameter(java.util.Map)
         public void setParameter(Map arg0) {
              // TODO Auto-generated method stub
         /* (non-Javadoc)
          * @see com.sap.aii.mapping.api.StreamTransformation#execute(java.io.InputStream, java.io.OutputStream)
         public void execute(InputStream arg0, OutputStream arg1)
              throws StreamTransformationException {
                   try {
              int len;
              byte[] buf = new byte[8192];
              boolean first_iter = true;
              ByteArrayOutputStream baos = new ByteArrayOutputStream();
              while((len = arg0.read(buf) ) != -1)
                   if (first_iter)
                     if ((buf[0] != 'P') || (buf[1] != 'K'))
                          arg1.write(buf, 0, len);
                        while((len = arg0.read(buf) ) != -1)
                             arg1.write(buf, 0, len);                           
                          return;     
                     else
                          first_iter = false;
                   baos.write(buf, 0, len);
              byte[] in_data = baos.toByteArray();
              ZipInputStream zis = new ZipInputStream(new ByteArrayInputStream(in_data));
                   ZipEntry ze = zis.getNextEntry();
                   if (ze != null)
                        while((len = zis.read(buf) ) != -1)
                             arg1.write(buf, 0, len);
              } catch (IOException e) {
                   e.printStackTrace();
    Regards,
    Udo

  • Unable to save in zip format

    Dear All,
    I am using a Proxy to File Scenario which is calling an HTTP Service from a Mapping class in PI 7.3 with AAE and no ABAP stack.
    The process is initiated by a proxy and then from within the mapping class the HTTP Service is called via the lookup method. A HTTP_AAE channel is utilized for the lookup. The Service returns multiple files in zip format in a stream and the data is saved to a file in zip extension with a file adapter.
    Following are the communication channel used.
    1. Sender Proxy Channel
    2. Receiver HTTP_AAE channel
    3. Receiver File Channel
    When I am trying to unzip the file, it is throwing - The compressed (zipped) Folder is invalid or corrupted.
    Following are the parameters set in the Receiver HTTP_AE channel.
    Character Encoding : utf-8
    Content Type : application/x-www-form-urlencoded
    Please suggest
    Rana

    File type in receiver cc must be binary.
    Regards,
    Carme.

  • Help me on Uploading the .ZIP format data

    Hi All,
    I have a requirement that, In certain date range i have to download the data from VBAK in to a flat file in .ZIP format. After that I have to upload the same (.ZIP Format) it into an internal table and insert the data to a standard table. I have searched for the sample report in web too, but i didnt get the correct solution for this.
    Could you people please help me on this requirement.

    Hi Sarath,
    Please follow below link :
    http://wiki.sdn.sap.com/wiki/display/ABAP/ZipanyfileviaABAPusingCL_ABAP_ZIP
    I hope this will help you.
    Regards,
    Rahul Mahajan

  • Creating an XLS file and Zip it

    Hi All,
    we have a requirement where in we have to create an XLS file from internal table. This xls file then has to be zipped and mailed.
    If anyone knows how to create an xls file and zip it in WebDynpro, without using OPEN, CLOSE DATA SET etc, Please let us know. It will be of great help.
    Thanks,
    Anand

    >2) Convert the STRING format to XSTRING format by using the FM SCMS_STRING_TO_XSTRING.
    Actually you should use CL_BCS_CONVERT=>STRING_TO_XSTRING now.
    >3) Use the method COMPRESS_BINARY of class CL_ABAP_GZIP to compress the XSTRING file.
    You probably want to use CL_ABAP_ZIP instead of CL_ABAP_GZIP.  CL_ABAP_GZIP only does compression, which is fine for storing a single packet of data in the database.  However CL_ABAP_ZIP is better suited for mult-part zip (multiple inner files).
    >4) Use the method SEND_WEB_MAIL of class CL_HRRCF_SERVICES_MAIL to mail across the zipped contents.
    This seems to be an HR specific class. Better to use the cross application, NetWeaver provided functionality for sending mail - CL_BCS.

  • Send the output of the report  in a zip format

    Hi,
    I have a report,
    Currently when we run the report we are sending the file in excel format to the external mail id using the FM SO_DOCUMENT_SEND_API1.
    But now the requirement is to ZIP the data in the format of an excel form and then send it to the Mail.
    If any of you have done with this,
    Please help me with a sample code starting from converting to Zip and then sending the mail.
    Iam having two versions of SAP 4.7 and ECC 6.0.
    Regards,
    Sasidhar

    Hi,
    In my report program i have my data in an internal table.
    lets say ITAB.
    Now we cna send the data from this table easily in amail as an excel attachment using FM SO_DOCUMENT_SEND_API1.
    But in our case,
    we want our ITAB data to be first converted into an excel format and then convert this into a zip file and send as an attachment.
    How cna we cna make use of classes CL_ABAP_ZIP AND CL_DOCUMENT_BCS.
    I have checked all th threads as specified by you.
    But now where its clear on this.
    Can anybody have a sample code for this.
    Please help me.
    Regards,
    sasi

  • How Do I Convert LV7.1 Datalog Files to LV8 Format?

    I have several LabVIEW 7.1 datalog files that generate Error 71 (File data type conflict) when I try to open them in LabVIEW 8 using the new Open/Create/Replace Datalog vi with my original typedef constants wired to the record type terminal.  Likewise, my original LV7.1 code recompiled in LV8 often generates error 116 (unflatten or byte stream read operation failed due to corrupt, unexpected, or truncated data) or error 4 (end of file encountered) when randomly accessing records in the LV7 datalog files, presumably due to changes made to the datalog file structure in LV8.  I recall one time when a dialog box popped up asking if I would like to convert the file to LV8 format.  Since this was a file currently in use on the server by LV7.1 clients, I had to reply no.  With copies of the datalog files now on my hard drive ready for conversion, I haven't seen the conversion dialog box pop up again.
    How do I convert the LV7.1 datalog files to LV8 format?
    Thanks,
    Larry

    Good afternoon Larry,
    Thanks for posting! 
    The Datalog file support in LabVIEW has changed, but the underlying
    principles of the technology remains the same. 
    Converting to the new format should just involve converting a few VIs to the new Datalog-specific versions.  As you can see, the new Datalog VIs appear in
    their own sub palette in 8 which will help keep things simple.
    Before we address the concerns with the errors, let’s first
    make sure that the code has been properly converted. 
    To convert your VI to the new format:
    1)      Replace
    the Open File VI from LabVIEW 7 with an “Open/Create/Replace Datalog” VI in LabVIEW
    8.  Keep your type constant or control
    wired to the “Datalog Type” input.
    2)      Replace
    any “Write File” VIs in LabVIEW 7 with “Write
    Datalog” and triple check that your data matches the datatype wired into the
    open exactly.
    3)      Replace
    any “Seek” VIs with “Set Datalog Position”.  The input to this VI is the number of records
    to advance (check the mode set by the “from” parameter).
    4)      Replace
    any Reading VIs with the corresponding “Read Datalog” VI.
    I suspect that if you are receiving errors saying that the
    end of file has been encountered it is a result of a bad input to the “set Datalog
    position” VI.  I attached a basic example
    of writing a Datalog file in LabVIEW 8, and reading the results.  The rest of the functions in the new Datalog palette
    should be pretty straightforward. 
    Does this help?  I
    would be more than happy to answer any other questions on this if you need any
    additional clarification, or if this response does not address your question.
    Travis M
    LabVIEW R&D
    National Instruments
    Attachments:
    Datalog8.zip ‏30 KB

  • Convert gzip files into XML format

    We have a requirement where we receive gzip files. These files are zipped file containing base64 binary format csv files. We would have to convert these files into XML format. Please let me know any of the following.
    1. Is there any Xpath query or XSL function (somthing similar like doTranslateFromNative() ) to convert from gzip files to XML format.
    2. If we need to unzip the zipfile outside fusion, then java code piece to unzip the gzip file. I guess after that we can use the usual doTranslateFromNative() function to translate to XML format, since after unzipping the gzip file, they are base64 binary formats.
    Thanks in advance,
    Toms

    There is an option to do pre-processing and post processing of Files when using File adapter. You need to create a valve which will first do pre processing and send the output to FileAdapter.
    You can get more information here:
    http://docs.oracle.com/cd/E23943_01/integration.1111/e10231/adptr_file.htm#CACDHGGG
    under section: 4.2.14 Pre-Processing and Post-Processing of Files
    Essentially you will use Java to unzip the file first and then the unzipped content will be passed to the adapter.

  • JavaFX 2 in zip format?

    Is there anyway of getting JavaFX in a zip format instead of an actual installer for windows os?
    Thanks.
    Edited by: 998341 on Apr 5, 2013 11:51 AM

    TheChazm wrote:
    Thanks for the reply as I do not have admin priv. on the machine I program on so it's impossible for me to load the JDK and use JavaFX so looks like I'm just out of luck.
    Thanks again.You'd think there is a system administrator that can do the installation for you...
    You are free to install it somewhere else, zip it up and then unpack it to your locked down machine. What you'd be missing is 'default java' behavior (in other words: if you run stuff on the command prompt you'd have to add the bin directory to your system path to just be able to invoke 'java'), no browser plugins and javaw is not setup to run jars. If your aim is JavaFX then the missing browser plugin stuff might be a deal breaker for you, but you would have had the same problem if JavaFX came in just a zip file.

  • Is it possible to download multiple files as zip from Amazone S3 directly

    We need to download multiple files from Amazone S3 at a time in a zipped format. We use flex 3 and coldfusion 8 for development.

    Of course it is. Try it. Or, asked differently, what did you try that did not work?

  • How do i install an app in zip format

    I just downloaded some blackberry apps but they're in zip format. how do i install them?

    SuperDev wrote:
    U can extract them out by using a file manager
    And then what?
    1. If any post helps you please click the below the post(s) that helped you.
    2. Please resolve your thread by marking the post "Solution?" which solved it for you!
    3. Install free BlackBerry Protect today for backups of contacts and data.
    4. Guide to Unlocking your BlackBerry & Unlock Codes
    Join our BBM Channels (Beta)
    BlackBerry Support Forums Channel
    PIN: C0001B7B4   Display/Scan Bar Code
    Knowledge Base Updates
    PIN: C0005A9AA   Display/Scan Bar Code

  • Need help installing an app in zip format

    how does one install a Blackberry app in zip format?

    odubola wrote:
    how does one install a Blackberry app in zip format?
    First, unzip the zip file either on your PC or on the BlackBerry, and find out what kind of file type is compressed in the ZIP file.
    When you discover that, please post back and we can help.
    1. If any post helps you please click the below the post(s) that helped you.
    2. Please resolve your thread by marking the post "Solution?" which solved it for you!
    3. Install free BlackBerry Protect today for backups of contacts and data.
    4. Guide to Unlocking your BlackBerry & Unlock Codes
    Join our BBM Channels (Beta)
    BlackBerry Support Forums Channel
    PIN: C0001B7B4   Display/Scan Bar Code
    Knowledge Base Updates
    PIN: C0005A9AA   Display/Scan Bar Code

Maybe you are looking for

  • Business Catalyst / Creative Cloud

    Hi, i currently use Go-Daddy for my web hosting and email services.  Is there an adobe BC section / part of the creative Cloud membership that will allow me to migrate / transfere my godaddy stuff to BC without paying more for the email capabilities.

  • Two Lightroom issues: Slow file update from CS3 and jitters

    After my recent update to latest version of Lightroom I am noticing two issues. When photos are selected in the film strip for editing the image jitters while it is rendering. After taking a photo into CS3 for editing, saving the file and returning t

  • Rollover Buttons

    Hi, I'm trying to create a simple rollover button in flash 9 and its not working the way its supposed to. The button is a hyperlink that when clicked takes the user to a web page. Getting the link itself to work is easy. However getting the text to c

  • Creating Error a link between the form and calendar.

    Could anyone please let me know following message? Error: Unable to describe SQL statement. Please correct it (WWV-13010) Invalid SQL statement: SELECT E.EVENT_START_DATE THE_DATE, E.EVENT_TITLE THE_NAME,SELECT E.EVENT_START_DATE THE_DATE, E.EVENT_TI

  • Regarding Report(Document Flow Report)

    Dear Experts, I am working in generating a report which contain fields sales order number(YTPO),Date, Purchase requisition number,Purchase order Number ,date,invoice number,date. Is there any standard report which can able to display these detail.Ple