How to show dynamic image

I am returning a binary stream from the server. That stream once gotten into Browser will be opened as an image (tiff format). Can that stream be a source for a dynamic image in Flex?
Thanks

I thought Sun had a jdk for 3d images. Check the products & api's section.
Bill

Similar Messages

  • How to show an image in JSP given the bytes[] of the photo?

    Hi all,
    I stored a user's picture in the db as text. For this I simply converted the JPG to bytes[] and from bytes to string: Base64.encode(bytes)
    Now I wish to do the reverse - to 'output' the image on the screen. So given the bytes[] of the image with
              byte[] bytesDB = Base64.decode(userPhotoStr); //userPhotoStr is something like this: /9j/4AAQSkZJRgA...Question: How can I show the image in the JSP page embedded in the page not as download?
    I'm using struts with JSP pages.
    Thank you!!!!

    Images in HTML are to be displayed using <img> element. All what an <img> element can take as image is an URL pointing to the image in question.
    If the image is dynamic, then you can just let that URL point to some Servlet which takes some request parameter or reads the path info, reads/gets the image as byte array or (much more efficient) as inputstream and writes it to the outputstream of the response.
    You may get some ideas out of this: [http://balusc.blogspot.com/2007/04/imageservlet.html].
    By the way, massaging the byte array from/to a String is a terribly bad idea. Just store bytes as computer readable bytes, not as human readable characters, this makes completely no sense. Characters on its turn have to be converted to bytes again after all, but now you've let the DB do the work. All with all a performance pain. Bytes > Chars > Bytes > Chars > Bytes instead of just Byes > Bytes. In database you normally use BLOB, BINARY or equivalent for this in combination with JDBC's PreparedStatement#setBinaryStream() and ResultSet#getBinaryStream().

  • How do make dynamic images ?

    Hi,
    I want to display dynamic images ? like if i want to design a a meter showing CPU temperature, how can i do that? here is one image example on this website..
    http://images.google.com/imgres?imgurl=http://www.snapstream.com/images/blog/godzilla/overheating_max_cpu_tn.jpg&imgrefurl=http://blogs.snapstream.com/2006/01/18/godzilla-pvr/&h=516&w=683&sz=80&hl=en&start=3&tbnid=huDY6gDdtS_o-M:&tbnh=105&tbnw=139&prev=/images%3Fq%3DCPU%2Btemperature%26gbv%3D2%26svnum%3D10%26hl%3Den%26sa%3DG
    Am I supposed to use Swing? are there any online examples? plz help me..i need to do it ASAP. I posted the same thread in Java programming forum also, but something stupid comes up..some porno foto comes up when i open up the thread..so had to make another thread
    Anyways, I will wait for the reply...thanks in advance

    http://forum.java.sun.com/thread.jspa?threadID=5184236&tstart=0
    Don't double post! Use link above to make replies.

  • Showing dynamic images in BI Publisher PDF report

    I defined a RTF report layout in BI Publisher. Almost done, but one requirement missing...
    I should be able to include a dynamic image (so every "object" on the report has it's own image).
    At first I embedded the base64 converted image in the XML output, but then I am running into the 32K limit. (Small pictures render fine).
    Although Marc Sewtz sort of promised in June 2008 (!) : "One issue, which we'll address in the next version of Application Express, is the 32k limit on report columns." on his blogpost http://marcsewtz.blogspot.com/2008/06/one-question-about-pdf-printing-feature.html , it still not addressed.
    So I tried to embed the image in the report using a trick described on the forum (and BIP documentation), by embedding a dummy picture and set the "Alt-text" of the picture to
    (as an example) : url:{'http://www.oracleimg.com/us/assets/oralogo-small.gif'}.
    The strange thing is, that works fine for HTML Output and Excel output, but not for Word and PDF (why it does work for Excel and not for Word is very mysterious....). And of course I need a PDF output.
    I also tried to embed a FO snippet:
    <fo:block>
    <fo:external-graphic src="url:{'http://www.oracleimg.com/us/assets/oralogo-small.gif'}" />
    </fo:block>
    But that doesn't (seem to) work on any output...
    But
    <fo:block>
    <fo:external-graphic src="D:\Users\rhartman\Documents\PrintScreen Files\Screenshot004.jpg" />
    </fo:block>
    does produce the image on the PDF output.
    So who has an idea how to solve this issue?? You'll be rewarded with a lot of pionts ;-)
    TIA
    Roel

    Hi Carsten
    That was exactly* I was looking for. Maybe I should Google more in German ;-)
    The main problem was that I defined my image outside the first repeating group (that doesn't repeat, it's always just one object) - the first group is followed by 7 more.
    Just like the "Name" (that's positioned outside the group in the document header), I positioned the image above the table representing the group.
    Doing that, the "Name" is filled correctly, the Image only when the Output Format is Excel or HTML - not Word or PDF ... makes no sense but that's tje way it is.
    After moving the image inside the group....it works great!
    (One more thing...the image size is fixed to the image you use as "dummy". Is there any way to make that more flexible, because now some scaling happens...)???
    @Trent: That was the way we initially did it, but when the size of the row exceeds 32K...you know what happens.. And even with a small image the 32K limit is hit easily
    The way I use it now (very similar to Carsten's description) there is no limit....
    Thank you all!
    Roel

  • UIX: how to get dynamic image generation working on ias10G?

    Hi,
    Anybody got UIX Dynamic Image Generation working on ias10G, on unix? My Images do not get generated (the page only shows the plain links)
    My env:
    - ias10G
    - AIX Version 5
    - java version: unknown, do not know what version ias10G is using
    On earlier versions (OC4J 903) we had to make sure an XServer was running and pointed our DISPLAY variable to that server. When the XServer was down, we got a nice error message in the application logs. However on ias10G I cannot figure out where to set this variable and I cannot find any error messages.
    Can anybody please help me out a bit?
    Cheers,
    Martijn

    Hi Andy,
    Thanks for your reply. However, I have not yet been able to get it working.
    I have verified that the java version is indeed (this is what the oc4j logfile shows when I supply the -showversion parameter)
    java version "1.4.1"
    Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.1)
    Classic VM (build 1.4.1, J2RE 1.4.1 IBM AIX build ca1411-20030930 (JIT enabled: jitc))The relevant fragment of the opmn.xml:
              <process-type id="oc4j_cif_mh" module-id="OC4J">
                   <module-data>
                      <category id="start-parameters">
                         <data id="java-options" value="-Djava.security.policy=/oracbd/j2ee/oc4j_cif_mh/config/java2.policy -
    Djava.awt.headless=true -Xmx75m -Xms75m -showversion"/>
                         <data id="oc4j-options" value="-properties"/>
                      </category>
                      <category id="stop-parameters">
                         <data id="java-options" value="-Djava.security.policy=/oracbd/j2ee/oc4j_cif_mh/config/java2.policy -
    Djava.awt.headless=true"/>
                      </category>
                   </module-data>
                   <start timeout="900" retry="2"/>
                   <stop timeout="120"/>
                   <restart timeout="720" retry="2"/>
                   <port id="ajp" range="3301-3400"/>
                   <port id="rmi" range="3201-3300"/>
                   <port id="jms" range="3701-3800"/>
                   <process-set id="default_island" numprocs="1"/>
                </process-type>Finally, your JSP passes the test. I can access it. But still no uix image generation. Are there any logfiles I can check for error messages on the failing image generation? May it be a web cache problem?
    Thanks in advance

  • How to assign dynamic image at runtime or on Button Action to a Image UI

    Hi,
         Please let me know is it possible to assign Dynamic Images to Image UI element in a Visual Composer applications. Using Image Manager it is possible, but in my case Image Source i.e URL comes from ABAP RFC, so is it possible to assign Image at runtime.
        Please do let me know is it possible or not, If yes please do share your opinions.
    I am able to show image using HTML Page by passing URL at runtime to HTML page but here, I cant control the Image width & height.
       I am checking for possibility of using some script to manage width & height.
       Thanks a Ton.
    Regards
    Tushar

    Hi,
         Any inputs for the Query? Atleast, If I get some hint, will do to proceed....
    Regards
    Tushar Shinde

  • How to create dynamic images in java servlets?

    I want to create dynamic images in java servlet. Can servlet create dynamic images that based on the input data files? The results can be displayed in GIF, JPG..format? how can this be done? any example in internet?
    What OS do I need to install and what other requirements needed if i want to build up a servlet server?
    Thanks a lot!

    Also worth having a look at SVG http://www.w3.org/TR/2001/REC-SVG-20010904/, you can get a viewer at http://www.adobe.com/svg/ or you can use Batik http://xml.apache.org/batik/index.html to convert SVG to other formats such as JPEG.
    HH

  • How to show an image(jpg/gif) on a JTabbedPanel

    Hi
    I tried to show an image on a JPanel of a JTabbedPanel.
    I the only way to show it for some time was this:
    in the StateChangedListener I use drawImage when the selected panel is teh one I want to draw the image at.
    Tracing code makes the panel show, burt when I step
    all the way up, the panel will be repainted without my image.
    I use mediatracker to get the image loaded.
    Any Idea
    Hanns

    JTabbedPane has components as its tabs. Using a JPanel is not mandatory. Try using a JLabel instead with an Icon (use ImageIcon) in it.
    JTabbedPane tabbed = new JTabbedPane();
    tabbed.addTab(
        "my image panel",
        new JLabel( new ImageIcon( "images/MyIcon.gif" ) )
    );if your were referring to the image of the little tabs, use this:
    JTabbedPane tabbed = new JTabbedPane();
    tabbed.addTab(
        "my tab",
        new ImageIcon( "images/MyImage.gif" ),
        myPanel // instance of Component, can be a JPanel or any JComponent you want.
    );

  • How to print dynamic images in smartforms?

    Hi Guys,
    We are maintaining images in QM02 similar to the header or item texts.  Those images has to be displayed in smartform.
    Can anyone know how to read any image from transaction and display the same in smartform. Those images will be different for different notification numbers?
    Please let me know if instead of SE78 we can read the image and display the same in smartform?
    Or is there anyway we can achieve the same?
    Thanks,
    <MOVED BY MODERATOR TO THE CORRECT FORUM>
    Edited by: Alvaro Tejada Galindo on Dec 28, 2009 2:30 PM

    Hi Naidu,
    I Have the same problem with you. I Did a program to put all imagens in SE78. After this, you can use a variable to fill out the name.
    Example:
    Name: &name&
    Object:GRAPHICS
    ID:BMAP
    Regards,
    Marcelo

  • How to show an image in apex

    Hello everone!
    Do u know how to get an image (JPG, gif, bmp) which is saved in the BLOB in a table?
    I suppose that exists an apex function which allows to do that.
    Any help would be very appreciated.
    Thank u in advance.
    Regards

    There are two examples in my demo application:
    http://apex.oracle.com/pls/otn/f?p=31517:64
    http://apex.oracle.com/pls/otn/f?p=31517:212
    which will give you an idea how that can be done.
    Denes Kubicek
    http://deneskubicek.blogspot.com/
    http://www.opal-consulting.de/training
    http://apex.oracle.com/pls/otn/f?p=31517:1
    -------------------------------------------------------------------

  • How to show an image in an Enumeration description

    Recently I have tried to show an image instead of a text description, when I use a RadioButtonGroupByKey UI Element.
    What I need is to show some sort of a semaphore which can be set by a processing user. Is it possible to achieve this, or do I have to play around with the layout?
    Thanks in advance

    Wrong forum

  • How to Show custom image  on Google Map Oracle Apex 4.1 page

    Hi.. All,
    Need to show custom Image (From Database Table which is a BLOB Column) as Marker on Google Map with fixed size if we zoom in or zoom out.
    I am using Apex 4.1 and oracle11g r2.
    Thanks in Advance

    Hello,
    This plugin Does Exactly What You Need.
    http://www.apex-plugin.com/oracle-apex-plugins/item-plugin/extension-warp11-gmaps-item_109.html
    Please read the comments on the plugin, in case you come across problem in running the plugin....
    Best Regards,
    Fateh
    If you believe that my answer was correct, then please mark the answer as correct. This is for the best of all

  • How to show thumbnail images in finder?

    Windows can do this, so I'm sure Mac must be able to ....
    When I am viewing a list of jpegs in the finder, how can I see thumbnail versions of the images? Currently, all that's displayed is the jpeg icon.
    Thanks.

    If you have files that don't show a thumbnail icon, it may be that whatever program created the files didn't create a thumbnail image.
    You can add the preview image quite easily using a program like
    QuickImage (http://www.versiontracker.com/dyn/moreinfo/macosx/19253)

  • How to display dynamic images

    Hi,
    I'm an amateur website developer an im trying to create a
    page where by clients can type in their name and a table of images
    show up depending on what their name is. How can i do this using
    Dreamweaver?
    Many Thanks
    Jason.

    No - they have used the least secure type of password entry
    possible -
    The form tag is this -
    <form name="f" onSubmit="submitPW(); return false">
    On submit the form sends its data to the submitPW() function,
    which is also
    defined in plaintext on that same page (in the head) -
    <script language="JavaScript">
    <!--
    function submitPW() {
    password = document.f.pw.value
    if(password != "")
    this.location.href = password + "/index.html"
    // -->
    </script>
    This function just loads a page that is in the folder named
    with the bride's
    surname, so if you entered "Smith", you would get the page at
    this link -
    <a href="Smith/index.html"....
    Could be quite a problem if you had more than one client
    named Smith....
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    ==================
    "koldjg2" <[email protected]> wrote in
    message
    news:g60car$9sm$[email protected]..
    > This is an example of it being implementated:
    >
    http://www.neilwalkerphotography.co.uk/shop/galleries/access.htm.
    Have
    > they done what you suggested?

  • How to show "sold" image ..........

    Hi there
    Hope everybody is well ..... merry x mas and all that
    I having some problems with my site..... I have a simple site that has a simple shopping cart... with no payment gateway.... cash on delivery or bank transfer only.......
    i have product pages all with a buy now button that adds items to a cart and I have all my cart pages working fine
    I trying to figure out how to add a "sold" image to products that are sold out.....
    In my product table in my database I have a field for howmany_pro to store how many of a product I have in stock
    So that when I add a new product.... using my addproduct.php page I can enter the number ... amount....of a product I have......in stock..... into the add product form ..... as a number to be stored in my howmany_pro field in my product table .....
    So.... so far so good......
    So now ... I want that number.... the howmany_pro number to decrease everytime an item is purchased ... so I can make sure that I have the product asked for in stock..... so I don't get two people ordering the same product.....
    So that when the number of stock goes to Zero "0" I can use the show regieon if database value = "0" behaviour
    I have really no idea how to get this to work......
    Any ideas or help would be great .
    Have a great day
    bibibibi

    Hey Charis,
    Give this a try.
    in phpmyadmin make sure the field that holds your inventory count is set to "unique".
    Then this next part I would do after making a backup of one of the trigger class files as it requires editing a certain value.
    On the insert transaction page add the "auto-increment" behaviour which can be found under developer toolbox/forms/advanced/auto increment column. Then choose the field you would like to auto increment (which will be your inventory field). This will now get the largest value from this field and add 1 to the next record inserted. So this is what we want right? almost... we want to subtract 1 instead. This is where the edit for the value in the class trigger file comes in.. I have not tested this so please make a back up of the file before saving out.
    Open "tNG_SetOrderField.class.php" which can be found under "includes/tng/triggers" and go to line 83. you will see code that says
    $sql = 'SELECT MAX(' . KT_escapeFieldName($this->field) . ') + 1 AS kt_sortvalue FROM ' . $this->table;
    There is a "+1"
    I would think change this to a "-1" and test it out.
    hopefully this works :)

Maybe you are looking for

  • Why can't I change the order of songs in my iTunes library?

    If I create a playlist I can change the order of songs but I can't change the order in the Library. Can anyone help me? Thanks

  • Having issues with Pages my old documents will not OPEN

    Hi I am needing MAJOR HELP my douments will not open-when I click on them it says "you need a newer version of PAGES to open document.  I go to the app store there are NO UPDATES I need to do so HOW DO I OPEN SOME OF MY DOUCMENTS I NEED TO GET INTO T

  • Workflow in MDM  with email notification

    Hi All,             I am using the workflow for the first time,and doing a scenario where workflow should be automatic and ,              1. as one user finishes the processing it should go to the next user automaticallyan an so on.               2.

  • Migtation Agent fails

    I'm posting this in large part because a goggle search turned up nothing on this situation. So if nothing else I'm documenting it, but I'm hoping someone has advice. I have an old Quad G5, and a new 6-core Mac Pro. When first setting up the new mac I

  • Finder crashing, can not be re-opened, unable to restart or shut down.

    I've experienced this a few times in the past two days. The Finder crashes and cannot be re-opened. Attempting to re-launch it bring the error: "The application Finder.app can't be opened. -10810" Each time this occurred it was while trying to connec