Add a file to to MIME object at runtime

In runtime, Is there any option to create a file at runtime and after that add that file to MIME objects??

Yes, this is possible.
The Image source can be a context attribute.
You would need to populate the attribute appropriately.
When you say create a file, do you mean file download ?
See the UI element to download a file.
If you wish to generate a graphic, you can call the IGS (internet graphic server)
to build a jpg.
See the samples in the WD component WDR_TEST_UI_ELEMENTS
regards
Phil

Similar Messages

  • How to add a file as an object in Numbers spreadsheet

    In MS Excel one can add any file namely doc, xls, PDF as an object in a spreadsheet......how can we do that in MAC Numbers

    Hi Niranjan,
    In Numbers for Mac,
    Menu > Insert > Choose...
    Navigate to the file that you want to insert.
    You can insert screen shots, PDF documents and photographs. They will become pics (with restricted editing features).
    I can't see a way to insert a doc, xls, Numbers, Pages or any other file type.
    You can Copy from within a document and Paste into Numbers.
    What are you trying to do?
    Regards,
    Ian.

  • MIME Objects not loaded, Script files from UR not provided to client

    We observe diverse JavaScript Errors and missing MIME-Objects on our Clients when trying to start the Application.
    We disabled compression for ICF-Service and for the Controllers, disabled HTTP/1.1. - no success.
    We followed Hint 715598 and disabled GZIP-Compression for the whole System but the problems occur further.
    Has anybody expierienced same behaviours? Is the problem to fix on client side or at WebAs? And of course how to fix ?????
    We are on WebAS 6.40 SP 13.
    Client-Browser: IE 5.5 SP2 and IE 6.0 SP1
    Desparately,
    Sebastian

    It occurs at standard test applications like <i>SBSPEXT_HTMLB</i> and in my custom developed app. So its seeming to be a general problem.
    By now we opened an error message @ SAP.

  • Web Dynpro ABAP: How to access the content of a mime object?

    Hi everyone,
    does anybody know how to access the content of a mime object of a Web Dynpro component? I added a XML file as mime object to a web dynpro component. Now I want to read the content of this xml file within a method of the component controller. The code would look something like:
    DATA: xml_content type xstring.
    xml_content = read_mime_object("test_123.xml").
    Any ideas?
    Regards,
    Nils

    dude here's the modification that i've done but I can't still access the content of the properties...
               Mail mail = new Mail();
               String message2 = sqlException.getMessage();
               File file = new File("Add.properties");
               Properties props = new Properties();
               props.load(new FileInputStream(file));
               String[] emailadd = {props.getProperty("emailadd","defaultValue")};
               mail.postMail(emailadd,"An error has occurred, Auto-archive was unsuccessful.", message2,"[email protected]");
               Message was edited by:
    ryshi1264

  • How to clear cache after mime object is updated?

    Hi Expert,
        I create a mime object (such as "test1.jpg") in mime repository.
       In web dynpro, I add two UI elements: a formatted text edit and a File-Upload "Insert Image",
       after I click the File-Upload "Insert Image",
       I select an image file (such as test2.jpg) from local directory, and upload the content of the image file to mime object(test1.jpg) in mime repository.
       at the same time, I insert a line into formatted-text-edit as "<img src="/SAP/Public/.../test1.jpg" />".
       I double click the mime object (test1.jpg), its content has changed as test2.jpg,
       however, formatted-text-edit still displays the content of test1.jpg.
       When I mannually clear the cache of IE, and refresh the web, Formatted-text-edit display the content of test2.jpg.
      It's obvious that the cache of http server isn't cleared.
      How to clear cache after mime object is updated?
      Any suggestions are welcomed.
      Thank you.
    Best Regards,
    Derek
    P.S. the source code:
    lv_url = '/SAP/BC/WebDynpro/SAP/ZENHANCE_IA/test1.jpg'.
      lo_mine_rep = cl_mime_repository_api=>get_api( ).
      lo_mine_rep->put(
        EXPORTING
          i_url     = lv_url
          i_content = lv_file_string ).
    Edited by: Derek Zhao on Sep 20, 2010 6:21 AM

    Hi Derek,
    Have you tried the method INVALIDATE_ICM_CACHE of class CL_MIME_REPOSITORY_API ?
    Regards,
    Anand

  • How to migrate Themes, HTML templates, MIME objects to ECC6.0

    Hi Friends
    How to migrate Themes, HTML templates, MIME objects which are developed in SAP Web@Studio.
    or How to use program SIAC_UPLOAD ??
    regards
    siddharth

    Hello Murray,
    Your steps sound correct.  I would add that you generally need the following:
    1. publish the IAC, SYSTEM, and WEBGUI Internet Services (also from SE80)
    2. make sure the Integrated ITS is working.  Meaning you should activate the ITS in the profile parameter, this can be seen in transaction SITSPMON.  Some services in transaction SICF also need to be activated, like the default_host/sap/public/bc/its
    From your error message though it looks like the URL you have used is either incorrect or you have used the External Alias feature in SICF?  The URL for the ITS is usually http://host:port/sap/bc/gui/sap/its/service.  Second, the error is about a language resource file (.htrc), you have not specified if you created one or not.  To create one in the language you are logged in with just go to SE80, open your Internet Service and double click on the "Topic xx".  Don't forget to publish after creating and saving it.
    Edgar

  • REGARDING MIME OBJECTS

    i have to change a logo in the mime objects for an internet service. how can i change so that it should have the same name as the previous one. and if i change the logo that has got different name then whether i will have to make corresponding changes in the templates also?.or name if the logo wont affect its display.
    my main problem is replacing one logo with a new one.

    Hi
    Which SRM version are you using ?
    <b>Please try the following links, which will definitely help.</b>
    Re: URL assignment for picture (.jpg) file stored in MIME repository of SRM
    How to change images
    MIME Type
    Re: Change of Logo in Loginscreen
    Re: Badi for custom Logo in shopping cart initial screen..
    Re: how to change first page in SRM Portal
    Add company logo to initial screen of EBP
    Re: SRM portal page customization
    Re: Change of ITS screens
    Do let me know.
    Regards
    - Atul

  • How can i reference a MIME object within a correspondence format through...

    how can i reference a MIME object within a correspondence format through TX oofo or se71?
    Hi, I need to put a MIME object within a correspondence's format that i've already done through Tx oofo. My problem is, that i don't know exactly how can i make the reference of that MIME object in the format? and What structure type do i have to use in order to make appear the MIME object in my correspondence's format? Does anybody can help me with this?   
    Regards    Hector

    Frank,
    I tried to find some examples/samples on how to create CollectionModel for a table component but not successful.
    Can you clarify the following ?
    1. "CollectionModel" is referenced only by af:table attributes "value", "selectedRowKeys" and "selectionListener".
    The rest of af:table attributes such as "rows", "fetchSize" used to reference the iterator binding in the binding container via the EL expression "#{bindings.VOIteratorBinding.xxx} .
    What should I replace that EL expression with?
    2. I heck out the bean method to create the CollectionModel as following, is it close to what you mean?
    public void initBusinessDataDashboardView() {
    OperationBinding operation = BeanUtils.getOperationBinding("getPanelBusinessData");
    Map params = operation.getParamsMap();
    Key panelKey = getPanelInfoView().getKey();
    params.put("panelKey", panelKey);
    params.put("maximizedView", false);
    panelView = (ViewObject)operation.execute();
    // Heck code to create CollectionModel
    RowSet rowSet = panelView.getRowSet();
    ArrayList rowList = new ArrayList();
    while (rowSet.hasNext()) {
    rowList.add(rowSet.next());
    model = new ChildPropertyTreeModel(rowList, null);
    // To be used to set up af:table value, selectRowKeys, selectionListener via EL expr #{backingBeanScope.MyBean.model.xxx}
    public CollectionModel getModel() {
    return model;
    Am I on the right track?
    Edited by: Pricilla on May 4, 2010 2:20 PM

  • Add jar files and use those classes at the runtime

    Hi All,
    I need to add some jar files at the runtime depends on which the user selects where the jar file is located and i need to import those classes in other class for some functionalities . I could add jar files by using the URLClassLoader and Class.forName("myjar.myclassname") is also succeeded and i have no clue how to use those classes with in the jar file as i couldn't import those classes also in the source because the jar files are being added at the runtime(This leads to class not found exception at the compile time).
    I had found a complicated way of using those classes after being added at the run time as below.
       Class clazz = Class.forName(myClass);
                final Method method = clazz.getDeclaredMethod(requiredMethod, new Class[]{URL.class});
                final Object returned = method.invoke(clazz.newInstance(), new Object[]{request}); but, its really pain to use in this way in all the places.
    Does any of you have simpler suggestions on how to achieve this?
    Thanks,
    Venky.

    Thanks jschell. Yes, you are right. I had found that using reflection API is the only way to load classes at the run time. But according to our application using reflection makes the application little complex, so while start of the application or during other modifications, i am overwriting my jar file to the latest one using FileChannel class as below
          FileChannel ic = new FileInputStream("new.jar").getChannel();
          FileChannel oc = new FileOutputStream("old.jar").getChannel();
          ic.transferTo(0, ic.size(), oc);
          ic.close();
          oc.close();After this code is executed, our application totally uses the new jar file.It is little fast than using reflection. Is this a good idea?

  • MIME object download by BSP  with 'Save as' box

    hello ,
      i am trying to download a Excel file which is in MIME objects in my BSP application. From portal i want to download this with 'Save as' box . Currently excel file is opening and i have to save it manually on local drive.
       can u suggest me any solution to open 'Save as ' dialogue box to download the MIME object on my local hard-disk drive by using BSP application.
    Regards

    Hi there,
    I'm getting the same issue with the following code:
    header("Pragma: public");
    header("Expires: 0");
    header("Cache-Control: must-revalidate, post-check=0, pre-check=0");
    header("Cache-Control: private",false);
    header("Content-Type: application/force-download");
    header("Content-Disposition: attachment; filename=\"$newFileName\";");
    header("Content-Transfer-Encoding: binary");
    header("Content-Length: ". filesize($fileName) );
    echo $fileData;
    The only issue seems to be with the filename being set to that of the php script. The contents of the file are correct. Have you had any luck with this issue?
    Cheers,
    Jeremy

  • Calling a mime object in the WebDynPro ABAP code dynamically

    Hi ,
    Can anyone let me know the API to access the mime objects dynamically in the WD ABAP code. I have a text file in the WD ABAP component as a text file.
    I would like to pick the file with the help of API's and read the content of the file using Mime Object API's .
    Can anyone help me out in this.
    Best Regards
    Sid

    Hi,
    do the methods of CL_WD_WEB_ICON help?
    Regards, Heidi

  • How to add PDF files into a slides? (Flash 8)

    I am new to flash and I am using Macromedia Flash 8. My task is simple enough: I need create a Presentation with Screens from PDF files: I have 10-12 PDF files which I want convert into flash presentation.
    I have read this tutorial:
    http://w3.id.tue.nl/fileadmin/id/objects/E-Atelier/Phidgets/Software/Flash/fl8_tutorials.p df
    Chapter 11: Basic Tasks: Create a Presentation with Screens.
    I'm having trouble how to add PDF files into a slides: I want insert a whole pdf file as separate slide, without splitting pdf file into separate elements: pictures, text, etc. I tried import pdf file into Flash, wheen import there is shown prompt how program should process this pdf file(add in stage, library, as keyframes, etc) , not clear which option is correct for my task. What I got is pdf file splitted into multiple images, text, - which is not what I want. I want keep PDF files without changes, preserve original design and formatting, just convert this pdf into flash, so presentation will consist of PDFs organized in correct order, then add navigation buttons and some effects. How to solve this task?

    Just to avoid potential confusion... PDF is an Adobe format, but Flash 8 is/was not.  Flash 8 came out before Adobe bought Macromedia.  Even today, I don't believe anything has been done to accomodate direct integration of PDF content in Flash.

  • Download Word .doc file saved in MIME Repository to local PC

    I need to store a static Word document on the SAP server and download to the user's browser via a BSP application.  I have found code in the IT00 BSP Application to download the Word doc in xstring form to the browser, which will work for what I'm doing.  What I cannot seem to find, however, is how to retrieve the  Word .doc file stored in the MIME repository and then subsequently how to convert this MIME object to an xstring value.  Is there a class or function module available to retrieve and convert the MIME object to an xstring form so that it can be returned as a response back to the browser?

    you can use the following code snippet to read mime repository content.
    data: o_mr_api type ref to if_mr_api.
    if o_mr_api is initial.
    o_mr_api = cl_mime_repository_api=>if_mr_api~get_api( ).
    endif.
    call method o_mr_api->get
    exporting
    i_url = l_url
    importing
    e_is_folder = is_folder
    e_content = l_current
    e_loio = l_loio
    exceptions
    parameter_missing = 1
    error_occured = 2
    not_found = 3
    permission_failure = 4
    others = 5.
    l_current will hold the image in a XSTRING var
    Regards
    Raja

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

  • Add arabic file names to ZipOutputStream problem

    Dear All,
    i have problem with add arabic file names to ZipOutputStream problem my sample code :
    zipOutputStream.putNextEntry("&#1593;&#1585;&#1576;&#1610;.txt");//some arabic text
    the zip file created successfully and contain files but the files in the zip file with name '??????????.txt'.i use many character set to encode arabic file name such as utf-8,windows-1256,iso-8859-1,IBM437 but the name changed to someting cannot understand lik '_&#1583;_&#1587;_&#1584;_&#1583;_&#1586; ___«___è_&#1585;1.txt' or '??????????.txt'.
    is there anyone to help
    with regards
    Wa'el Abu Rahmeh

    Its a warning. You can ignore it, and your program will run correctly.
    To get the full details, follow the instructions and run it with Xlint:
    javac -Xlint:unchecked beans\CustomerManager.javaProduces this error message:
    beans\CustomerManager.java:19: warning: [unchecked] unchecked call to add(E) as a member of the raw type java.util.List
                rv.add(getCustomer(String.valueOf(i)));
                      ^
    1 warningIt is a Java1.5 specific warning because you are not using the new Generics info with the collections.
    Here is the version that compiles with no warnings whatsoever.
    package beans;
    import java.util.ArrayList;
    import java.util.List;
    public class CustomerManager
        public List<Customer> getCustomers()
            return generateCustomers();
        private List<Customer> generateCustomers()
            List<Customer> rv = new ArrayList<Customer>();
            for (int i = 0; i < 10; i++)
                rv.add(getCustomer(String.valueOf(i)));
            return rv;
        public Customer getCustomer(String id)
            return new Customer(id, id + "First", "Last" + id,
                "123 Caroline Road Fooville");
    }Basically the change was everywhere you have List or ArrayList replace it with List<Customer> - meaning you have a List of customer objects, rather than just a List of "anything"
    If you are compiling with jdk1.5, then anywhere you use a Collection without specifying the types in this manner, it will create a warning.
    You can ignore the warning if you so wish, and the program should run fine.
    Cheers,
    evnafets

Maybe you are looking for