ASCII format archives Vs Binary format archives

Hi, I need to know what is the difference between ASCII format archives and Binary format archives, and how can I create each one. Because in this moment I have created a bynary archive with output.format(), but i need the ascii format, so help me please.

If you mean jar archives they are multiple files compressed into a single JAR archive file. jar is a general-purpose archiving and compression tool, based on ZIP and the ZLIB compression format., ie it is in binary format.
When you create a jar you can -0 to store the files without compression, if that's what you mean.
ascii is an acronym for american standard code for information interchange AFAIK, and that is a seven bit character.
hope that helps. I'm not sure I understand the question correctly, pardon me if I didn't
regards

Similar Messages

  • How to archive an exploded format into EAR

    Hi all,
    I have my application in the following exploded format:
    c:\bea\...\mydomain\applications\MyApplication
    MyApplication
    \ejb
    \mypackage\....
    \META-INF\ejb-jar.xml, weblogic-...........
    \META-INF\application.cml, weblogic-application.xml
    \web
    \folder1\*.jsp
    \folder2\*.jsp
    \WEB-INF\web.xml
    \WEB-INF\lib\*.jar
    \WEB-INF\tld\*.tld
    \WEB-INF\classes\mypackage1\*.java
    Now, anyone please tell me how to package the above exploded format into .jar
    and war and finally the EAR.
    and also, after deploying the EAR, how can we access the application?
    Thanks in Advance,
    Seshu

    The bottom line is you should use ant.
    If your using a version prior to 8.1 you can use the built in jar/ear tasks,
    if you cant upgrade to 8.1 I reccomend it.
    If your using 8.1 we have an exploded directory structure for development
    known as split-dir (go to http://edocs.bea.com and search) with a set of ant
    tasks to do compilation and deployment. There is also one called wlpackage
    that will create an archived EAR for you as well.
    The basic principle is that in development you want to develop with an
    exploded format as it is much faster to compile and to deploy. When moving
    to production and for distribution you want an archive. You have a couple of
    options for the archive. You can archive EVERYTHING where each module
    inside of the ear is also archived.
    Such as:
    foo.ear
    META-INF/applicaiton.xml
    web.war
    ejb.jar
    I am not a huge fan of this because in development you really want
    everything exploded and if you archive your modules inside the ear you have
    to change the URI's in your applicaiton.xml. I prefer:
    foo.ear
    META-INF/applicaiton.xml
    web/
    WEB-INF/web.xml
    ejb/
    META-INF/ejb-jar.xml
    This is the format of the ear that wlpacage ant task creates for you.
    Cheers
    mbg
    "Seshagiri" <[email protected]> wrote in message
    news:3f08c9ea$[email protected]..
    >
    Hi all,
    I have my application in the following exploded format:
    c:\bea\...\mydomain\applications\MyApplication
    MyApplication
    \ejb
    \mypackage\....
    \META-INF\ejb-jar.xml, weblogic-...........
    \META-INF\application.cml, weblogic-application.xml
    \web
    \folder1\*.jsp
    \folder2\*.jsp
    \WEB-INF\web.xml
    \WEB-INF\lib\*.jar
    \WEB-INF\tld\*.tld
    \WEB-INF\classes\mypackage1\*.java
    Now, anyone please tell me how to package the above exploded format into.jar
    and war and finally the EAR.
    and also, after deploying the EAR, how can we access the application?
    Thanks in Advance,
    Seshu

  • How to read a file containing bitmap message in binary format

    Dear all,
    Can anybody tell me how to read bitmap message which stored data in binary format? The messages are stores like this :
    A file contain some messages along with these bitmaps in square zeroes.
    I want to again convert it into ASCII.

    Double post: http://forum.java.sun.com/thread.jspa?threadID=587497

  • Read DMS document in binary format

    Hi,
    I have a requirement to read DMS document in binary format into internal table.
    and i want to print the data in internal table through SAP spool.
    Please let me know how to handle this requirement.
    Thanks
    Srini

    Hi,
    Check scms pakage, FG - SCMS_CONV for conversions..
    Regards
    Surjit

  • Create a Document in DMS and attach a file coming in binary format

    Hi to all,
    I have to create a new document in DMS (trx: CV01N) with an attachment but this attachment is a pdf file in binary format. Can I use bapi "BAPI_DOCUMENT_CREATE2"? It support binary files in input or I have to convert files in someway? Or I have to use another BAPI?
    I'm using an r/3 4.6c and I know that it is a big limit.
    Please, I need help.
    Thank you very much in advance,
    Enrico

    That assumes two things:
    1. That Apple would have let Microsoft have access to its file format.
    2. That Microsoft would want to spend the time and trouble to write filters for file formats that Apple can't be bothered doing for its own software.
    Peter

  • Replace the XML Tags which are in binary format in 4.6C Version

    Hi Experts,
    I have an issue. I am working on 4.6 c version of sap. I have a requirement to send  ftp of an xml file. I created an internal table which has components of table type too ( For Line items ). After appending a record of sales order into the table I am using   SDIXML_DATA_TO_DOM ( To attach the to the document ) and SDIXML_DOM_TO_XML ( To convert the document contents into XML ( Binary Format ).
           CLASS cl_ixml DEFINITION LOAD.
          g_ixml = cl_ixml=>create( ).
          CHECK NOT g_ixml IS INITIAL.
          m_document = g_ixml->create_document( ).
          CHECK NOT m_document IS INITIAL.
          CALL FUNCTION 'SDIXML_DATA_TO_DOM'
            EXPORTING
              NAME               = 'xmldata'   " data in character format
              DATAOBJECT         = xmldata[]
           IMPORTING
             DATA_AS_DOM        = l_dom
           CHANGING
             DOCUMENT           = m_document
           EXCEPTIONS
             ILLEGAL_NAME       = 1
             OTHERS             = 2
          IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
          ENDIF.
          CHECK NOT l_dom IS INITIAL.
          w_rc = m_document->append_child( new_child = l_dom ).
          IF w_rc IS INITIAL.
          WRITE 'OK'.
          ELSE.
          WRITE: 'ERR ='.
          ENDIF.
          CALL FUNCTION 'SDIXML_DOM_TO_XML'
            EXPORTING
              DOCUMENT            = m_document
            PRETTY_PRINT        = ' '
            IMPORTING
              XML_AS_STRING       = w_string
              SIZE                = w_size
            TABLES
              XML_AS_TABLE        = it_xml   " Final XML data ( with xml tags ( xml tags are the field names of internal table ) ) in bin
            EXCEPTIONS
              NO_DOCUMENT         = 1
              OTHERS              = 2
          IF SY-SUBRC = 0.
          WRITE 'OK'.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
          ELSE.
          WRITE: 'ERR =',
          sy-subrc.
          ENDIF.
    So, it_xml has the binary format of XML data.
    Now the requirement is that I need to get rid of some XML tags in the final internal table XML data. Because by default, at the start of the the table row the <item> and </item> tags are inserted. This is automatically done in the Function module
    SDIXML_DOM_TO_XML.
    I want to find out the binary string of <item> and </item> and replace them by null binary string. I know how to replace the character strings but not for binary strings in 4.6 C.
    It is little bit urget. I would appreciate the quicker answer.

    Hi,
    check this program , I think this will help you
    TYPE-POOLS: ixml.
    TYPES: BEGIN OF xml_line,
    data(256) TYPE x,
    END OF xml_line.
    data : itab like catsdb occurs 100 with header line.
    data : file_location type STRING.
    data : file_name like sy-datum.
    data : file_create type STRING.
    file_name = sy-datum .
    file_location = 'C:\xml\'.
    concatenate file_location file_name into file_create.
    concatenate file_create '.XML' into file_create.
    DATA: l_xml_table TYPE TABLE OF xml_line,
    l_xml_size TYPE i,
    l_rc TYPE i.
    select * from catsdb into table itab.
    append itab .
    CALL FUNCTION 'SAP_CONVERT_TO_XML_FORMAT'
    EXPORTING
    I_FIELD_SEPERATOR =
    I_LINE_HEADER =
    I_FILENAME =
    I_APPL_KEEP = ' '
    I_XML_DOC_NAME =
    IMPORTING
    PE_BIN_FILESIZE = l_xml_size
    TABLES
    i_tab_sap_data = itab
    CHANGING
    I_TAB_CONVERTED_DATA = l_xml_table
    EXCEPTIONS
    CONVERSION_FAILED = 1
    OTHERS = 24
    IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    CALL METHOD cl_gui_frontend_services=>gui_download
    EXPORTING
    bin_filesize = l_xml_size
    filename = file_create
    filetype = 'BIN'
    CHANGING
    data_tab = l_xml_table
    EXCEPTIONS
    OTHERS = 24.
    IF sy-subrc <> 0.
    MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
    WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
    ENDIF.
    write : 'INTERNAL TABLE DATA IS SUCCESSFULLY DOWNLOADED TO LOCATION', file_create .
    Thanks.

  • How to read 16-bit signed integer in binary format with 2 byte sync. preceding??

    A flowmeter provides data as 16-bit signed integer in binary format with 2 byte sync. preceding
    I got i small problem by understanding the synchronasation.
    I read the data provided by the flowmeter, and then write it to a binaryfile.dat. i need to convert the data to decimal format. is it better to convert the data before or after writing it to the binary file. Coz i need to read the data out again for calculations and save it again in a new file.
    I understand that the synchronization  help one to see where to begin reading the usable data. is it right?
    Need any suggestions
    Thank you !
    Zamzam
    HFZ
    Attachments:
    DataOut.JPG ‏37 KB

    HI Rolf.k.
    Thank you for the small program it was helpfull.
    You got right about that proberly there  will be conflict with some spurios data, I can already detect that when writing the data to a spreadsheet file.
    I writes the data in such a way, that in each line there will be a date, a timestamp, a tab and a timestamp at the end. That means two columns.
    When i set given samplerate up, that controls the rate of the data outflow from the device, (1,56 Hz - 200 Hz),   the data file that i write to , looks unorderet.
     i get more than one timestamp and severel datavalues in every line and so on down the spreadsheet file.
    Now the question is: Could it be that the function that writes the data to the file,  can't handle the speed of the dataflow in such a way that the time stamp cant follow with the data flowspeed. so i'm trying to set the timestamp to be  with fractions of the seconds by adding the unit (<digit>) in the timestamp icon but its not working. Meaby when i take the fractions off a second within the timestamp i can get every timestamp with its right data value. Am i in deeb water or what do You mean!??
    AAttached Pics part of program and a logfile over data written to file
    regards
    Zamzam
    HFZ
    Attachments:
    DataFlowWR.JPG ‏159 KB
    Datalogfile.JPG ‏386 KB

  • How to convert image to binary format

    Hi all,
      We have developed an Employee search  mobile web application in .net which is hosted on an exposed IP server, we need to show the employee data along with the image of the employee on mobile.
    When we run this application through our desktop we are able to see the image of the employee since we are doing this through <b>intranet</b> , but when we try to access the same from any mobile device we are able to see only the data but no image, since we are doing this through <b>internet(exposed server).</b>
    Please suggest some way to get this image,
    is there any<b> function module in ABAP</b> which can <b>convert image to binary format</b>
    so that we <b>export binary data</b> to .net application

    Hei evryone!
    CAn anyone pls help me on how to solve this error:
    java.security.AccessControlException: access denied (java.security.SecurityPermission insertProvider.SunJCE)
         at java.security.AccessControlContext.checkPermission(Unknown Source)
         at java.security.AccessController.checkPermission(Unknown Source)
         at java.lang.SecurityManager.checkPermission(Unknown Source)
         at java.lang.SecurityManager.checkSecurityAccess(Unknown Source)
         at sun.plugin.security.ActivatorSecurityManager.checkSecurityAccess(Unknown Source)
         at java.security.Security.check(Unknown Source)
         at java.security.Security.insertProviderAt(Unknown Source)
         at java.security.Security.addProvider(Unknown Source)
         at CryptoTest.processFile(SwingApplet.java:68)
         at CryptoTest.<init>(SwingApplet.java:65)
         at SwingApplet.init(SwingApplet.java:39)
         at sun.applet.AppletPanel.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)
    Is it allright for a swing code to access local resources? like in my case i want my swing app to decrypt and encrypt an image file but when i tried to access the method for decrypting and encrypting i got this error message on my console. Do i have to make my code signed before i could write/read a file on my hard drive?
    Any help / suggestions would be much appreciated.Thanks!

  • LabVIEW binary format that can be opened with Python

    I need to save data in a binary format which can be opened with Python.  I have tried the "Write Waveforms to File (1D).vi" and can open them back up in LabView, but the binary format is not published anywhere, so I cannot open them in Python.  They appear to be saving as DataLog type binary files.
    Is there another binary format which I can use that I can open in Python?
    The reason I need this is that with 16-channel DAQ at 20kHz I can only save about 30 seconds of data.  For longer periods, the task of writing to a text file consumes all available memory and cpu.

    I found a solution.  I found an open-source project called pyTDMS (google for it), and it can read tdms type files sometimes.  It was some trial and error to get my data saved in a way that pyTDMS could open the file, but in the end it works great.
    I have two digital output channels as well as 16 analog input channels, so here is how I had to save the data within LabView:
    The 16 analog input channels were saved as a 1D array of waveforms.  Then the digital output channels were made into another 1D array of waveforms.  The trick was to use the write tdms subvi twice.  Once for the analog input channels and again, on the same file, for the digital output channels.  pyTDMS opens these files just fine, and I can use the metadata to sort out what channels the data goes with in Python.

  • Binary Format of an Image..

    Hi All
    I had a training in ABAP, but dont have practical experience in it as I have not worked in any of the projects in ABAP.
    Now I have a requirement in ABAP and hope you people will solve my problem.
    Iam picking an image from a third party server which comes in a binary format with 255 characters each line.
    Now I want to put this information(Binary data) into the R/3 tables which has a character length of 132 characters each line. There can be any number of lines.
    But I wonder how this is possible. Because if the characters are truncated or seperated or divided into 132 characters each line then the Image will be distorted.. So how can I achieve this requirement.
    Thanks in Advance.......

    Hi,
    a picture is not store like a flat file, a line doesn't correspond to a line of your picture. (this only appends in a BMP 24bits pictures).
    So stop to think like a flat file, but more like a string.
    maybe this little code could help you.
    loop at it_file.
      v_size = strlen( it_file ).
      v_start = 0.
      v_line_size = 132.
      do.
        move it_file+v_deb(v_line_size) to it_table.
        v_start = v_start + v_line_size.
        if v_start = v_size.
          append it_table
          exit.
        else.
          append it_table.
        endif.
        if v_start gt v_size.
          v_file_size = v_size - v_start.
        endif.
      enddo.
    endloop.
    rgd
    Frédéric

  • Data Acqusition and recording in Binary Format

    Hi
    Can anyone tell me how to perform buffered Data acquisition and write
    it in Binary format.
    I want to record data when it is streaming that is i would like to
    record data on a real time basis.
    I have started acquiring data and also graphed it, But it is not a
    buffered acquisition, Can i record this data in the binary format??
    Srikanth

    Hi,
    Labview has an example that does exactly what you are asking for:
    Cont Acq to File (binary).vi
    You'll find it in:
    \examples\daq\anlogin\strmdisk.llb
    Good luck,
    Alberto

  • Is BPEL supports writing character data into binary format  ?

    Hello,
    I can write a BLOB data from DB to a file using Opaque feature in File Adapter.
    But is it possible to write Character data into Binary or Hex Format either by using base64Binary or Hex or bytes formats supported in XML?
    Thanks

    I am looking WHOLE FORMA DATA in either XSTRING or BINARY FORMAT or any other format, except STRING format.
    I gave COUNTRY as an example, but am looking the HWOLE form AS IS
    Any help pls.
    Thank you   

  • Converting bytearray into binary format

    Hi I have a byteaary , I want to convert this byteArray data into binary format (01010101) , Please help me
    [Bindable]
                private var imgByte:ByteArray;
    bitmapData     = new BitmapData(pic.width, pic.height);
                     bitmapData.draw(pic,new Matrix());
                    var jpg:JPEGEncoder = new JPEGEncoder();
                    imgByte = jpg.encode(bitmapData) ;
    var i:int=imgByte.readByte()
    Alert.show(i.toString(2));
    thanks in advance

    Didn't toString(2) work?

  • Extract FORM data into BINARY format or XSTRING format?

    Hello,
    Our config: I am developing an VISITOR Adobe Interactive Form, i have Designer 8.1 and Reader 9.0 in my Windows 7 Laptop. When i checked the menu EDIT-->form properties --> Compatability, its Adobe XML form File (XDP)
    When i opened this VISITOR interactive form in a browser, right clicking and checked form PROPERTIES, then i saw the "PDF Version: 1.6 (Acrobat 7.x)"
    I am using JavaScript
    1st user opened the form, entered data, say entered USA in COUNTRY field.
    2nd user opened the same form and edited the COUNTRY field from USA to UK.
    Pls. let me know is there any way for me to capture the user entered data into a BINARY format or XSTRING or RAW FORMAT or RAW STRIGN
    Pls. note i need latest changes, like COUNTRY field hold the value of UK.
    Pls. note for some reason, SAVE the form should not come into picture in my case (form will be saved in some workflow (pls. note not adobe's workflow, we hv SAP workflow) staging area in the time lapse of between  1st user and 2nd user,)
    Thank you

    I am looking WHOLE FORMA DATA in either XSTRING or BINARY FORMAT or any other format, except STRING format.
    I gave COUNTRY as an example, but am looking the HWOLE form AS IS
    Any help pls.
    Thank you   

  • Extract Form either in BINARY FORMAT or XSTRING?

    Hello,
    Our config: I am developing an VISITOR Adobe Interactive Form, i have Designer 8.1 and Reader 9.0 in my Windows 7 Laptop. When i checked the menu EDIT-->form properties --> Compatability, its Adobe XML form File (XDP)
    When i opened this VISITOR interactive form in a browser, right clicking and checked form PROPERTIES, then i saw the "PDF Version: 1.6 (Acrobat 7.x)"
    I am using JavaScript
    1st user opened the form, entered data, say entered USA in COUNTRY field.
    2nd user opened the same form and edited the COUNTRY field from USA to UK.
    Pls. let me know is there any way for me to capture the user entered data into a BINARY format or XSTRING or RAW FORMAT or RAW STRIGN
    Pls. note i need latest changes, like COUNTRY field hold the value of UK.
    Pls. note for some reason, SAVE the form should not come into picture in my case (form will be saved in some workflow (pls. note not adobe's workflow, we hv SAP workflow) staging area in the time lapse of between  1st user and 2nd user,)
    Thank you

    I am looking WHOLE FORMA DATA in either XSTRING or BINARY FORMAT or any other format, except STRING format.
    I gave COUNTRY as an example, but am looking the HWOLE form AS IS
    Any help pls.
    Thank you   

Maybe you are looking for