Bean to load image item from URL?

Can someone point me to a bean that will allow the loading of an image item from a URL?
Cheers,
Gary

Here is the material:
<p>
the screen shot is here : http://sheikyerbouti.developpez.com/forms-pjc-bean/handleimage/getimage.png</p>
<p>Get the jar file and the form module sample (9.0.2)</p>
Notice that you could also download the image with the File_Transfert.URL_To_Client() Webutil function then load it with the Client_Read_Image_File() built-in.
Francois

Similar Messages

  • 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.

  • Problem Populating Image Item From Database

    Hi All,
    I am using Oracle 9i & Forms 6i on Windows platform & working in client/server model. I created a form in which, I am reading an image file from the file system & then saving it into the database. In the Databse, i created the column as BLOB. But, when I query, this does not retrive the saved image in Image Item. But image is actually saved. When I tried, changing the database column to LONG RAW, it is working. I mean its reading the image in the image item from the database.
    Can anyone pls tell me, is there any problem like this, as we can retrive from LONG RAW but not from BLOB, or I am missin something here.
    Regards

    Hi,
    I use Forms 6i to save and retrieve image in BLOB column without problems.
    Some weeks ago, my column was long raw and I update it without problems. Nothing to do in Forms and juste modifiy query and recompile in Reports.

  • Loading XML files from URL

    Hi.
    My PL/SQL procedure loading xml files from oracle logical directory ("c:\temp") and inserting values into columns of the table. I use XSU with procedure:
    create or replace procedure insProc(xmlDoc IN CLOB, tableName IN VARCHAR2) is
    insCtx DBMS_XMLSave.ctxType;
    rows number;
    begin
    insCtx := DBMS_XMLSave.newContext(tableName); -- get the context handle
    rows := DBMS_XMLSave.insertXML(insCtx,xmlDoc); -- this inserts the document
    DBMS_XMLSave.closeContext(insCtx); -- this closes the handle
    end;
    For translate xml document to CLOB, I use :
    CREATE OR REPLACE function getdocument(
    p_directory in varchar2,
    p_filename in varchar2)
    return clob
    is
    l_bfile bfile;
    l_clob clob;
    begin
    l_bfile := bfilename(p_directory, p_filename);
    dbms_lob.open(l_bfile);
    dbms_lob.createtemporary(l_clob, true, dbms_lob.session);
    dbms_lob.loadfromfile(l_clob, l_bfile, dbms_lob.getlength(l_bfile));
    dbms_lob.close(l_bfile);
    return l_clob;
    end getdocument;
    I didn't have problem with this procedures. But now i want load my xml files from another computer (i want use URL, not oracle logical directory).
    How can i do it, using standart PL/SQL methods?

    Since you are parsing the XML what prevents you from delaying your requests for the image URL's? You can just as well add the image URL's to some kind of collection and load them after you have processed all the text content.

  • Dynamic Image (.gif) from URL into adobe Form by SFP

    Hi all
    I post the comment of Shamila because I have the same problem
    I need to place an image in the Adobe form based on the url.
    I have written the following formcalc script in the image field form ready action
    ImageField1.value.image.href = "http://www.adobe.com/imageshome/pdfgift_home.gif"
    But when i view the form , the image field is empty, and when i click on the blank space of the image field, a popup appears to select the image............
    How can i show the image from url in the form..........
    Regards,

    Hello,
    have you checked these basics documents?
    When you need to send a picture into the offline form: another image question - using Regular ABAP not web dynpro and Display a logo dynamically in adobe form
    Where to start with scripting: http://www.adobe.com/devnet/livecycle/articles/lc_designer_scripting_basics/lc_designer_scripting_basics.pdf
    http://help.adobe.com/en_US/livecycle/es/FormCalc.pdf
    Also try: Re: Dynamic R/3 Image URL in Adoeb Form
    regards, Otto

  • Show image item from table into form's item.

    Hi Friends,
    My problem is:
    I have 1 table with 2 cols:
    eid number
    e_pict blob.
    I created a form (block based on this table). I'm able to show any valid image file stored in disk into e_pict (declared as image item) using the built_in READ_IMAGE_FILE. and also able to save it in the table test. But if I want to do the reverse process I mean retrieve the image from table's field to the image item of form, it creates problem. I even cannot compile the post_text_item trigger of eid:
    select e_pict into :test.e_pict
    from test
    where rtrim(eid)=rtrim(:eid);
    It is giving error:
    bad bind variable 'test.e_pict'
    Pls help me.
    Regards,
    Pragati.

    If I declare the image field as long raw instead of blob then also the same problem.
    I can save the image from file to database through a form but cannot retrieve an image from database to form.
    Pls help.
    Thanks in advance,
    Pragati.

  • Loading Images Dynamically from MySql

    Hello
    I need to load images in my swf file dynamically from MySql
    using PHP. Brief is I have one Swf file and and i want to animate
    image in it but image should be come from dynamic path.. anybody
    can tell me how to do this? if you want more brief then i can
    provide it but it is urgent...
    Thanks in advance

    I'm afriad I don't have a solution to your problem but I was
    curious as to why you would load it from a database vs a directory.
    I know you can have users upload to a directory and a database but
    I don't understand the benifit since I think you'd be adding load
    on the database server. Is it a server side image manipulation
    thing?

  • I have problem loading all items from XML with for each

    Hi all,
    I'm low level as3 programmer and I need help whit this code:
    I have gallery XML file:
    <gallery>
        <item>
            <id>1</id>
            <strana>0</strana>
            <naslov>Lokacije</naslov>
            <aktuelno>1</aktuelno>
            <slika>1.jpg</slika>
        </item>
        <item>
            <id>2</id>
            <strana>2</strana>
            <naslov>Coaching</naslov>
            <aktuelno>1</aktuelno>
            <slika>2.jpg</slika>
        </item>
        <item>
            <id>3</id>
            <strana>0</strana>
            <naslov><![CDATA[O.Å . Bratstvo - panel]]></naslov>
            <aktuelno>0</aktuelno>
            <slika>3.jpg</slika>
        </item>  
    </gallery>
    And:
    var loader: URLLoader = new URLLoader();
         loader.load(new URLRequest("gallery.xml");
    var xml = new XML(evt.target.data);
        for each(var item in xml..item) {
            centralniText.htmlText = item.slika;
    only shows  last item from XML file:
    3.jpg
    I want all. Please help.

    can adding count item in XML help somehow?
    <gallery>
        <item>
            <id>1</id>
            <strana>0</strana>
            <naslov>Lokacije</naslov>
            <aktuelno>1</aktuelno>
            <slika>1.jpg</slika>
        </item>
        <item>
            <id>2</id>
            <strana>2</strana>
            <naslov>Coaching</naslov>
            <aktuelno>1</aktuelno>
            <slika>2.jpg</slika>
        </item>
        <item>
            <id>3</id>
            <strana>0</strana>
            <naslov><![CDATA[O.Å . Bratstvo - panel]]></naslov>
            <aktuelno>0</aktuelno>
            <slika>3.jpg</slika>
        </item>   
        <last>3</last>
    </gallery>

  • Load combobox items from file

    Hi,
    I dont know do I use correct components here, but I have tried to load some dropdown selector's items from file. I have file, which items changed all the time, so I have to load those to user's dropdown selectro every time when program starts. Eny ideas?
    A.A
    Solved!
    Go to Solution.

    Use a property node Strings
    Strings [] Property
    Short Name: Strings[]
    Requires: Base Package
    Class: ComboBox Properties
    Array of the strings from which you can select in the combo box control. Use the Strings And Values [] property to specify custom values for each string.
    If you use this property with a combo box control that has custom values, the number of values for the combo box control determines the number of strings you can set using this property. For example, if the combo box control has the values Free, Discount, and Full, you can set only three strings using this property.
    If the combo box control has more values than the number of strings you wire to this property, LabVIEW creates strings for any values that do not have corresponding strings. For example, if the combo box control has the values Free, Discount, and Full and you wire the strings Voucher and Coupon to this property, LabVIEW sets the last string to <Full>.
    This property is similar to the Edit Items item on the shortcut menu of a combo box control and to the Labels option on the Edit Items page of the Combo Box Properties dialog box.
    Omar

  • Show image into an item from URL

    Hi all
    i have to show a gif image into an item, but the source of the file is in a url
    Http://xxx.xxx.xxx.xxx/../../../image.gif
    i tried with web.show_document and with read_image_file, but there's something wrong... (forms 6)
    could you please suggest me the right way ?
    thank you !

    show_document is like opening a new browser window so that doesn't work. Read_image_file is like the name suggests for reading a file, not url so that doesn't' work either.
    You will need to move you files to a drive that the forms server can reach, or use a Java Bean that can load an image from an URL and perhaps even display it. You might find an existing Bean (I don't know of one) or you may have to write one yourself.

  • How to delete a jar file after loading image files from it

    Hi,
    How can I delete a jar file after some image files have been loaded? For example, say, I have "a.jar" which contains an image "a.gif" in the root directory of the c drive. I would like to get the image size and then delete the jar file. Here is the code snippet:
        URL url = new URL("jar:file:/C:\\a.jar!/a.gif");
        Icon icon = new ImageIcon(url);
        System.out.println("icon size ? " + icon.getIconHeight());
        File file = new File("c:\\a.jar");
        while(file.exists())
            file.delete();
            try
                Thread.sleep(100);
            catch (InterruptedException ignored)
        System.out.println("file deleted.");I get the image size correctly but just can not delete the jar file. Apparently the file handle is not released, but how to close it? Any hint will be appreciated.
    Justin Jan

    I am sure the URLConnection.defaultUseCaches is set before it is connected otherwise I should catch an IllegalStateException on conn.setUseCaches(false).
            try
                URL url = new URL("jar:file:/C:\\a.jar!/a.gif");           
             URLConnection conn = url.openConnection();
               conn.setDefaultUseCaches(false);
             conn.setUseCaches(false);
                Icon icon = new ImageIcon(url);
                System.out.println("icon size ? " + icon.getIconHeight());
                url.openConnection().getInputStream().close();
                System.gc();
             System.runFinalization();
                File file = new File("c:\\a.jar");
                while (file.exists())
                    file.delete();
                    try
                        Thread.sleep(10);
                    catch (InterruptedException ignored)
                System.out.println("file deleted.");
            catch (Throwable t)
                t.printStackTrace();

  • Apple TV does not load rented items from iTunes in less than three (3) hours depsite YouTube, Netflix and network being fine.  How can I get Apple to actually provide the iTunes service I am paying for?

    I'm just tired of waiting on this inept device and it's underserved iTunes counterpart being unable to deliver enough bandwidth to load a show within a reasonable amount of time.  I'm a big Apple fan and an equally big critic.  This whole rig is a big FAIL so far, Apple.  There is nothing ON DEMAND about the iTunes Store at this point.  Netflix and YouTube work better on Apple TV than their own iTunes Store!  And, this has been going on for a few years now, unremedied, and is only getting worse with more people buying these devices!  I do not reccommend this device to people like I used to.
    The good news is, that iTunes will give refunds about 85% of the time if I explain my problem the way I have here.  SO, ATTENTION: EVERYONE WITH AN APPLE TV: If you have this same issue with iTunes Store not properly serving your paid content, do not hesitate to ask for your money back.  It's the least they can do for the amount of life wasted waiting for a show to load.  Not to mention, all the disappointments with the kids at bedtime and when my wife and I want to just relax and turn something on.
    Bottom Line: ITUNES IS UNDER-SERVED!!!
    OR
    There is a massive conspiracy by cable and DSL ISPs against Apple taking away TV viewers.  Is it possible the ISPs are somehow limiting or buffering the data packets coming through the port(s) employed by iTunes Store?  Like I say, with me and many others on this forum, the problem lies solely with iTunes Store.  Youtube, Netflix, Podcasts and everything else generally serve up just fine.  The iTunes Store, however, is a consistent failure.  Something that seems unusual for Apple not to address, being so customer-centric and all.
    Please share any links or insights you have here so the faithful might get to the bottom of this incredibly annoying problem. I WANT MY ATV!

    There is a massive conspiracy by cable and DSL ISPs against Apple taking away TV viewers.
    Most networks are overloaded and operating at full capacity.  However, a solution is coming.
    Technology experts are working on a movie storage system where YOU have physical possession of the movie.
    This system stores the movie digitally on an optical disk system that will not be dependent upon a congested, complicated, and fragile network.
    Because all of the data is stored only a few feet from your television, all the bottlenecks are removed.  Performance and reliability are virtually flawless.
    Further, the system will not utilize any form of security codes, authentications, or passwords. Once the optical disc is purchased it can be moved around freely at will, and can even be lent or given to friends and neighbors with zero hassles.

  • Problem loading image icons from jar

    I have created an Applet , that works as an application too.I created the certificate the jar, with the images and the classes, i signed it... The html page is working fine as the exe i have made from the jar, but ONLY if the folder with the images is in the same directory!!!I have searched in java and other forums for an answer that fits but..
    Here is a sample of my code.
    images[0]=new ImageIcon((Applet15.class.getResource("/palaio/Image8.jpg")));
    images[1]=new ImageIcon((Applet15.class.getResource("/palaio/Image22.jpg")));
    images[2]=new ImageIcon((Applet15.class.getResource("/palaio/Image30.jpg")));
    images[3]=new ImageIcon((Applet15.class.getResource("/palaio/Image36.jpg")));
    images[4]=new ImageIcon((Applet15.class.getResource("/palaio/Image42.jpg")));
    images[5]=new ImageIcon((Applet15.class.getResource("/palaio/Image63.jpg")));
    public Applet15() {
          private void jbInit() throws Exception {
      public String getAppletInfo() {
        return "Applet Information";
      public String[][] getParameterInfo() {
        return null;
      public static void main(String[] args) {
        Applet15 applet = new Applet15();
        applet.isStandalone = true;
        Frame frame;
        frame = new Frame();
        frame.setTitle("Applet Frame");
        frame.add(applet, BorderLayout.CENTER);
        applet.init();
        applet.start();
        frame.setSize(450,400);
        Dimension d = Toolkit.getDefaultToolkit().getScreenSize();
        frame.setLocation((d.width - frame.getSize().width) / 2, (d.height - frame.getSize().height) / 2);
        frame.setVisible(true);Thank you!!

    This tutorial should resolve the problem
    http://java.sun.com/docs/books/tutorial/applet/appletsonly/data.html

  • Loading an external swf that loads an object from url

    i am trying to load an external swf that in turn automatically loads an object. i want the external swf to only be loaded once the object is loaded in it. right now it loads the external swf first and then the external swf loads the object specified at a url...

    thanks kglad. i think i need to try and load the external swf, wait for it to load its object, and then display it... will look into it and get back...

  • Can I extract images/items from a pdf?

    I lost my hard drive! (D'oh!)
    But I do have some hi-res pdf files made from the original files (InDesign).
    Is it possible to extract discrete components from pdfs? Such as images, text blocks, etc?
    It seems like it should be possible, but I'm wondering if one must be a PostScript coder or somesuch.
    Cheers!
    ~Ben

    Excellent! Thank you both, George and Steve.
    I have CS3, so v8.3.1 or Acrobat. So that process is Advanced > Document Processing > Export all images.
    Oddly, it tells me that it can't extract/export vector images. I suppose that means AS SUCH, since it managed to export JPEG versions of images that I know were .eps format. Strange, but true!
    Thanks again!
    Ben

Maybe you are looking for