Can we code to import MIME object(Image)  on bsp page

hi
can we code to import MIME object(Image)  on bsp page
i have one bsp webpage like employee page , in which i have option to attach image so , i want that user attach image and image shuld be go in sap mime object.
thanks

Hi,
save the image into ur system.
Right click on object name->create->MIME object->import.
Then select hte image which u want to import and save it.
Then in the layout write code as
<html>
<img height="130" src="image.bmp ">
</html>
Regards,
jaya

Similar Messages

  • 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

  • Need code for dynamic insertion of a MIME object(image) into WebDynpro View

    Hi experts,
    I am attempting to insert an image into a view at runtime, using lines of code.
    I know that this code must be present in the WDDOMODIFYVIEW method of that particular view.
    However I am not sure about the lines of code which can do this. Can anyone please help me out with this........
    Thanks in advance,
    Adithya.

    Hi.,
    Yes you can add MIME at runtime ., Check this.,
    [MIME at run in WDA |Can mime object be created at run-time?;
    also ., [Display logo at runtime in WDA|Mime logo not displaying;
    hope this helps u.,
    Thanks & Regards
    Kiran

  • Display image in BSP page,images are on a web server outside of SAP

    Hi,
    I am creating a BSP page for employee profile.The page needs to show an emp picture along with other info.The images are not in the MIME repository,they are stored in a separate web server.I am able to display the page using
    <img border="0"                     src="http://.com/xyz/xyz.bmp" >
    However this is a non secured test server. If the images are on a secured server,I am assuming,an id ,pswd authentication will be required.Can I get the authentication done automatically so that the page is rendered seamlessly for the end user?
    Would SSO help if this web server is a portal server?what if the web server is not a portal server?

    Hi Manidipa,
    The Http class in SAP can also be used in passing the required authentication information to the non-SAP portal system.
    http://searchsap.techtarget.com/whitepaperPage/0,293857,sid21_gci1084087,00.html
    There is an article written by Angeli Axel which does the same. The article has got ABAP HTTP classes and methods to get and post the parameters to the non-SAP portal system.
    The same solution can be done by passing the credentials in the url. The custom solution would be to pass the required credentials in the url and the receiving application should grab those information from the url and confirm the authentication. After that it should be able to provide you the image. After getting the image it can be simply displayed in your BSP using iframe tag.
    For eg if the receiving side is in java, then the following code can be used to receive the username and password. Once you get this you can verify the validity depending on the datasource whether LDAP(MS-ADS, Sun one, Novell edirectory) or ordinary database(Oracle, MS SQL Server .. etc) is used for storing the credentials.
    try {
              String userName = request.getParameter("username");
              String password = request.getParameter("password");
              if (validateUser(userName, password)) {
                 response.sendRedirect("mainpage.jsp");
    The main page here you display the image
    } catch (Throwable t) {
    The above code should be considered as pseudo code for any server side language.
    Please let me know if this helps.
    With regards,
    Rajesh Khanna Venkatesan.

  • How to validate image at the time of uploading image in BSP page

    hi
    I have created a BSp page in which i have created attachment option with browse button , so please tel me that how to validate at the time of clicking save button , attachment should me image (jpeg,gif)
    thanks

    To provide f4 help for the input field, we have to add showHelp and onValueHelp attributes to the inputField tag. Provide the values to those attributes as shown below.
    You need to check after transferring the value fo object if the object  contains .jepg then return = true else return = false and call the error page and display the error message 'choose only the .jepg image' and on the error page also give the button to return to the previous page.
    hope this will help u.

  • MIME object/Image(JPG) not displayed in the WAD template

    Hello all,
    I uploaded a .JPG file to mime repository. I used that object my WAD template. When i excute the Temapate, image file is not displayed just showing X mark.
    But i am able to open/see the file from the mime repository.
    What could be the problem? please let me know.
    Reagards
    Ravi

    Hi Anil,
    Thanks for your reply. I have found the problem.
    Imaage that i have kept in mime belongs to https protocol. BSP application with SSL, needs https to execute in the browser.
    when i execute the template, by default WAD is using http protocol, so the image is not displaying, when i use https, the image is being displayed in the WAD output.
    Regards,
    Ravi

  • How can I  add MouseListener to my Object(Image),help me again

    May be I don't say it claritily. But I think the proplem is very challenging to me ,maybe also to you! I want to draw an image in JPanel,the user can move it(such as drag and drop),or the user can
    click the image so that show a dialog which tells user the information about the image.even the user can put the mouse over the image and soon appears something like toolTop .

    Add the Image to a JLabel.
    You can then set the tooltip text for that JLabel using setToolTipText.
    You can add a mouse listener to that JLabel that will respond to a mouse click and pop up a new JDialog.
    As for the drag-drop, I would get the other two things working first and then we can look at adding this functionality to the mouse listener.
    private JLabel label;
    private void createComponents()
      label = new JLabel(new ImageIcon("my-image.gif"));
      label.setToolTipText("This is the tool tip");
      label.addMouseListener(new MouseAdapter()
        public void mouseClicked(MouseEvent e)
          // code to show the dialog here
      add(label);
    }Hope this helps.

  • Can java studio creator import MIME?

    HI , i have 2 question
    1.> i am tring to make a page that stream music .wma usually in normal html
    <object id="mediaPlayer"
    classid="CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95"
    codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=6,4,5,715"
    type = "application/x-oleobject">
    <param name="autostart" value="true">
    <param name="showcontrols" value="true">
    <param name="filename" value="here ... music...name">
    <param name="ShowStatusBar" value="true">
    <embed type="application/x-mplayer2"pluginspage="http://www.microsoft.com/Windows/MediaPlayer/" src="question.wma" autostart="0" showcontrols="1" showstatusbar="1">
    </embed> </object>
    in java studio creator can i use that ? on the place to put music name can i gain control so i can put what ever name i want depend on user?
    2.> I make a class use File myFile = new File ("C:\\Music"); last time it's work but now it said source cannot be found? how do i fix that?
    thank you for advise

    Here comes your help;-) Or at least I hope so;-)
    The problem is, that you really want components in order to be able to change parameters etc from your application.
    http://blogs.sun.com/roller/page/marcoscorner#my_adventure_in_component_land
    Have fun;-)
    -- Marco

  • Can I get an imagefield to populate images on all page once image is uploaded

    Hi,
    I'm pretty new to LC and I have a long dynamic form to build from scratch. This form will be used by Sales, who will
    "configure" the services, fees ect to be on the form, then send it to the applicant to be filled. I would like our Sales rep to be able to upload an image to a image field (logo), and that logo to show on top of every page. As I don't seem to be able to add action to a image field, how can I do that? Million thanks in advance!

    They don't have to access the master page - the master page is what the form is built on, where you set your margins, put page numbers, boilerplate info, etc.
    You could also have one image field on the first page and image field's wherever else you need them and use global binding to make them share the same data - for global binding to work they have to have the same name and then on the Object>Binding palette set the Data Binding to Use Global Data.
    Or you could code it with the rawValue: imageField2.rawValue = imageField1.rawValue;

  • Unable to view TIFF image in BSP page

    Hi ,
    I have put in the URL of a TIFF image in the BSP code to display the image but the image refuses to appear. I found out that a TIFF image does not appear even in a normal HTML page. Is there any way to make this possible.

    Hi,
    we had the same problem. As far as I know there is no "build in" way to display tiff-images with a browser.
    We use a Java-applet to do this. We use ViewOne from Daeja image systems. Look at <a href="http://www.daeja.com/">http://www.daeja.com/</a>. That works very good.
    Hope that helps.
    Best regards
    Renald

  • How To Upload a Mime Object into BSP Application??

    Hi all,
    I am new to Developing BSP Applications.
    I have a requirement to design a BSP Page and in the header part of the page, i have to display a JPG file from my local PC.
    To achieve this, I did the following:
    1) Upload/Import  the MIME Object(JPG File) into MIME Repository and into the relevant BSP Application.
    2) After the import, i can see the JPG file that I uploaded in the MIME Repository under my BSP Applciation.
    3) In my BSP Page, I tried to use the uploaded JPG file using the following Source Code, as was explained in the Documentation.
    <IMG SRC="myfile.jpg">
    I did not not do any basic mistakes and went according to documentation in using the above mentioned SRC command to upload the Image from the MIME Repository onto the BSP Page.
    But when I run my BSP Application in TEST mode, the Image never shows up; I tried all different way to get this image on the BSP Page and i could not.
    I am currently on ECC 6 Version. Please guide me.
    Thanks

    all that you have to do is reference the image in your page.
    <htmlb:image id            = "TOG"
                       tooltip       = "tooltip text"
                       src           = "picturename.jpg"/>
    2) After the import, i can see the JPG file that I uploaded in the MIME Repository under my BSP Applciation.
    Can you see this in SE80->applicationname->mime objects folder

  • Hi Experts, I have small issue with Mime object in webdynpro component?

    Issue: i have imported mime object with some changes on existing mime object, But this is not reflecting it was displaying old one only,New changes are not reflecting.
    Requirement : We are creating buttons with some CSS style and that image type .PNG and that image we are importing into web dynpro component as a Mime object , This same image we are creating for defferenet languages(EX : image name : Searcch_EN.png , Search_DE.png), this images we are binding the button image source property . and we are calling this image through the code.
    Now problem : I want change one image Ex : Sumbit_EN.png . i need to change this button i image like " SUBMIT_EN.png". So i have created this image as per requirement and i have imported into mime object. But it was not reflecting.
    Please Help me on this...
    Regards,
    Venugopal.P

    Hi Venu,
    You need to clear the cache of mime object to see the changes done.
    Please follow the below steps
         Right click on mim object or your image
    Choose option "Expiration Time client cache"  from menu
    Check the individual expiry date check box and un-check the Expiry active as below
    Note: you can do it for individual imange or for all mimes in a component
    Hope this helps you.
    Regards,
    Rama

  • BSP OTRs and MIME Objects do not appear

    Dear SDN Members:
    I have been facing a very peculiar issue. At first we had problems in our Z* BSP Application with SY-SUBRC values after a
    READ TABLE itab INTO wa WITH KEY field1 = var_field1.
    If there were no matching record(s) in Internal table, the SY-SUBRC value was still '0' (Zero) and not 4 etc..
    Now another problem has cropped up...
    At a point in the program (Layout section), there are some HTML lines and OTRs+MIME objects to be executed.
    The program executes those lines as visible in debugger, but does not display the same on Internet Explorer screen. The OTRs and .gif files do not appear in this case. A small preview of the code is pasted here below:
    We have recently upgraded our Quality/Testing server to CRM 4.0 from CRM 3.0 and are doing Application Testing.
    <td class="body" width="100" style="vertical-align:middle; text-align:center">
    <% if a_fcode_tknra = 'change' and application->c_rolle_user <> 'P' and ls_release-releaseid = '-'. %>
    <input type="image" style="background-color:#EEEEEE" src="/SAP/BC/BSP/SAP/ZSM_TKNRA_PLUS/IMAGES/s_b_chng.gif" name="onInputProcessing(change_au_detail__<%=ls_au_ext-auid%>)"
    alt="<%=otr(ZSM_SAMOS/ZSM_TKN_RA_RA_KE_P05_AENDERN)%>">
       <input type="image" style="background-color:#EEEEEE" src="/SAP/BC/BSP/SAP/ZSM_TKNRA_PLUS/IMAGES/s_b_dele.gif" name="onInputProcessing(delete_au_detail__<%=ls_au_ext-auid%>)"
    alt="<%=otr(zsm_samos/delete)%>" onClick="delete_and_confirm();">
    <% endif. %>
    <% if a_fcode_tknra = 'change' or a_fcode_tknra = 'display'. %>
       <input type="image" style="background-color:#EEEEEE" src="/SAP/BC/BSP/SAP/ZSM_TKNRA_PLUS/IMAGES/s_b_disp.gif" name="onInputProcessing(display_au_detail_<%=ls_au_ext-auid%>)"
    alt="<%=otr(ZSM_SAMOS/ZSM_TKN_RA_RA_KE_P05_ANZEIGEN)%>">
    <% endif. %>
    </td>
    Please help me understand how to go about solving this.
    Regards.
    Vivek.

    Thanks Raja for posting back. The issue is slightly more complex: there are other "src" usages, but they are working fine in other sections of the layout code. The MIME objects have all been stored at right places.
    This BSP Application has been in use since 2-3 years. Only while we posed for CRM 3.xx to 4.xx upgrade, we are facing these issues in Quality Testing.
    We have tried some 2-3 permutations and combinations for this part of code, but nothing works. Do you think the source path changes in different CRM versions? Or do OTRs face some compatibility issues? Do guide me with them.
    The READ table issue is a shocker for us as well!
    Ofcourse the work area is empty, as nothing's there to be read! Now we have placed a double check with "work area NOT INITIAL" to override this problem. In fact this is on SAP OSS as Priority 1 issue but no definite solution has been provided till date, except that they were talking of some Kernel patch (...??).
    Do let me know if you can think of some reason for this abnormal behavior, as right now everything is "out-of-the-box".
    Thanks.
    Vivek.

  • Sap/bw/Mime/Customer/Images Path in SAP BW Server

    Hi,
    while developing the Web Reports, Our consultants has used some logos in the templates in the development server. These logos are appearing in development properly. I have transported these templates to the quality where these icons are not displaying.
    Post that I found these icons are picked up from from the location  '/sap/bw/Mime/Customer/Images/headjetlogo.gif'. I am trying to copy these files from development to quality. But I am unable to find this path on development server.
    Can anyone please help  me on how do I find these files.
    Thanks
    Ramesh Ganji

    hi Ramesh,
    when we attach the file to dev, system will ask for 'local object' or specify package and save to request to be transported.
    since it's not 'insert' by you, try right click in SE80 and check if there is 'object directory entry', change the package and it will prompt request or right click the file and find menu 'export' or 'download', it will then save to you local pc (specify a folder).
    after that go to production, se80, right click the folder and 'import mime objects' from the file downloaded.
    hope this helps.

  • Mime objects

    I have the following problem: A BSP has just been migrated from XI to R/3, along with some MIME objects that are used in the BSP.
    In the transport order, the MIME objects are present.
    But they are not present in the BSP's object tree, and the BSP displays a "missing image" square where the images corresponding to the MIME objects should have been.
    How can I solve this?
    Thanks in advance,
    S.

    You have to upload that MIMe object in the BSP application.Also you have to specify the name of the
    MIMe object where it is used insdie the layout code.

