Display Animated object on browser dynamically

Hello Everyone !
I want to display LEDMeter on browser and its current value will be taken as input on the browser. As per the input taken on the browser the LED's of the LEDMeter must glow. What must be done for this ???
Regards,
Vaibhav Singhania

Hi,
Pass the browser input to a BLS where you can use the Animated Object action blocks to generate the png/jpeg image of the Animated Object (e.g. LED Meter) dynamically and manipulate its properties (color, label, etc). Link the image content property to an output property of the BLS of type string. Then call the BLS by Runner service and use it as the IMG SRC in the web page.
You can have a JS function in the page to refresh the image using a timer automatically or refresh it on button click.
Thanks,
Dipankar

Similar Messages

  • How to display "Image" object in the browser?

    can anyone please tell me how can i display "Image" object in the browser?
    I have an image object that i retrieved from AS400 BLOB object by using toolbox.jar (for as400 access for java including all necessary classes like jdbc driver, security etc.).
    i want to display this object in the browser so i will be able to web-enable my BLOB objects stored on as400.thx...

    In your HTML:
    <img src="ImageServlet">
    In ImageServlet:
    Make calls to DB to get your image as byte array and store it in:
    byte[] buffer = new byte[imageSize];
    ServletOutputStream out = response.getOutputStream();
    for(int i = 0; i < imageSize; i++)
    out.write(buffer, i, 1);
    out.close();

  • Display BLOB objects (doc, pdf, jpg, etc) in Browser

    Hello.
    I need help retrieving BLOBs from my DB and displaying them on a browser using Java (or JSP). The BLOB can contain any types of file form (such as pdf, doc, xls, jpeg,etc).
    null

    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by LP:
    Hello.
    I need help retrieving BLOBs from my DB and displaying them on a browser using Java (or JSP). The BLOB can contain any types of file form (such as pdf, doc, xls, jpeg,etc).
    <HR></BLOCKQUOTE>
    null

  • Problem to display Animated Gif from HTML into JEditorPane

    I have a problem displaying animated gif that comes from URL (HTML) into JEditorPane.
    Let me show you the source I have:
    * @author Dobromir Gospodinov
    * @version 1.0
    * Date: Dec 6, 2002
    * Time: 6:47:53 PM
    package test.advertserver;
    import javax.swing.*;
    import java.awt.*;
    import java.io.IOException;
    public class Test {
         public static void main(String[] args) {
              JFrame frame = new JFrame();
              JEditorPane ed = new JEditorPane();
              try {
                   ed.setPage("http://localhost:8200/servlet?key=value");
              } catch (IOException e) {
                   e.printStackTrace();
              JPanel panel = new JPanel();
              panel.setPreferredSize(new Dimension(500, 500));
              panel.add(ed);
              frame.getContentPane().add(panel);
              frame.pack();
              frame.setVisible(true);
    }Part of the returned from servlet HTML includes an img tag:
    <img src="/images/MyAnimatedGif.gif" alt="animated gif comment" width="480" height="50"  border="0">Let us assume that MyAnimatedGif.gif has 10 frames and gif is looped - when the 10th is dipslayed it has to display the 1st and so on.
    JEditorPane displays frames from 1 to 10 correctly but does not start from the first again. Instead JEditorPane displays a broken image.
    I locate where the problem arise:
    JEditorPane has an HTMLEditorKit that creates javax.swing.text.html.ImageView instance for every IMG tag.
    And here is the problem:
    ImageView has an ImageObserver necessary for the asynchronous image download. ImageObserver has the imageUpdate method. But this imageUpdate method is never called with ALLBITS flag raised up. Instead, after the last frame of MyAnimatedGif.gif is downloaded the imageUpdate method is called with flag ERROR raised up. Obviously this is a bug of Sun's implementation. Finaly the flag ALLBITS has to be received for normal end of image observing. But ALLBITS flag does not come.
    So, can anybody help me how to load an animated gif within JEditorPane completely.
    Thank You in advance,
    Dobromir Gospodinov
    P.S. If somebody of you wants to debbug what happens within ImageView will have to implement it (and related classes too, because of the limited package visability) borrowing the source from Sun's ImageView.

    I'm also having this problem with java 1.4.1 I discovered that some animated gifs work fine, while others stop animating. Running with java 1.3.1 fixed the problem. I'm going to report this as a bug
    Here's my code:
    import java.awt.*;
    import java.io.*;
    import javax.swing.*;
    public class AnimatedGifTester
    extends JFrame
    public static void main(String argv[])
    throws Exception
    new AnimatedGifTester();
    public AnimatedGifTester()
    throws Exception
    String[] images = new String[] {
    "http://www.gif.com/ImageGallery/Animated/Animals/Photographic/dog_running.gif",
    "http://www.gif.com/ImageGallery/Animated/Characters/Cartoon/java.gif",
    "http://www.webdeveloper.com/animations/bnifiles/anielg.gif",
    "http://www.webdeveloper.com/animations/bnifiles/cat2.gif",
    "http://images.animfactory.com/animations/animals/fish/big_fish_swimming_md_wht.gif",
    "http://www.webgenies.co.uk/images/martian.gif",
    "http://www.webdeveloper.com/animations/bnifiles/at_sign_rotating.gif",
    "http://www.webdeveloper.com/animations/bnifiles/arrow_1.gif",
    "http://www.gif.com/ImageGallery/Animated/Characters/Cartoon/javaacro.gif",
    "http://java.sun.com/products/java-media/2D/samples/suite/Image/duke.running.gif",
    "http://www.gif.com/ImageGallery/Animated/SouthPark/Cartoon/stan.gif"
    StringBuffer buffer = new StringBuffer("<html><body>");
    for (int idx = 0; idx < images.length; idx++)
    buffer.append("<img src='" + images[idx] + "'>");
    buffer.append("</body></html>");
    String html = buffer.toString();
    // save a copy of the html to open in a browser so we can see what it's
    // supposed to look like
    BufferedWriter writer = new BufferedWriter(new FileWriter("animatedGifTest.html"));
    writer.write(html);
    writer.close();
    JEditorPane editorPane = new JEditorPane("text/html", html);
    editorPane.setEditable(false);
    getContentPane().add(editorPane);
    setDefaultCloseOperation(EXIT_ON_CLOSE);
    setSize(new Dimension(400, 600));
    show();

  • Why are animated gifs not displaying animations in the preview?

    Why are animated gifs not displaying animations in the preview?
    My coworkers and I are not seeing a animation in the preview pane in Adobe Bridge CS6 even when clicking the play button in the preview window. However, we do see a graphic of the first frame and one person sees 1 frame when clicking play and one other frame and then the animation stops, however, that is not the complete animation.
    I'm using Windows 7 32 bit
    My coworkers are using a mac.
    One coworker has apple OS Mountain Lion with a Intel Quad-Core Xeon – 64 bit system.
    Is this fixable or in the works as a patch? Otherwise we have to open these docs in a browser in order to view them properly.

    I've just come to the realization that some animated gifs do play fine and others do not. A coworker of mine suggests that if it's an animation made via Adobe Photoshop, it'll work in bridge but will not if it's made using something else.

  • How do I display AS3 Object in only one state?

    I created a AS3 object from a SWFLoader class as an animation, which I then place in a Flex stage.  I need to display the object programmatically in only one state but there is no "includeIn()" method to include it in just one state.
    Right now, it is showing up on all of the flex states.  I add this object at different times and positions in the state.  Everything is fine except it displays in all the states.
    How do I display a AS3 object in only one state?
    Thank you.

    When i use visible property as you suggested, it works, but only on one object.  I am generating more than one of these objects, so there could be 3 or 4, etc of these objects displaying concurrently at different x y positions in the state.
    Is there a way to grab all of the objects created by this AS3 class at once and apply the visible property?
    thanx

  • Safari doesn't display an object with MIME type video/mp4

    So, I've got a little hiccup here. I put together a CV in html with samples you can click to bring up. Now, I don't make any claims to professional geekdom, but I try to be fairly html savvy, and since I'm sending this to the college IT guys, I want to do it right. So I'd like this thing to use valid w3c compliant html. Not too tough, fix some missing quotes and learn how to use the object tag instead of embed. Done.
    Well, here's the problem. I loaded it into Safari for testing, and a Quicktime file won't play. Now, it runs fine on Firefox. The obtuse and awkwardly lumped in IE version of the object works fine (tested in IE6, Win2K virtual machine). And the same file ran fine when I had it using an embed tag. Now it just brings up the Quicktime emblem, takes up the specified amount of space, and doesn't do anything.
    What did I do wrong? I've got the latest Quicktime and Safari, and I know it's standards compliant. Do I have to feed it some more specific type for an h.264 encoded mp4?
    Here's the code I used. The embed tag is the one that works, the object tag is the compliant one that doesn't. I'm guessing I'm missing a parameter or something. Any advice?
    <embed scale="1" src="files/Sabres.mp4" pluginspage="http://www.apple.com/quicktime/download/" autoplay="FALSE" volume="100" cache="TRUE" height="496" width="640">
    <object type="video/mp4" data="files/Sabres.mp4" height="496" width="640">
    <param name="controller" value="true">
    <param name="autoplay" value="false">
    Your browser cannot display this content. Click here to download it.
    </object>

    Tom and Kirk, thanks for your time. That would work, but since <embed> is a non-standard tag, I want to avoid it.
    Andy, I actually stopped by that site last night, and I did use it for the object code.
    My problem is that for some reason, what looks like a legitimate implementation of <object> isn't displaying in Safari. I know Firefox is a bit more forgiving of sloppy code, so I don't blame Safari for that one. I know Safari can display the file because it displayed it properly when I called it with embed. I'm just not sure what's wrong with the code that's making Safari not bring up the video. It knows it's Quicktime and loads the file, I know that, because it brings up the emblem and starts hoarding RAM when I bring it up in Safari, but it just holds there. I've tried a couple MIME types, including video/quicktime and video/mp4, both worked in Firefox, and video/h264 just as a shot in the dark, and both Safari and Firefox showed the alternate content.
    By the way, here's the full code I used to display the object, using Castro's cloaking technique for IE compatibility. I omitted it earlier because when I isolated the non-IE section alone in the body of the document it behaved the same as it did with the cloaking (working in FF, broken in Safari).
    <!--[if IE]>
    <object classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B" codebase="http://www.apple.com/qtactivex/qtplugin.cab" height="496" width="640">
    <param name="src" value="files/Sabres.mp4" >
    <param name="controller" value="true">
    <param name="autoplay" value="false">
    </object>
    <![endif]-->
    <!--[if !IE]> <!-->
    <object type="video/mp4" data="files/Sabres.mp4" height="496" width="640">
    <param name="controller" value="true">
    <param name="autoplay" value="false">
    Your browser cannot display this content. Click here to download it.
    </object>
    <!--<![endif]-->
    Message was edited by: The Spine

  • How to chage the display name in SC browser for the custome fields?

    Hi,
    I created 2 custom fields for Shopping cart in SRM. How to chage the display name in SC browser for this custome fields?
    Thanks
    Kevin

    Hi Kevin,
    when you have defined your customer fields, you have created new fields in the CUF structures. The labels displayed on the SC screen come from the data element you have assigned to those cust fields in the include structure.
    If you have used a std data element, then you can change its translation (attention, this will impact all structures, tables... abap objects using this data element).
    If you have created a Z data element, then adapt its description accordingly.
    Rgds
    Christophe
    PS: please reward points for helpfull answers

  • The Best Tool For Multiple Animated Objects

    Hi,
    I am expirimenting with Flash Web Sites, and I would like suggestions as to a starting point for my project, and I am assuming a Flash website is where I would start.
    Basically, If I were to open up a web page, I would like to see multiple animated objects.  For example, if I were to simulate an Emergency Room, I would have an EKG displaying a heart rate, then perhaps see a breathing maching apparatus moving up and down, a Drip bag (sorry, don't know the real term), dripping into a patient's tube.  And of course, if I were to roll over an object it would animate, and if clicked on more animation or on to another page.
    I tried creating the animated objects in Fireworks, and I thought I could combine various Firworks files into one, but it didn't work (too many frames), either becasue I lack the knowlege of how to do this or simply it cannot be done that way in Fireworks.  I had a background with one animated flashing object (that was easy), but combining multiple independent objects, I could not figure it out.
    Someone suggested that I would have to use Action Scripts, which made me realize, I don't know the best way to accomplish my example above, and although I know I may be over my head, I would just like to get direction as to where I should begin.
    Should it all be in Flash in the first place?  To continue on with the example above, after a user clicks on the rollover image, a girney comes rolling in and we are giving choices on a monitor with what our next actions should be, which would take us into another page.  (this is just to give you perpective of what I am trying to accomplish).
    Should I create independent animated objects (files) in Fireworks, then somehow import them into their specified location in Flash.
    I hope this makes sense and I am hoping someone is kind enough to provide a starting point.
    Best.

    Flash is the best tool for what you want and most of it can be done once you get a handle on the basics.
    For you interactivity (rollOvers / triggering more animations with mouse) you will need some actionscript but don't get hung up on that now.
    There is a world of info out there. Google "animation basics in flash) you may have to weed through some garbage but you will find what you are looking for somewhere.

  • Displaying a Blob with a Dynamic Page

    A dynamic page was created where one of the columns on the database table is a BLOB. The following error is received when trying to query the column from the dynamic page:
    : Unable to execute query (WWV-10201)
    The preference path does not exist:
    ORACLE.WEBVIEW.PARAMETERS.1093150906 (WWC-51000
    FYI - when running a similar query from a form component, the blob displays fine. This problem occurs only with dynamic page components.

    Hi,
    What version of Portal are you using ??
    Have you tried using reports like QBE,Wizard or SQL rfor displaying Intermedia Objects.
    Thanks,
    Anu

  • Problem on animated objects (sva)

    I created a transaction that generates simplemeter object as gif, it uses L1Speed current value to change needle position.
    But always needle at same position.
    Is there a problem about animated objects for MII 12.15?
    Is there a sample doing animated objects for MII 12.1x?
    Thanks.

    Hi ,
    Plz have a tracer before you map the CylTemp value to the animation object and check if you are getting different values when ever u r executing the transaction.
    if you are getting different values the check if you have mapped the CylTemp value correctly to the Value field of the animation object.
    the third area where u can check is, how are u testing the output, if you are pulling that image to a HTML page then kindly check for the cache problem because the browser has the tendency to keep the cache of a file which is frequently called which may keep on showing you the same image even it is updated in the back end.
    plz let me know how are u storing the images and seeing the output.
    Regards,
    Shyam

  • How to display Excel output in browser instead of client desktop

    Hi,
    Similar to PDF and Text output, Is it possible to display Excel Output In browser itself.
    Whenever we try to view the report where the output type is excel, the output opens in Excel Desktop version.
    We have a requirement where we need the output to be displayed in browser itself.
    I have tried modyfing the Viewer profiles but was not able to get the desired result. We are currently working on E-Business Suite 11g.
    Regards,
    Sandeep

    for ideas look at
    Export to Excel of a Financial Reporting (FR) Report Opens the Excel File in the Workspace Browser Window (Doc ID 1300573.1)
    and
    How to configure Internet Explorer to open Office documents in the appropriate Office program instead of in Internet Ex…
    so in your case it is vice-versa

  • Problem at displaying animated gif images !!!!!!!!!!!!

    hello everyone......i am trying to display an animated gif image..............so till far i have no issues on this....
    but i face problem when :
    i have created a class called SimpleGame which extends JPanel....
    public class SimpleGame extends JPanel
    //code
    public void paintComponent(Graphics g)
    //code to draw image
    }now i have written another class with main method
    public class MyGame extends SimpleGame
    public MyGame()
            JFrame frame=new JFrame();
            frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            frame.setSize(800, 600);
            frame.setUndecorated(true);
            frame.setLocationRelativeTo(null);
            frame.getContentPane().add(this);
            frame.setVisible(true);
            this.repaint();
    }so image gets displayed but only one frame of animated image......image that is displayed is static.....since it is a animated gif,,,,,so some how animation is not rendered......only one frame is displayed......
    why is it happening ??
    if i try to display animated image from a single class i mean my paintComponent method and main method is at same class then i do not face problem.....
    but if my paint method is in another class and i am using that method from another class then animation does not get rendered.........
    any help !!!!! please...........

    class SimpleGame extends JPanel
    Image img=new ImageIcon("y.gif");
    public void paintComponent(Graphics g)
    g.drawImage(img,150,150,this);
    }main class//
    class MyGame extends SimpleGame
    public MyGame()
            JFrame frame=new JFrame();
            frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            frame.setSize(800, 600);
            frame.setUndecorated(true);
            frame.setLocationRelativeTo(null);
            frame.getContentPane().add(this);
            frame.setVisible(true);
            this.repaint();
    public static void main(String[] args)
    new MyGame();
    }my image gets displayed.......but only single frame of a animated image....animation is not happening..........

  • Is it possible to display the sequence context browser using the TS API ?

    Hi,
    I would like to display a sequence context browser in a custom step developped in CVI to allow operator to choose the local or global who receive a data.
    I tried tu use the Browse Expression Dialog but i didn't find the way to limit this UI as a context browser.
    Thanks for your help

    Hi,
    Using the Engine.DisplayBrowserExprDialogEx(...) method you are also able to declare variable within the dialog.
    Regards
    Ray Farmer
    Regards
    Ray Farmer

  • Portlet Item Attr: "Link That Displays Item in New Browser Window"

    I have been searching the forums for a similar experience, but haven't found anything quite like this:
    I have a couple of portlets. One is a Discoverer Portlet, the other is something more basic: The "Developer News" portlet from the 9iAS Community portlet provider.
    After defining the portlets and looking at them, I edit the page and click the Edit button (little pencil) to edit the attributes.
    There are radio buttons for Display Options.
    One option is: "Link that Displays Item in New Browser Window."
    When I select this, OK, and then go back to the page, **the portlet doesn't show at all any more! There is no link, no nothing. Note that I have defined a Display Name, which should be the text for the link.
    It would seem that this feature flat out doesn't work.
    This technique for a popup works fine for an "Item" defined in an item region.
    Anyone?

    Yes -- I did do that after reading an article on metalink about such issues.
    This actually changes the problem.
    When I add the "Display name and image link" attribute to the region, I now do get a link.
    However, clicking it brings up an undefined Discoverer portlet.
    It works great for non-Disco portlets. For instance, I was able to pop up the "Developer News" portlet from the Oracle 9iAS Community portlet provider.
    I think the problem is that the link that Disco produces does not provide enough information to bring up the particular portlet. For instance, the URL does not have the workbook name, the worksheet name, the parameter values, etc.
    If anyone uses Disco w/ the portal, I would be curious to hear if anyone can reproduce this apparent bug / limitation.

Maybe you are looking for

  • ECC5 Installation option  Distributed Installation

    Hi I am installing ECC5 on Windows 2003 with oracle 10g,During installation I have selected distributed installation (ABAP+JAVA). Please could anyone tell me whether we can install abap+java on single system by selecting distributed installation opti

  • Payment method T bank transfer

    Hi SAP Gurus, I have configured the Automatic payment programme with payment method T (bank transfer).When i am running the F110, system will posting all transaction correct.So where can I configure the SAP form for submitting to the bank.In SAP we d

  • Excise JV-TR6 Challan

    Hi,    When user is creating Excise JV ssystem is showing following error mesaage in status bar. Balancing field 'profit center' in line item 001 not filled. plz suggest. Edited by: sayee on Dec 21, 2007 9:46 AM

  • HELP ME PLEASE IM IN NEED OF PROFFESIONAL HELP

    Hi, Please could someone tell me HOW i can upload my 3 Audiobooks to the Audiobook file on my nano? And please could u tell me how to access them? Thank You, Shreyas,Skandan

  • Windows 7 syncing

    I have windows 7 everything seems to work fine. however when I plug in my ipod touch or my iphone it does the backup fine on the top ... however when it get to syncing it is just stuck there and does get out of the sync. it is not frozen as I can sto