Add MIME to XML

Hi,
what would be the best way to add a MIME object to XML?
I am reading the MIME object with class CL_MIME_REPOSITORY_API. I am unsure how to get the XSTRING into a suitable XML format.
Thanks.
/Björn-Henrik

Hi Sandra,
thanks for your reply, it helped me solve the issue. Here is how I solved it for MIME images
1. Get XSTRING of MIME image
2. SCMS_XSTRING_TO_BINARY
3. SCMS_BINARY_TO_STRING
4. cl_http_utility=>if_http_utility~encode_base64
/Björn-Henrik

Similar Messages

  • Pls Help me with steps to add data from xml file to SAP B1 through B1iSN.

    Pls Help me with steps to add data from xml file to SAP B1 through B1iSN. I  am getting stuck in xsl transformation. not able to understand where the mapping code needs to be added.
    Pls explain me the steps for adding data from xml to B1 quotation step by step.
    thanks and regards
    Priya

    Hi,
    Have you checked this: https://sap.na.pgiconnect.com/p45508295/?launcher=false&fcsContent=true&pbMode=normal ?
    Thanks,
    Gordon

  • [svn:bz-trunk] 20693: Add a web.xml. crx that has no MessageBroker and RDSServlet.

    Revision: 20693
    Revision: 20693
    Author:   [email protected]
    Date:     2011-03-08 13:09:18 -0800 (Tue, 08 Mar 2011)
    Log Message:
    Add a web.xml.crx that has no MessageBroker and RDSServlet.  Remove reference of webtier in HttpServiceTest.java.  Not sure which tests are using this class and hopefully we can get rid of it since webtier.jar is about to be gone.  Watch out for any new failtures that might be related.
    Modified Paths:
        blazeds/trunk/qa/apps/qa-regress/WEB-INF/src/dev/httpservice/HttpServiceTest.java
        blazeds/trunk/qa/apps/qa-regress/build.xml
    Added Paths:
        blazeds/trunk/qa/resources/webtier/qa/web.xml.crx

    I am modifying the correct httpd.conf file on the server, it just doesn't seem to work. - If I put the rewrite rules in the <Directory /> the rewrite works but it adds /Library/WebServer/Documents to the URL.
    I also tried putting the rewrite rules in <IfModule mod_rewrite.c> but that did not work either.
    mod_rewrite is enabled and running on the server.
    I will post the rewrite rules again in the code brackets. Sorry for the long post. - If some one can try them out on their Leopard Server to see if they can get them to work, it would be much appreciated. Again, these work on my Leopard Client but I can't get them to work on Server.
    -- The httpd.conf file posted above is just the default conf file found in /private/etc/apache2/
    <code>
    RewriteEngine On
    Options +FollowSymLinks
    RewriteRule ^(.+)/$ http://%{HTTP_HOST}$1 [R=301, L]
    RewriteCond %{THE_REQUEST} ^GET\ ([^\?]+)\.php(.*)\ HTTP
    RewriteRule (.+)\.php(.*)$ $1$2 [R, L]]
    RewriteCond %{THE_REQUEST} ^GET\ ([^\?]+)\.asp(.*)\ HTTP
    RewriteRule (.+)\.asp(.*)$ $1$2 [R, L]]
    RewriteCond %{THE_REQUEST} ^GET\ ([^\?]+)\.aspx(.*)\ HTTP
    RewriteRule (.+)\.aspx(.*)$ $1$2 [R, L]]
    RewriteCond %{THE_REQUEST} ^GET\ ([^\?]+)\.htm.(.)\ HTTP
    RewriteRule (.+)\.htm.(.)$ $1$2 [R, L]]
    RewriteCond %{THE_REQUEST} ^GET\ ([^\?]+)\.cfm(.*)\ HTTP
    RewriteRule (.+)\.cfm(.*)$ $1$2 [R, L]]
    RewriteCond %{THE_REQUEST} ^GET\ ([^\?]+)\.bak(.*)\ HTTP
    RewriteRule (.+)\.bak(.*)$ $1$2 [R, L]]
    RewriteCond %{THE_REQUEST} ^GET\ ([^\?]+)\.inc(.*)\ HTTP
    RewriteRule (.+)\.inc(.*)$ $1$2 [R, L]]
    RewriteCond %{THE_REQUEST} ^GET\ ([^\?]+)\..(.)\ HTTP
    RewriteRule (.+)\..(.)$ $1$2 [R, L]]
    <code>

  • What to add in web.xml to configure Tomahawk1.1.3

    I have added following libraries to my project
    1.tomahawk-1.1.3.jar
    2.tomahawk-facelets.jar
    3.commons-filupload.jar
    what to add in web.xml to work it correctly? I m using NetBeans5.5 with Tomcat 5.5.17 and JDK1.6
    plz help.

    Thnx hamidaga for reply. I added common-io-1.1.jar but still no luck :(
    I m getting same error at tomcat5.5.17 server log
    java.lang.ClassNotFoundException: [Ljava.lang.String;
    at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1352)
    at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1198)
    at com.sun.faces.config.ConfigureListener.configure(ConfigureListener.java:615)
    Mar 9, 2007 4:27:31 PM org.apache.catalina.core.StandardContext start
    SEVERE: Error listenerStart
    and now I m stuck. I cant execute anything..
    plz help.

  • Add MIME Types Office 2007 in jive forums

    Hi all!
    How to add MIME Types for Office 2007 in Jive Forum?

    Hi,
        Were you able to solve this issue ???...
         cos i found that the text box where you can enter new content types have a limit & hence i cannot enter the DOCX content type string which is given bellow...
    application/vnd.openxmlformats-officedocument.wordprocessingml.document

  • Add circle to XML MapRequest

    Hi,
    I'm using Mapviewer XML API to create XML MapRequests. When I was trying to add circle geometry-features to the map request I was running into to following problem:
    The circle is rendered on the map - but I wasn't able to render it in my own style. Only the center-point is rendered in the submitted style. Is it possible to render circles in custom styles?
    Here is the part of my XML responsible for the circle:
    <geoFeature radius=\"31.6016883780248\" render_style=\"C.REDLINE [BLAU]\">
    <geometricProperty>
    <Point srsName=\"SDO:31466\">
    <coordinates>2575685.83533281, 5728731.44895417</coordinates>
    </Point>
    </geometricProperty>
    </geoFeature>
    Thanks
    Dominik

    Hi Sandra,
    thanks for your reply, it helped me solve the issue. Here is how I solved it for MIME images
    1. Get XSTRING of MIME image
    2. SCMS_XSTRING_TO_BINARY
    3. SCMS_BINARY_TO_STRING
    4. cl_http_utility=>if_http_utility~encode_base64
    /Björn-Henrik

  • Need to add custom button (xml) in VA05

    I need to add a custom button (xml) to report output layout of VA05. Even the corrsponding functionality needs to be written for this button. Without changing the SAP standard code using Access keys, is there any other functionality in which we can add the button and write the code.
    Please send me detail steps in this regard.

    Hi Ramesh,
    As i knoew in case of va05 there is no badi or exit available to achieve this functionality.There is a provision to add some fields in report out put.I hope this is possible through a custom one.
    Regards,
    Madhu

  • How to add prefixes to xml output?

    Does anyone know a quick and easy way to add a namespace prefix to an xml document when you output it as a string?
    i'm looking for somethinglike this.
    <Order xmlns="http://www.something.com/name">
       <item>sink</item>
    <Order>
    converted into
    <dof:Order xmlns:dof="http://www.something.com/name">
       <dof:item>sink</dof:item>
    <dof:Order>
    I have attempted to use the xmlText method on the XmlObject class passing in an XmlOptions object with setSaveSuggestedPrefixes() set to my hsahmap with the namespace and prefix, however nothing happens. Well, sometimes it works and other times it does not.
    It seems that it works when i programatically build my xml using XmlObject methods, but it fails when i parse an existing xml string into the XmlObject using parse(String).
    Any help would be appreciated. I can't find any detailed help anywhere.
    Thanks
    Jeremy

    You can achieve your requirement using XSLT maaping on XML. Read more about XSLT mapping. Also read more about WordML processing tool by Microsoft.

  • Add spaces in XML tag in XI mapping

    Hello guys,
    In an IDoc to XML file scenario within XI, we want to add spaces at the end of an IDoc field that contains text description. When the IDoc gets generated on SAP ECC, the IDoc field is repeated so many times until all the contents are displayed, separated with spaces. However, once the IDoc is sent to XI, the spaces get lost. Is it possible to add a space at the end of each field presence within XI message mapping or they will get lost again ?
    Thank you.
    Best Regards,
    Evaggelos Gkatzios
    Edited by: Evaggelos Gkatzios on Nov 12, 2010 4:49 PM

    > In an IDoc to XML file scenario within XI, we want to add spaces at the end of an IDoc field that contains text description.
    The way IDoc processing works, that does not make any sense at all.
    An IDoc is a fixed length container and the fields are filled with spaces automaticically.
    The IDoc XML generation removes trailing spaces to reduce message size.
    If you need trailing spaces in an XML field, you can add them easily with a UDF. But I think that there are only rare scenarios where you really would need this.

  • How to add data in xml file

    Hi ALL
    I want to add new fields on seeded EBS page to store their values in hr_api_transaction table whoch contain information of other fields on that page which are seeded
    but that table has one column which stores xml file and that xml file has all information about that page's fields
    how can I store my custom fields values in that xml file ?

    Hi,
    As Andy said,  add data to an xml file is overwriting, if you mean append data to xml file, please look this article:
    http://codesamplez.com/programming/linq-to-xml-tutorial, Since this issue is more related to ASP.net, you could also ask this issue in asp.net forum:
    http://forums.asp.net/
    Best Regards,
    Jambor
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Add invoice from xml -- wrong vatsum -- wrong discount -- wrong doctotal

    hi,
    i save my invoice as a draft, save this draft as xml and then add my invoice.
    The way until xml goes fine. But when i add the invoice the systems calculates wrong vatsums.In due to that there will be a discount on the document and a wrong doctotal.
    When i adding my draft manually as invoice everything works well. Is this a bug? Does anybody know how to solve it?
            oInvoice = moSBOCompany.GetBusinessObjectFromXML(sOLDTAXdraftFilename, 0)
            oInvoice.DocumentsOwner = moSBOCompany.UserSignature  'empID
            RetVal = oInvoice.Add
    best regards
    Markus

    Hi Markus,
    Have you checked the information in the Xml file is correct?
    Have you tried to create the same invoice with DI API without using xml?
    If you are sure you are doing the same thing and the results are not the same please open a message for support, they will investigate it.
    Regards
    Trinidad.

  • Add nodes to XML

    My script asks different types of input to the user and I want to store that info in a settings xml file. That way the dialogs can fall back on previously entered data.
    I found out how to read an XML file and search for specific values (xpath), but I also want to add new "settings" to the file. Is there an easy way to do this with InDesign javascript? The code in bold is pseudocode that I want to replace by some real code.
        var settingsFile = new File(kSettingsFileName);
        if (settingsFile.open("r")) {
            var settingsXML = new XML(settingsFile.read());
            settingsFile.close();
            var currentSettingElement = settingsXML.xpath (settingName);
            if currentSettingElement does not exist
                create the element and set the value
            else
                currentSettingElement.setChildren(settingValue);

    I use app.insertLabel() and app.extractLabel() to store and retrieve settings in a dialog box. It is more convenient than using extra txt or xml file.
    If you are interested, take a look at this script.
    This function creates default settings if they have not been saved yet.
    function GetSettings() {
         var mySettings = eval(app.extractLabel("Kas_PackageForArchive_Settings_ver3.0"));
         if (mySettings == undefined) {
              mySettings = { copyFontsCheckBox:false, copyGraphicsCheckBox:true, updateGraphicsCheckBox:true, includeHiddenLayers:true, ignorePreflightErrorsCheckBox:true, createReportCheckBox:false, createLogCheckBox:true };
         return mySettings;
    Read saved settings before creating a dialog:
    function CreateDialog() {
         var mySettings = GetSettings();
         var myDialog = new Window('dialog', 'Package for Archive');...
    Save chosen settings before closing the dialog after OK button was clicked:
    ...     var myShowDialog = myDialog.show();
         if (myShowDialog== 1) {
              var myResult = {};
              myResult.copyFontsCheckBox = myCopyFontsCheckBox.value;
              myResult.copyGraphicsCheckBox = myCopyGraphicsCheckBox.value;
              myResult.updateGraphicsCheckBox = myUpdateGraphicsCheckBox.value;
              if (myInDesignVersion == 6) myResult.includeHiddenLayers = myIncludeHiddenLayersCheckBox.value;
              myResult.ignorePreflightErrorsCheckBox = myIgnorePreflightErrorsCheckBox.value;
              myResult.createReportCheckBox = myCreateReportCheckBox.value;
              myResult.createLogCheckBox = myCreateLogCheckBox.value;
              myResult.folder = myFolder;
              app.insertLabel("Kas_PackageForArchive_Settings_ver3.0", myResult.toSource());
         return myResult;
    Kasyan

  • Add node into XML Model

    Hi all,
    i would like to add datas into my xml model but i don't manage to do it.
    Here is the context :
    -I have an xml file which represents a tree
    -When the xml model is loaded, i bound it to a tree
    -Then i add nodes to my tree ( aNode.addNode(new Node ) )
    When adding a node, i would like the node to be represented to my model;
    e.g : before adding a node
    <node name="node1">
         <node name="node1_1"/>
         <node name="node1_2"/>
    </node>
    after the node is added :
    <node name="node1">
         <node name="node1_1"/>
         <node name="node1_2"/>
         <node name="new node"/>
    </node>
    I have tried  xml setProperty:
    oModel.setProperty(myPath,data);
    oModel.setProperty(myPath,data,oContext);
    Can somebody help me to achieve this?
    Thanks,
    best regards,
    Marc

    Thanks for this fast reply, i try it and i come back to you
    Edit :
    Here is my xml file :
    <?xml version="1.0" encoding="utf-8"?>
    <objectSet version="1.2.3.4">
        <aRoot code="testCode" reference="0123456789" description="TestDescription"
            owner="Tester">
            <component name="MyCompo1" type="MyCompo1Type">
                <component name="MyCompo2" type="MyCompo2Type">
                    <property name="myProperty2-1" type="string" value="null" />
                    <property name="myProperty2-2" type="string" value="null" />
                    <property name="myProperty2-3" type="string" value="null" />
                </component>
                <component name="MyCompo3" type="MyCompo3Type">
                    <property name="myProperty3-1" type="string" value="null" />
                </component>
            </component>
        </aRoot>
    </objectSet>
    I made a button with the fellowing function attached :
    aTestFunction: function(oEvent){
            console.log("Test");
            var tree = this.byId("myTree");
            var oModel = tree.getModel();
            var pty = oModel.getProperty("/aRoot/MyCompo1"); // Empty; path is not good
            var pty1 = oModel.getProperty("/aRoot/component");//something but only whitespaces when printing
            console.log(pty);//empty
            console.log(pty1);// a lot of whitespaces (9lines of different sizes)
            pty1.push("node");//Error, pty1.push is not a function
            oModel.setProperty("/aRoot/component",pty1);
    The argument of pty1.push is not good, but the function cannot be even called.
    Another try?

  • Add link to xml

    I want to add a link in the XML document.
    <![CDATA[Akita Prefecture Skating Arena – Northern
    Japan. This skating rink received a re-roof over a metal roof.
    167,380 sq. ft. (15,550 m2) of light gray, 45-mil (1.14 mm) Stevens
    EP™ was installed by <LINK VALUE="
    http://www.sankometal.co.jp">Sanko
    Metal Industries of Japan.</LINK>]]>
    it's not working... any ideas?
    Thanks,
    Ashley

    "suddadog" <[email protected]> wrote in
    message
    news:fjmvsm$3bh$[email protected]..
    > doesn't depend on the color, I know the color codes! You
    don't know what
    > you
    > are talking about. Stop being a smarty pants and answer
    the question. It
    > obviously doesn't work if I'm here asking for help.
    > I have 10yrs experience with html so don't tell me to go
    learn it.
    >
    > The code I have is
    > <![CDATA[Akita Prefecture Skating Arena ? Northern
    Japan. This skating
    > rink
    > received a re-roof over a metal roof. 167,380 sq. ft.
    (15,550 m2) of
    > light
    > gray, 45-mil (1.14 mm) Stevens EP? was installed by
    <a
    > href="
    http://www.sankometal.co.jp"><font
    color="#0000FF">Sanko Metal
    > Industries
    > of Japan.</a></font>]]>
    >
    > Now can you tell me how come the font doesn't work?
    It doesn't work because you switched the closing tag order.
    change
    </a></font>
    into
    </font></a>
    But depending on where the content will end up eventually you
    could also use
    CSS to style all links without changing the content.
    a:link, a:visited, a:hover, a:active {
    color: #0000FF;

  • Install add-on via xml on CS5

    Hi, I´m on a Mac, OS 10.9.3. I need an add-on for Photoshop. Since I can´t just download it to CS5, I got the xml-file (NCS Selector for Adobe.xml) but my help says I cannot use it in CS5! Any other solution??? Marie

    On their site they state CS6 but have a section on how CS5 user can have their friends download it for them.  Seems strange to me that they would not provide a way for CS5 users do their own download from the NCS site. Here the page I read NCS Selector for Adobe — NCS Colour

Maybe you are looking for

  • Creation of excise invoice automatic.

    Hi All, I have an one doubt. i have done setting for creation of excise invoice automatically. Here is only one excise and series group. So when i do the domestic sale, excise invoice gets created automatically but when i do the export sale and creat

  • Standard Work Flow in PP and QM

    Hi Gurus, What are the standard Work Flow in PP & QM ? Thanks in advance, Shree

  • How do I set the classpath in runtime?

    How can i set the classpath in runtime? Im downloading my image files in the folder C:/Downloads I want to set this C:/Downloads as my classpath. I don want to set it at the initial stage, bcoz I may have to change the downloading directory D:/Selva.

  • Improve performance select in parameterized cursor.

    DECLARE CURSOR cur_inv_bal_ship_from( l_num_qty_multiplier gfstmr4_eop_transaction_type. inventory_multiplier_num%TYPE, l_str_inventory_type gfstmr9_eop_txn_rule.inventory_type_code%TYPE, l_str_type_code gfstmr9_eop_txn_rule.txn_type_code%TYPE)IS SEL

  • Lightroom database - batch assign a keyword

    I would like to take a list of images (text file) and tag all of them with a keyword.  As an example, let's say my client just gave me a list of pictures for an album and the picture numbers correspond to a file name (0001.jpg, 0003.jpg).  How can I