How to get image from MIME folder

Dear Experts!!
I am doing the WebDynpro Exercise on /docs/DOC-8661#22 [original link is broken] [original link is broken].
I put the images files to be shown with the UI elements in srcmimesComponents<package folder> in my workplace, gave the source of the pictures in the layout setting of the UI elements.
However, I am not getting the images in the UI elements.
I want some hints on the place to put the image files.
I have put the images in the above mentioned folder  of the workplace, but when I check the navigation view of the project, I cannot see those imagefiles in srcmimesComponents<package folder>.
Thanks in advance for your suggestions.
regards,
sudeep

Hi Sudeep
The procedure you are following in copying the images into src\mimes\Components\<package folder> is absolutely correct, but you are saying that you are not able to see those in navigation tab, then do one thing . directly nagivate through the 
src\mimes\Components\<package folder> in your navigation tab and try to paste in image there only.
remember one thing. the image name is CASE SENSITIVE . and you need to specify the extension along with the image name in the SOURCE property of the ImageUIElement.
CLOSE YOUR PROJECT AND REOPEN THE PROJECT . and then go through navigation tab and see. now you can see those images
Best Regards
Chaitanya.A

Similar Messages

  • How to load image from a folder to HTML page

    Hi frds,
    It's Very Urgent.
    I'm doing Visitor Management System Project.Regarding that,I get all personal details from Visitor and i used web cam for capture the visitor photo.That photo stored in folder.Actually what is my Question is?.How to fetch the photo from that folder even "Submit" button click.Is it any possible for fetch the photo which is captured as last photo.That means photo fetch by Time sequence.

    The photo is stored on the visitor's local computer?
    If this is the case, the only real way to get it to your server through a webpage is to use a file upload control. This means the user has to select the photo manually before he presses the submit button.
    Check out the "file" input field, which is a standard HTML control.
    It's Very Urgent.Some friendly advice, the next time do not mention this. People here do not care that your problem is urgent, in fact it will make them less likely to answer your question.

  • How to upload image from a folder thro JSP

    Hi,
    I am CBK Varma,and I am developing one application, where
    I have to display images in my webpage, from a specific folder that should keep on changing every 10 sec.. ...
    how to upload these image files to my page with timing..means afterr 10 sec ,the another image in the same folder has to be dis[play.
    I am storing images ina folder as .jpg/.gif format. (thro Java Program).
    Plz tell me the way of how to do this?
    Thanks in advance.
    Varma.

    These image files reside on the client? If so the client is going to have to initiate the upload. Think of the security problems if they didn't?

  • How to view images from Pictures Folder using iPhoto?

    Right now when I click an image in the Pictures folder, the image is automatically opened using Preview. I want to view images directly from my Pictures folder, and have them open to iPhoto. Is that possible?
    I just want to be able to view/sort my photos by Folders rather than by Events, Titles or Photo dates. I can't seem to get them to sort by folders in iPhoto.

    Iphoto is a Photo Database designed to allow you to organise and manipulate you photos without recourse to your files.
    It's not an image viewer, it can only work with photos that have been imported to the database.
    I just want to be able to view/sort my photos by Folders rather than by Events,
    An Event is a folder of images with a fancy icon. You can organize your pics in iPhoto anyway you want, using Albums, folders, keywords and so on. It's far more flexible that using folders in the Finder.
    You can opt to organise the files yourself, rather than have iPhoto do it for you, but I don't recommend it.
    Simply go to iPhoto Menu -> Preferences -> Advanced and uncheck 'Copy Files to the iPhoto Library on Import'.
    Now iPhoto will not copy the files, but rather simply reference them on your HD. To do this it will create an alias in the Originals Folder that points to your file. It will still create a thumbnail and, if you modify the pics, a Modified version within the iPhoto Library Folder.
    However, you need to be aware of a number of potential pitfalls using this system.
    1. Import and deleting pics are more complex procedures
    2. You cannot move or rename the files on your system or iPhoto will lose track of them on systems prior to 10.5 and iPhoto 08. Even with the later versions issues can still arise if you move the referenced files to new volumes or between volumes.
    3. Most importantly, migrating to a new disk or computer can be much more complex.
    Always allowing for personal preference, I've yet to see a good reason to run iPhoto in referenced mode unless you're using two photo organisers.
    If disk space is an issue, you can run an entire iPhoto Library from an external disk:
    1. Quit iPhoto
    2. Copy the iPhoto Library as an entity from your Pictures Folder to the External Disk.
    3. Hold down the option (or alt) key while launching iPhoto. From the resulting menu select 'Choose Library' and navigate to the new location. From that point on this will be the default location of your library.
    4. Test the library and when you're sure all is well, trash the one on your internal HD to free up space.
    If you're concerned about accessing the files, There are many, many ways to access your files in iPhoto:
    *For Users of 10.5 and later*
    You can use any Open / Attach / Browse dialogue. On the left there's a Media heading, your pics can be accessed there. Command-Click for selecting multiple pics.
    Uploaded with plasq's Skitch!
    You can access the Library from the New Message Window in Mail:
    Uploaded with plasq's Skitch!
    *For users of 10.4 and later* ...
    Many internet sites such as Flickr and SmugMug have plug-ins for accessing the iPhoto Library. If the site you want to use doesn’t then some, one or any of these will also work:
    To upload to a site that does not have an iPhoto Export Plug-in the recommended way is to Select the Pic in the iPhoto Window and go File -> Export and export the pic to the desktop, then upload from there. After the upload you can trash the pic on the desktop. It's only a copy and your original is safe in iPhoto.
    This is also true for emailing with Web-based services. However, if you're using Gmail you can use iPhoto2GMail
    If you use Apple's Mail, Entourage, AOL or Eudora you can email from within iPhoto.
    If you use a Cocoa-based Browser such as Safari, you can drag the pics from the iPhoto Window to the Attach window in the browser.
    *If you want to access the files with iPhoto not running*:
    For users of 10.6 and later:
    You can download a free Services component from MacOSXAutomation which will give you access to the iPhoto Library from your Services Menu. Using the Services Preference Pane you can even create a keyboard shortcut for it.
    For Users of 10.4 and later:
    Create a Media Browser using Automator (takes about 10 seconds) or use this free utility Karelia iMedia Browser
    Other options include:
    1. *Drag and Drop*: Drag a photo from the iPhoto Window to the desktop, there iPhoto will make a full-sized copy of the pic.
    2. *File -> Export*: Select the files in the iPhoto Window and go File -> Export. The dialogue will give you various options, including altering the format, naming the files and changing the size. Again, producing a copy.
    3. *Show File*: Right- (or Control-) Click on a pic and in the resulting dialogue choose 'Show File'. A Finder window will pop open with the file already selected.
    You can set Photoshop (or any image editor) as an external editor in iPhoto. (Preferences -> General -> Edit Photo: Choose from the Drop Down Menu.) This way, when you double click a pic to edit in iPhoto it will open automatically in Photoshop or your Image Editor, and when you save it it's sent back to iPhoto automatically. This is the only way that edits made in another application will be displayed in iPhoto.
    Regards
    TD

  • How to get ringtones from music folder

    I really need help getting my purchased ringtones from the music folder to the rigntone folder.  support is not helping.
    All of my purchased ringtones show up in my music folder and not in my ringtone folder.  Please HELP anyone

    After performing a (Finder) Find for .aif files, I located the tracks and was able to delete the playlist (album) folder with the tracks. So no assistance needed after all.
    However, inexplicably, the folder with the tracks to be deleted was located in iTunes Music folder > Compilations folder, rather than in the artist folder. After finding and moving the folder of the tracks to the Trash, I checked the info of the original CD in iTunes out of curiosity and discovered that "Part of a compilation" was checked for the tracks, even though this is not a compilation (or even a live) album. I assume this sort of...tagging, I guess...was originally imbedded in the CD and is not a result of any glitch in iTunes. In fact, in the Compilations folder, I noticed several albums which are not compilation albums. I'd appreciate any thoughts or explanations as to why some non-compilation albums are checked as compilation albums.
    Thanks,
    Paul

  • How to get Image from JEditorPane

    I have an HTML which is rendered in JEditorPane. I need to get the image, shrink it, and create an icon. any idea how to do this?
    Thanks

    You can call the component's paint method and supply another Graphics object for it to paint to. Then use this Graphics object as your Icon's paint buffer...
    Quick ugly pseudocode...
    tempGraphics = createImage(...).getGraphics();
    pane.paint(tempGraphics); //ok now you have the image.
    //scale it...
    Icon icon = new Icon(){
    public void paintIcon(Component c, Graphics g, int x, int y)
    tempGraphics.copyTo(g);
    };

  • How to get images from sybase database

    i have been trying to fix this code and so far after 10 hours have no succes my jsp page is coded like so...
    <html>
    <head><title>JSP The Short Course - Lesson 13 </title></head>
    <body>
    <jsp:useBean id="myBean" scope="session" class="examplebean.bean2" />
    <img src= "<%=myBean.getImage(1)%>">
    </body>
    </html>
    and the bean is coded like so
    package examplebean;
    import java.sql.* ;
    import java.io.Serializable;
    public class bean2 implements java.io.Serializable {
    public bean2() {}
    public javax.servlet.http.HttpServletResponse getImage(int p){
    java.io.BufferedInputStream bufferedInputStream;
    Connection sqlca = null;
    Statement sqlStatement = null;
    ResultSet myResultSet = null;
    javax.servlet.http.HttpServletResponse response = null;
    java.io.InputStream i = null;
    int popo = 0;
    try {
    Class.forName("com.sybase.jdbc2.jdbc.SybDriver");
    String theDatabase = "jdbc:sybase:Tds:compserver:5000/syb3026";
    sqlca = DriverManager.getConnection(theDatabase,"syb3026","oohyeahh");
    sqlStatement = sqlca.createStatement();
    myResultSet = sqlStatement.executeQuery("select Product_Picture from PRODUCT_TABLE where Product_Id = " + p + " ");
    /* Construct the heading for the table */
    /* Move to next row and & its contents
    to the html output */
    response.setContentType("image/jpeg");
    while(myResultSet.next()) {
    byte[] pepe = myResultSet.getBytes("Product_Picture");
    popo = pepe.length;
    i.read(pepe,0,popo);
    bufferedInputStream = new java.io.BufferedInputStream(i);
    java.io.ByteArrayOutputStream byteArrayOutputStream = new java.io.ByteArrayOutputStream();
    int start = 0;
    int length = 1024;
    byte[] buff = new byte[popo];
    int bytesRead;
    while(-1 != (bytesRead = bufferedInputStream.read(buff, 0, popo))) {
    byteArrayOutputStream.write(buff, 0, bytesRead);
    bufferedInputStream.close();
    response.setContentLength( byteArrayOutputStream.size() );
    response.getOutputStream().write( byteArrayOutputStream.toByteArray() );
    response.getOutputStream().flush();
    JPEGEncodeParam param = encoder.getDefaultJPEGEncodeParam(img);
    param.setQuality(1.0f,true);
    encoder.encode(img,param);
    out.close();*/
    sqlStatement.close();
    catch (SQLException e) {
    System.out.println(" Error: SQL error of: " + e.getMessage());
    catch (Exception e) {
    System.out.println(" Error: JDBC Class creation: " + e.getMessage());
    finally {
    try {
    sqlca.close();
    catch(SQLException e) {
    System.out.println(" Error: Closing connection: " + e.getMessage());
    return response;
    I KNOW THIS CODE IS NOT THE BEST WRITEN BUT I SHOULD WORK. BUT IT DOESNT I REALLY NEED HELP AND DONT HAVE ANY ASISTENCE IN COLLEGE ANY HELP WOULD BE APPRECITAED SINCERLY AS I AM LOST WITH THIS PROBLEM
    THANK YOU
    THANK YOU
    THANK YOU
    THANK YOU

    maybe not so complex
    if (RS_photo.next()){ 
    buf = RS_photo.getBytes(1);
    response.setContentType("image/"+photoname);
    OutputStream out = response.getOutputStream();
    out.write(buf);
    out.flush();
    }catch (Exception e){ 
    //throw e;
    }

  • How to pull or import images from MIME repositary.

    Hello Experts,
    i have uploaded the JPEG images via t-code  OAER,BUT I AM UNABLE TO RETRIAVE it,
    could you please tell me how can i retriave Mass images from MIME repository?
    Regards,,,,,,,,,,
    Santosh

    Sorry, by mapped i meant what you described above...changing my designated media folder to the one on the new EHD.
    I did try holding in the option/alt key as suggested by apple elsewhere in the forum but only opened the a window indicating where the shortcut file is located i.e. the iTunes.exe properties window. I tried the shift key too as well as several other but could not get the window asking me to choose a library.
    Tried to copy a screen grab in but it doesnt allow me to.
    When i opened the player after moving the folder there was nothing in my libraries except for a few purchesed songs and movies saved on icloud. I got my music in by going to file>add folder, and selected the music folder on the new drive. This "imported" my music to the player.
    I must mention also i am using Win8 and the latest version of iTunes, but i live is South Africa and ive noticed my laptop keyboard keys/functions on the HP are different from previous computers i have used.
    Where should the playlst files reside when using an EHD? Still on the main computer or on the new EHD?

  • How to delete images from folder which are not in the database

    I am created windows form
    i wont to delete images from the folder where i have stored images but i only want to delete those images which are not in the data base.
    i don't know how it is possible . i have written some code
    private void button1_Click(object sender, EventArgs e)
    string connectionString = "Data Source";
    conn = new SqlConnection(connectionString);
    DataTable dt = new DataTable();
    cmd.Connection = conn;
    cmd.CommandText = "select * from tbl_pro";
    conn.Open();
    SqlDataAdapter da = new SqlDataAdapter(cmd);
    da.Fill(dt);
    int count = Convert.ToInt32( dt.Rows.Count);
    string[] image1 = new string[count];
    for (int i = 0; i < count; i++)
    image1[i] = dt.Rows[i]["Image1"].ToString();
    string[] image2 = new string[count];
    for (int i = 0; i < count; i++)
    image2[i] = dt.Rows[i]["Image2"].ToString();
    var arr = image1.Union(image2).ToArray();
    string[] arrays;
    String dirPath = "G:\\Proj\\";
    arrays = Directory.GetFiles(dirPath, "*", SearchOption.AllDirectories).Select(x => Path.GetFileName(x)).ToArray();
    int b= arrays.Count();
    for (int j = 1; j <= b; j++)
    if (arrays[j].ToString() != arr[j].ToString())
    var del = arrays[j].ToString();
    else
    foreach (var value in del) // ERROR DEL IS NOT IN THE CURRENT CONTEXT
    string filePath = "G:\\Projects\\Images\\"+value;
    File.Delete(filePath);
    here error coming "DEL IS NOT IN THE CURRENT CONTEXT"
    I have to change anything .Will It work alright?
    pls help me
    Sms

    Hi Fresherss,
    Your del is Local Variable, it can't be accessed out of the if statement. you need to declare it as global variable like below. And if you want to collect the string, you could use the List to collect, not a string.  the string will be split to chars
    one by one.
    List<string> del=new List<string>();
    for (int j = 1; j <= b; j++)
    if (arrays[j].ToString() != arr[j].ToString())
    del.Add(arrays[j].ToString());
    else
    foreach (var value in del)
    string filePath = "G:\\Projects\\Images\\" + value;
    File.Delete(filePath);
    If you have any other concern regarding this issue, please feel free to let me know.
    Best regards,
    Youjun Tang
    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.

  • How can I import selected images from a folder instead of the whole folder in iPhoto 9.5.2?

    Hi there,
    I was trying to help my parents import some photos from a folder they have created with photos from their holiday. They only want to import select images from this folder into iPhoto. I said it would be easy and they can do it in 2 ways. First, they can drag and drop selected photos from their folder into iPhoto - and this works for them. However, more convieniently, they can click file>import to Library and then select the photos they want by going into the folder... Well that's how it works on my iPhoto '11 at least. When they showed me their screen via Skype (they are running iPhoto 9.5.2), when they click import to library, and try to go into the folder containing their photos, it imports the whole thing and there appears to be no way that they can enter the folder to select just a few photos from what I could see.
    Does anyone know anything aout this problem?
    Cheers.

    What view are using in the Import dialogue. Column view might be easiest to navigate.

  • How to get images dynamically from database without file paths in the table field

    I have a MS-Access database. I am working with ASP.NET. In the database there is product table in which I have "CodeNo" as a field which is a text field, and the product codes like "SM-R-2035". I also have another field "Image" which is also a text field and which have a file path in it corresponding to the particular product Image (e.g. Images\Products\SM-R-2035.jpg). So far every thing is ok. I have to update this site very frequently and lots of images are added each and every time. Its a tedious work to type the paths and file name every time and it also take a lot of time.
    What I am asking is : Is it possible to get images from a specific folder at runtime which is referenced by the "code no" itself and not the file path from the database. (Say at run time the "code no" is referenced from the database and the corresponding image is loaded dynamically from the specified folder). In other word I want to avoid the tedious work of typing.
    Can any one help with this issue. Any other simple suggestions are welcome.

    All you need to do is simple concatenation to obtain the path for the image file.  You didn't mention whether you are using VB.Net, C# or some other language to do your coding.
    If the code in your database is SM-R-2035, the file name is SM-R-2035.jpg and the path to the images foilder is Images\Products\SM-R-2035.jpg, Conceptually here is what you need to do:
    dim code_var
    dim path_var
    code_var = the code you obtain from your relevant field in the database
    path_var = "Images\Products\" & code_var & ".jpg"
    Now path_var is what you would call to obtain the image from your images folder.

  • How do I get images from Aperture into print shop for mac?

    Friends,
    I have Print Shop for Mac and Aperture. How do I get images from Aperture into Print Shop? I'musing managed images with previews. Is there any option besides exporting to the desktop and importing?
    Thanks!
    Steve

    if you have previews turned on in Aperture and they're all genereated, you can simply drag-n-drop them into any application (just about). drag-n-drop is essentially the same as copy/paste as long as the application is setup to accept "drops" onto its windows.
    otherwise, if you're running Leopard (10.5) as your version of Mac OS X, when you import (or whatever it is in PrintShop), you should get a file selection dialog. from here, scroll down the left-hand side bar set of icons. near the bottom is a group called "Media". click on the triangle to open the group, choose Photos, and from here you should see an Aperture icon. click this and you'll see your whole library (or at least the portion of it that you have previews generated for. select the photo you want and viola!
    scott

  • How do i load images from a folder?

    Hello everyone,
    Please can someone help me as i am stuck.
    I am trying to research loading images from a folder called /images/unknown (unknown is a customer number and is stored in a variable called customerNo).
    I feel that i will need to load the images into an array then display them to the screen with a viewer.
    Can anybody help me.
    Thanks in advance

    Welcome to the Sun forums.
    irknappers wrote:
    ...Please can someone help me as i am stuck.You might want to be more exact in future, about what you are stuck on.
    import javax.imageio.ImageIO;
    import java.io.FileFilter;
    import java.io.File;
    import javax.swing.JFileChooser;
    class LoadImages {
        public static void main(String[] args) {
            String[] suffixes = ImageIO.getReaderFileSuffixes();
            FileFilter fileFilter = new FileFilterType(suffixes);
            File directory = null;
            if (args.length==1) {
                directory = new File( args[0] );
            } else {
                JFileChooser fileChooser = new JFileChooser();
                fileChooser.setFileSelectionMode( JFileChooser.DIRECTORIES_ONLY );
                int result = fileChooser.showOpenDialog( null );
                if ( result == JFileChooser.APPROVE_OPTION ) {
                    directory = fileChooser.getSelectedFile();
                } else {
                    System.err.println("Must select a directory to proceed, exiting.");
            File[] images = directory.listFiles( fileFilter );
            for (File file : images) {
                System.out.println(file);
            System.out.println( "The rest is left an exercise for the reader.  ;-)" );
    class FileFilterType implements FileFilter {
        String[] types;
        FileFilterType(String[] types) {
            this.types = types;
        public boolean accept(File file) {
            for (String type : types) {
                if ( file.getName().toLowerCase().endsWith( type.toLowerCase() ) ) {
                    return true;
            return false;
    }

  • How to Drag a image from a folder and drop it into Photoshop, InDesign using keyboard?

    Hi!
    Others may think silly about this question but the reality is I have to drag and drop several images into InDesign from a folder each one by one. Is it possible to drag and drop images from desktop (folder) to Adobe InDesign, Photoshop, etc?
    Thanks!
    Hope a positive reply.

    Thanks Peter/Jongware
    I searched Google and found the link below but became unable to use 'drag and drop'
    http://www.knowledgesutra.com/forums/Keyboard-Mouse-t49017.html
    I'm using Windows 7 Ultimate.
    Thanks.

  • How to present pics from SAP folder?

    Hi,
    I would like to present a pic that is on the SAP folder (visible via AL11).
    I want to use logical filename to get the path to that gif.
    How can I present this pic on the screen?
    Thanks,
    Itay

    hi itay,
    you can use webdynpro IMAGE ui element. Bind the Source Property of the image UI element to the URL for this image. Check the below code on how to get IMAGE source URL in HR
    DATA: it_toav0 TYPE TABLE OF toav0,
            wa_toav0 TYPE toav0,
            p_exists TYPE c.
      DATA: ex_length   TYPE int4,
            ex_document TYPE TABLE OF tbl1024,
            ex_message  TYPE bapiret2,
            img         TYPE xstring,
            url         TYPE string,
            pernr       TYPE persno VALUE `1006786`.
      DATA: cached_response TYPE REF TO if_http_response,
            guid TYPE guid_32.
    * check employee image
      CALL FUNCTION 'HR_IMAGE_EXISTS'
        EXPORTING
          p_pernr        = pernr
          p_tclas        = 'A'
        IMPORTING
          p_exists       = p_exists
          p_connect_info = wa_toav0.
      IF p_exists = 1.
    *   get image data
        CALL FUNCTION 'ALINK_RFC_TABLE_GET'
          EXPORTING
            im_docid    = wa_toav0-arc_doc_id
            im_crepid   = wa_toav0-archiv_id
          IMPORTING
            ex_length   = ex_length
            ex_message  = ex_message
          TABLES
            ex_document = ex_document.
    *   convert to xstring
        CALL FUNCTION 'SCMS_BINARY_TO_XSTRING'
          EXPORTING
            input_length = ex_length
          IMPORTING
            buffer       = img
          TABLES
            binary_tab   = ex_document.
        CREATE OBJECT cached_response
          TYPE
            cl_http_response
          EXPORTING
            add_c_msg        = 1.
    *   set image to mime
        cached_response->set_data( img ).
        cached_response->set_header_field(
                         name  = if_http_header_fields=>content_type
                         value = 'image/pjpeg'  ).
        cached_response->set_status( code = 200 reason = 'OK' ).
        cached_response->server_cache_expire_rel( expires_rel = 180 ).
        CALL FUNCTION 'GUID_CREATE'
          IMPORTING
            ev_guid_32 = guid.
        cl_wd_utilities=>construct_wd_url(
                         EXPORTING application_name = 'Z_JR05'
                         IMPORTING out_local_url    = url     ).
        CONCATENATE url '/' guid sy-uzeit INTO url.
        cl_http_server=>server_cache_upload(
                        url      = url
                        response = cached_response ).
    *   set photo
        DATA:
         node_photo           TYPE REF TO if_wd_context_node,
         elem_photo           TYPE REF To if_wd_context_element,
         stru_photo           TYPE wd_this->element_photo.
        node_photo = wd_context->get_child_node(
                    name = wd_this->wdctx_photo ).
        elem_photo = node_photo->get_element(  ).
        elem_photo->set_attribute(
          EXPORTING
            name =  `PHOTO`
            value = url ).
      ENDIF.
    Also check this excerpt from Thomas Jung for previous Thread on same issue
    SE78 is the old graphics store for SAPScript. Not the best place to store images now because of the limited support for graphic types. Usually you store as Bitmaps there, making those images highly inefficient for usage on the web. Unless you have thousands of images you need to use, I would suggest downloading them, converting their format and storing them in the MIME repository. If you absolutely must access those images for some reason, look at the function modules in group STXBITMAPS - function module SAPSCRIPT_GET_GRAPHIC_BDS or SAPSCRIPT_BITMAP_GET depending upon which of the two formats/folders where used in SE78.
    greetings
    Prashant

Maybe you are looking for