Display image in "Image" UIElement without storing it in MIMEs

Hi All,
  I am new to Web Dynpro ABAP.
  I am learning WDA by selftrainning.
  I want to retrieve the image from database table and display that image in an "Image" UI Element.
  (Without storing that image in to MIME objects)
  This is my requirement...!
  Can anyone provide me steps to achieve this!
   Thanks in Advance!
  Regards,
  Sreelakshmi.
Edited by: sreelakshmi.B on Jul 3, 2009 2:06 PM

hi,
you can do this by using file UI element : 2 elements are available
1. file download
2. file upload
with this element you can download the file/ image in your pc rather than in mime repository
check out this link :
http://help.sap.com/saphelp_nw2004s/helpdata/en/42/fdf9c528d45171e10000000a1553f7/content.htm
hope this will surely help you!!!
Thanks & Regards,
Punit Raval.
Edited by: punit raval on Jul 3, 2009 2:59 PM

Similar Messages

  • Some JPG images, stored in DB, do not display on screen/image item.

    Hi friends,
    I have a form to save and retrieve images (JPG, GIF, TIF) to and from DB, using WEBUTIL_FILE_TRANSFER.CLIENT_TO_DB and CLIENT_IMAGE.WRITE_IMAGE_FILE respectively.
    It’s working fine, but with few JPG images, it stores in DB but do not display on screen/image item.
    Secondly, if I try to retrieve and write this JPG to OS (using CLIENT_IMAGE.WRITE_IMAGE_FILE), it prompts error “FRM-47101: Cannot write image file”.
    Environment:
    Forms [32 Bit] Version 10.1.2.0.2
    OS XP Pro 2002 SP3
    Oracle DB 11g Enterprise Edition Rel. 11.1.0.7.0 - 64bit
    Any help will be highly appreciated.

    Hi,
    I have done a workaround here, which worked for me.
    My requirement is to direct save images in DB. So my system was just saving images without knowing if picture would display on form or not later.
    I created a (non-DB) image item on form and added a code (CLIENT_IMAGE.READ_IMAGE_FILE) to place image in this image item, if it successfully display image then save image directly in DB using code (WEBUTIL_FILE_TRANSFER.CLIENT_TO_DB).
    Note: - If CLIENT_IMAGE.READ_IMAGE_FILE fails it raises exception and it means image has invalid format/internal data header and system does not save image in DB.
    Now I have a kind of a filter to stop saving pictures which do not display later on form. :)
    Edited by: user12173428 on 29/09/2011 16:38

  • I have selected not to load images automatically in OPTION of firefox, and i want to keep this option as it is. now can i display images of particular page without changing DONT LOAD IMAGE AUTOMATICALLY?

    i have selected not to load images automatically in OPTION of firefox, and i want to keep this option as it is. now can i display images of particular page without changing DONT LOAD IMAGE AUTOMATICALLY? for example if i trust that image on particular page doesnot contain any adult material and safe to see that page from home, can i temparory view image on page?

    -> Tap '''ALT''' key or press '''F10''' to show the Menu Bar
    -> go to Tools Menu -> Options -> Content -> click '''Exceptions...''' button infront of '''Load images automatically''' -> type the address of the website on which you want to load images e.g. yahoo.com and click '''Allow''' button -> click Close
    -> Click OK on Options window -> Restart Firefox
    Check and tell if its working.

  • Protected articles display as preview images without the Large Purchase Pane

    I created a folio with article preview in v27. When I open it right after the preview content completes downloading, everything works as expected.
    However, when I open the same preview folio afterwards, the protected articles display as preview images and the Large Purchase Pane disappears.
    Anyone have an idea what might cause this problem?

    It turned out that I did not set up the subscription purchase on iTunes Connect, so the subscription button disappears from the purchase panel.

  • How do you display a new image in  webdynpro view?

    How do you display a new image in  webdynpro view?
    Where is the image stored and how do we specify the image path?

    hi ,
    The UI element Image enables you to integrate graphics into the Web application in a format that is processed by the Web Server u2013 for example, GIF, JPG, and PNG format. Height and width of the graphic can be specified using the properties height and width. The graphic is displayed without borders.
    saveur image   as mime
    with Mime Objects u cn upload doc , jpeg, or giff files from our local system into the webdypnpro system .
    Right click on ur component->mime object->import
    In the transaction sicf/bc/webdynpro , u cn check your component name there you can view the mime objects created by you .
    also refer the SAP online help :
    http://help.sap.com/saphelp_crm50/helpdata/en/46/bb182fab4811d4968100a0c94260a5/content.htm
    to knw more abt mime repositories.
    http://help.sap.com/saphelp_nw04/helpdata/en/f3/1a61a9dc7f2e4199458e964e76b4ba/content.htm
    regards,
    amit

  • How to display a binary image in a webpage?

    Hi,
    I want to display a binary image in a webage. The image has been stored in a DB as binary format. I am using servlet. How could I retrieve it and display it on a webpage? Could you give me some suggestions?
    I have read some metrial about JAI, the method 'createImageEncoder( )', which seems very helpful! I am on the right way, right? Thanks for your any comments!
    Best Regards,
    Hai

    Here is my idea to display the pic on the webpage:
    The pic is stored in DB as binary, after retrieving it, the binary data will be converted to JPEG pic. Then, the pic will be saved to the local machine automaticly. After that, I get the pic's SRC, and use html display it.
    My code is as follow (not completed), some errors in it.     public static String getPayoffSRC(Services serv, long fileId)
                                                                    throws FileNotFoundException,
                                                                  DBException,
                                                                  DbFileNotFoundException,
                                                              IOException {
            BufferedImage buffy = new BufferedImage(300, 400,
                                                        java.awt.image.BufferedImage.TYPE_INT_RGB);   
            FileOutputStream out = new FileOutputStream(serv.getFileManager().getFileDb(fileId).getFileName());
            JPEGImageEncoder jencoder = JPEGCodec.createJPEGEncoder(out);
            JPEGEncodeParam enParam = jencoder.getDefaultJPEGEncodeParam(buffy);
            enParam.setQuality(1.0F, true);
            jencoder.setJPEGEncodeParam(enParam);
            jencoder.encode(buffy);
            out.close();
            return Pic's SRC,
        }

  • Unable to display a PDF image on the page - Mac 10.6

    Hi,
    Running an iMac with 10.6.8 and Indesign 5.0.4. Just wanting to export a PDF as per usual via File > Export function. However, I keep getting the error message, "Unable to display a PDF image on the page'. No idea what this is and have never seen this error before. The only info on the internet reveals error code 0x2511(9489).
    I've deleted prefs, closed down and re-opened Indesign and even restarted the computer. I've also re-linked the images contained in the document and even created a new document and set it up the same, but still the same problem. Investigating further, other Indesign documents still export properly.
    The only ones that don't export are 2 documents, both giving this same error message. Both documents are ones where a client has sent a PDF, I've imported into two of these into an 2-page A4 Indesign document (each PDF is 48MB each) and then just added a text layer (using Times) which is properly installed on the computer. I basically have to 'update' course dates for the client and add PDF to the website, all very basic.
    I've tried importing a jpeg and other PDFs into the file (replacing the existing ones) and they export fine.
    All my software is legal and I've exported this document before now in exactly the same File > Export without any problems (under 10.5 and 10.6).
    OK... I've just imported the offending PDFs into Acrobat, optimized and shrunk the file size, re-imported back to Indesign and the PDF export works fine. So it seems InDesign / PDF Export doesn't like large imported PDFs? I think they were originally exported from Publisher, so maybe that's the problem or a file conflict somehow.
    Any ideas on the culprit? I've googled it, searched these forums and Apple discussions and haven't found anything. Although I've found a workaround, I do get large files to import and then export. Thanks for any help
    Steve

    It does sound like a problem with the original PDF files the client sent you. You can check how they were made in Acrobat Pro from the Additional MetaData button on the Description tab of the document properties dialog. It will be under Advanced at the bottom of the list when the metadata opens.
    You might be able to salvage them by running the optimzer and not changing the size, or just doing a Save As in Acrobat.

  • How to send image file through mail without   any attachment

    Plz tell  me how to send image file through mail without any attachment  ( i mean not converting  that image into pdf or any format )  i want to send that text or image  through mail .

    Hi Sandeep,
    I think you can setup the type of email in Shared office Settings in transaction S016.
    There is an option called <Preset document classes>
    You choose this pushbutton to branch to the maintenance screen for the document classes that are directly displayed to users in the Business Workplace for selection when they use the Create function. The name under which the documents are displayed can also be maintained.
    http://help.sap.com/saphelp_nw70/helpdata/en/6c/69c30f418d11d1896e0000e8322d00/content.htm
    Haven't tried it though.
    Regards,
    Siddhesh

  • Image path displays instead of image

    Firefox v20.0.1, Win7 32 bit.
    This web page ( http://zone.ni.com/devzone/cda/epd/p/id/5336 ) does not display the "flowchart"image at the bottom of the page immediately following the text "The following is a map of other documents..." On a correctly working page, the image is a flowchart "navigation" image that opens new pages depending on where you click on it. In firefox only a box with an ftp path to the image is displayed in its place. I have seen the problem on other web pages as well.
    Actions taken:
    The pages displays correctly in IE v10. This problem happens on one computer. Different computer, same firefox version displays correctly. Different computer older firefox version (v17?) displays correctly.
    * I have tried disabling all plug-ins and extensions.
    * I have created a new profile. Seems like the first time I did this, the page displayed correctly, but when I refreshed (F5) the image is gone and the ftp path box is displayed. Subsequently created new profiles do not display the page correctly.
    * I have tried resetting Firefox and the page still is not displayed correctly.
    Troubleshooting:
    Ctrl-shif-K, opened the Web Console, cleared the console output, refreshed the page by pressing Ctrl-F5. The following is several lines following the first error on the console:
    [09:12:29.360] Unknown property '-moz-border-radius'. Declaration dropped. @ http://zone.ni.com/widgets/share/addthis/1.0/css/share.css:11
    [09:12:29.360] Expected declaration but found '*'. Skipped to next declaration. @ http://zone.ni.com/widgets/share/addthis/1.0/css/share.css:13
    [09:12:29.406] GET http://ct1.addthis.com/static/r07/core076.js [HTTP/1.1 200 OK 167ms]
    [09:12:29.392] Unknown property 'size'. Declaration dropped. @ http://zone.ni.com/css/global/us/zoneprint.css:15
    [09:12:29.392] Expected declaration but found '@bottom-center'. Skipped to next declaration. @ http://zone.ni.com/css/global/us/zoneprint.css:17
    [09:12:29.497] GET http://zone.ni.com/css/global/us/thecore.css [HTTP/1.1 200 OK 26ms]
    [09:12:29.452] Expected identifier for class selector but found ' '. Ruleset ignored due to bad selector. @ http://zone.ni.com/css/global/us/thecore.css:115
    [09:12:29.453] Error in parsing value for 'filter'. Declaration dropped. @ http://zone.ni.com/css/global/us/thecore.css:259
    [09:12:29.453] Error in parsing value for 'cursor'. Declaration dropped. @ http://zone.ni.com/css/global/us/thecore.css:259
    Any help is greatly appreciated.

    You can remove all data stored in Firefox from a specific domain via "Forget About This Site" in the right-click context menu of an history entry ("History > Show All History" or "View > Sidebar > History") or via the about:permissions page.
    Using "Forget About This Site" will remove all data stored in Firefox from that domain like bookmarks, cookies, passwords, cache, history, and exceptions, so be cautious and if you have a password or other data from that domain that you do not want to lose then make a note of those passwords and bookmarks.
    You can't recover from this 'forget' unless you have a backup of the affected files.
    It doesn't have any lasting effect, so if you revisit such a 'forgotten' website then data from that website will be saved once again.

  • Displaying Byte Array images in coldfusion

    This has been driving me crazy for a couple of days now.I
    have a Java class that returns pictures stored in a DB as a Byte
    Array.
    I am able to display the image but that is all i am able to
    do - I want to display the image name, description etc in a HTML
    before i display the actual image but i can't seem to find a way to
    do that.
    I tried using CFcontent as well and that did not help
    either.This is what i am currently doing - and all that displays on
    the screen is the picture and all content before the picture is
    nowhere to be seen.
    Picture Name: #variables.picName#
    Picture Description:#variables.picDescription#
    <cfscript>
    context = getPageContext();
    response = context.getResponse().getResponse();
    out = response.getOutputStream();
    response.setContentType("image/jpeg");
    response.setContentLength(arrayLen(session.picture));
    out.write(session.picture);
    out.flush();
    out.close();
    </cfscript>
    Any help will be greatly appreciated.

    Mark,
    Note that the portal sets the content type (e.g, text/html) and encoding
    as the portal page starts rendering. In your case, the
    setContentType() would be useless since the servlet container won't let
    you change it. You can either use a popup browser window for the pdf as
    Kunal suggested, or use an iframe if you want to render the pdf inside
    the portlet window.
    Subbu
    Mark Gilleece wrote:
    Hi,
    i need to display a PDF file. The PDF is stored in a byte array. This works fine when i run my code (see below) from the .jpf via the debugger/browser, but when i use it as a portlet, in the portal, it does not work ?
    Any help is much appreciated.
    Thanks
    Mark
    byte[] pdfDocument = docStore.getPDF();
    ServletOutputStream outPdf = response.getOutputStream();
    response.setContentType("application/pdf");
    outPdf.write(pdfDocument);
    outPdf.flush();
    outPdf.close();

  • Problems displaying image in image item

    Hi,
    I have some tiff images on filesystem. which i sucessfully loaded into the database and are stored in blob column, thru SQL*Plus. when i tried to view these images in image item on my form, some of them doesn't show up. i checked the the length of the blob column, to see whether the image is actually loaded into the database and i found that the length is greater zero(infact very high). then i tried to load the image, which doesn't show up, from forms by read_image_file, neither it loads the image nor it displays an error.
    iam using oracle8i database and forms6.0.
    any help is greatly appreciated.
    regards,
    Krupal.

    thanx feng,
    i have tried to load the images thru forms into the database by using read_image_file. but some of the images are not showing up in the image item. i seriously doubt there is something wrong with the image file itself. the image files are in tiff format but saved with an extension .000 file for some reasons. now i doubt that all that images are not tiff files, some of them may be of some other type. bcos when i tried to save one of them as a tiff file it took more space than what it was earlier. after saving as tiff file the form loads the image successfully. is there anyway way that i can load the image in whatever form it is? or is there any way to convert automatically these images to tiff format?

  • Simultaneously trigger and display two camera images with two frame grabbers

    When I try to simultaneously trigger and display two camera images, each with their own frame grabbers, Labview is only able to display one of the images at a time.
    My hardware:
    Two Sony XC-EU50 cameras (not in sync with each other)
    NI-1410
    NI-1405
    My Software:
    Windows XP and Labview 7.1 with IMAQ
    I connect each camera to its own frame grabber.  Both frame grabbers are in the same computer.  I input a trigger into each frame grabber.  Both trigger signals are identical.  Trigger rate is only 0.2 Hz. 
    I want to display and save both images at the same time.  The program i put together only displays one image at a time.  The image that is displayed alternates from one camera to the other.
    Please help with any suggestions.
    Thanks.
    Shahab K.
    Attachments:
    TriggerTwoCameras.vi ‏137 KB

    Hi Shahab.
    Without having triggered two cameras connected to two NI boards with LabVIEW yet: This shouldn't be a limitation in LabVIEW.
    Updating two Image Display Indicators in one run of a while loop definitely works properly, so this cannot be the reason for the problem.
    Your code uses the IMAQ Snap.vi. This VI is not reentrant, so the both instances of this VI on your block diagram cannot execute at the same time.
    I could not find an appropriate example matching your scenario exactly. (Maybe someone else knows better?)
    I recommend to have a look at the examples in the "IMAQ Signal IO.llb" and do some copy and paste to get a VI that satisfies your requirements.
    The "Grab with two boards.VI" illustrates how to acquire images without using the not-reentrant "IMAQ Snap.VI".
    Hope this helps, Guenter
    P.S.: Do you know NI's Vision Forum? http://forums.ni.com/ni/board?board.id=200

  • How to display a dynamic image file from url?

    Hey,I want to display a dynamic image file from url in applet.For example,a jpg file which from one video camera server,store one frame pictur for ever.My java file looks like here:
    //PlayJpg.java:
    import java.awt.*;
    import java.applet.*;
    import java.net.*;
    public class PlayJpg extends Applet implements Runnable {
    public static void main(String args[]) {
    Frame F=new Frame("My Applet/Application Window");
    F.setSize(480, 240);
    PlayJpg A = new PlayJpg();
    F.add(A);
    A.start(); // Web browser calls start() automatically
    // A.init(); - we skip calling it this time
    // because it contains only Applet specific tasks.
    F.setVisible(true);
    Thread count = null;
    String urlStr = null;
    int sleepTime = 0;
    Image image = null;
    // called only for an applet - unless called explicitely by an appliaction
    public void init() {
                   sleepTime = Integer.parseInt(getParameter("refreshTime"));
              urlStr = getParameter("jpgFile");
    // called only for an applet - unless called explicitely by an appliaction
    public void start() {
    count=(new Thread(this));
    count.start();
    // called only for applet when the browser leaves the web page
    public void stop() {
    count=null;
    public void paint(Graphics g) {
    try{
    URL location=new URL(urlStr);
    image = getToolkit().getImage(location);
    }catch (MalformedURLException mue) {
                   showStatus (mue.toString());
              }catch(Exception e){
              System.out.println("Sorry. System Caught Exception in paint().");
              System.out.println("e.getMessage():" + e.getMessage());
              System.out.println("e.toString():" + e.toString());
              System.out.println("e.printStackTrace():" );
              e.printStackTrace();
    if (image!=null) g.drawImage(image,1,1,320,240,this);
    // called each time the display needs to be repainted
    public void run() {
    while (count==Thread.currentThread()) {
    try {
    Thread.currentThread().sleep(sleepTime*1000);
    } catch(Exception e) {}
    repaint(); // forces update of the screen
    // end of PlayJpg.java
    My Html file looks like here:
    <html>
    <applet code="PlayJpg.class" width=320 height=240>
    <param name=jpgFile value="http://Localhost/playjpg/snapshot0.jpg">
    <param name=refreshTime value="1">
    </applet>
    </html>
    I only get the first frame picture for ever by my html.But the jpg file is dynamic.
    Why?
    Can you help me?
    Thanks.
    Joe

    Hi,
    Add this line inside your run() method, right before your call to repaint():
    if (image != null) {image.flush();}Hope this helps,
    Kurt.

  • Help with SWFObject2, problem with display of alternate image

    I'm trying to use SWFObject2 dynamic publishing version to test the visitors browser for flash pluggin and the version.
    I want to only show my flash image if the browser finds the flash plug in and it supports the correct version of flash for my banner, otherwise I want to display a jpeg image in its place.
    When flash support is available in my browser the flash image is displayed, no problems. But when Javascript or flash plugin support is not available and my alternate image jpeg is displayed something wierd happens and i would appreciate any help on this:
    The image is displayed but is pushed to the right of the screen and it seems to have a box behind the image, the edge of the box is only visable and changes colour on rollove like it wants to be clicked, obviously i cannot see what the box is because the image covers it. There is nothing wrong with my image, i put that in place first and tested it loaded ok before i added the SWFObject code and file.
    My code is below:
    <script type="text/javascript" src="Scripts/swfobject.js"></script>
    <script type="text/javascript">
    swfobject.embedSWF("advertise_banner.swf", "altContent", "468", "60", "6.0.0", "expressinstall.swf");
    </script>
    </head>
    <body>
    <div id="wrapAltContent">
    <div id="altContent">
    <a href="advertise_banner.php?ad=y">
    <img src="Images/advertise_banner.jpg" alt="Image linking to information on  advertising a banner ad on Choose Almeria" />
    </a>
    </div>
    </div>
    Looking forward to replies.

    Hi,
    Is this your question still relevant? If yes, did you study already this for example?
    http://code.google.com/p/swfobject/wiki/documentation
    Hans-G.

  • How to display a blob image in RTF template's Header.

    Hi,
    I want to display a blob image (logo company) in my RTF template,
    my problem is how i can display this image in the template's Header.
    I tried this
    <?
    <fo:instream-foreign-object content-type="image/jpeg" >
    <xsl:value-of select=".//LOGO"/>
    </fo:instream-foreign-object>
    ?>
    but was unsuccessful
    Thanks in advance.

    I tried this
    <?
    <fo:instream-foreign-object content-type="image/jpeg" >
    <xsl:value-of select=".//LOGO"/>
    </fo:instream-foreign-object>
    ?>
    but was unsuccessful
    sure
    what is red elements ?
    you template can be looks like
    ..... some data .....
    ( after  all data )
    <?template:footer_logo?>
    <fo:instream-foreign-object content-type="image/jpeg" ><xsl:value-of select=".//LOGO"/></fo:instream-foreign-object> (as field )
    <?end template?>
    <?call-template:footer_logo?> ( in header/footer )
    some remarks https://oralublog.wordpress.com/2014/10/04/bi-publisher-11g-footers-and-headers-in-rtf-template/

Maybe you are looking for