Maybe you are looking for

  • Scheduling by employee skills

    Summary: We are exploring options that will let us schedule planned orders by skills that the employees have. We are on 12.0.6. We do not have MES nor PS. And we are aware that "Schedule by instance" capability is not available for labor resources. D

  • Error during java migration tool kit phase

    Hi All , We are migrating the BI 7.00 EHP1 from  (Win 2008/SQL 2008) to Target (Win 2008/SQL 2008).This is a export/Import based method using sapinst tool. Import stopped at the "Java Migration Toolkit" phase.The following are the error logs , if any

  • HT4897 unable to create alias

    Anyone having success at creating an alias under their icloud account? First the message was that the site was unable to save the alias. Now the message is that I have to wait 7 days due to canceling a previous alias (not valid as I did not cancel a

  • JDK 1.4.2 java applet image printing on mac safari

    Hi there, I'm trying to implement printing inside java applet using javax.print package. I read an article somewhere about the package not working perfectly under mac, and a workaround is to use the old java.awt.print to get the print services, then

  • I pod classic 120 gb

    i bought my i pod 3 years ago in uk uploaded 743 songs and was perfect for approx 3 years then in july yhis year i bought an iphone 4 in tenerife when i went into i tunes to register new i phone was ok then 4 weeks later my i pod lost all songs every