Load Images in Oracle Applications

Hi friends,
I'm trying to load/store a .jpg image.
In client/server mode, there's no problem (forms 6i) using hits code in a button (i.e.):
declare
     dirname varchar2(255);
     v_filename varchar2(255);
begin
     tool_env.getvar('IMAGE', dirname);
     dirname := 'C:\';
     v_filename := get_file_name(dirname,NULL,
     'Bitmap Files (*.bmp)|*.bmp|' ||
     'JPEG Files (*.jpg)|*.jpg|' ||
     'TIFF Files (*.tif)|*.tif|' ||
     'CompuServe Files (*.gif)|*.gif|' ||
     'PC Paintbrush Files (*.pcx)|*.pcx|' );
     if v_filename is not null then
     read_image_file(v_filename,'ANY','BLOCK.IMAGE_ITEM');
     end if;
end;
the image appears and is stored in database with good quality .
When we translate this to oracle applications world it changes: We can use this code (I'm looking for something similar,please post it here if you have) and.. I've seen and I've read that there exists a loss of quality for all the images we try to load/store through Forms methods. I've read in different metalink note that it's a bug and that it may be solve using Java Beans or something similar.. but.. I don't want to go so far ... do you know any way to avoid that loss of quality..? How do you load and store images from forms 6i in your application environment? (I'm trying to solve tihis problem for PERWSIMG.fmb , at Human Resources...
Thanks for your ideas &/or code.
Jose L.

Hi ,
We are also facing same issue while using inline view IKM.
BeanShell script error: Sourced file: inline evaluation of: ``out.print("\"\"\"\n") ; import oracle.di.biapps.*;out.print("\n\n") ; String t . . . '' : Attempt to resolve method: parseFromClause() on undefined variable or class name: InlineView : at Line: 5 : in file: inline evaluation of: ``out.print("\"\"\"\n") ; import oracle.di.biapps.*;out.print("\n\n") ; String t . . . '' : InlineView .parseFromClause ( snpRef .getFrom ( ) )
BSF info: Build Java String at line: 0 column: columnNo
out.print("\"\"\"\n") ;

Similar Messages

  • Require Help on Load Testing for Oracle Applications

    Hi,
    I have to do a Load Testing on Oracle Application 11i. I am not able to understand from where do I need to start.
    Could any one please help on this ?
    Ramu.

    The tool which I am using for this is "Oracle Application Testing Suite".
    Any help welcome !
    Ramu

  • Loading images in an application

    hi guys hope you can help me, im currently indulge in application programming and i need to load images in an application, i use a JTabbedPane as my main component so i use 4 panels to differentiate the different sections of my the JTabbedPane my problem is i need to display different images on each panels(diff images on 4 diff panels of the JTabbedPane....how will i do this? ope you can give me an idea.....thank you very much and God Bless us All!

    You can load different images by using
    Image testImage = new ImageIcon("c:\testimage.gif").getImage();this.
    Hope this serves your needs.

  • Data Loader program of Oracle applications 11.5.10

    Hi,
    Recently, my client has gone migration. Thing is On unix platform of oracle applications, there is a loader program which is able to load data in to staging and interface tables but since they migrated to Linux platform it is not able to load data in to staging and interface tables. we couldn't find where the issue is. Please help me regarding this.
    The loader program is a type of Host file.
    Version : EBS 11.5.10.2

    Hi,
    Maybe its better to ask this question at Forum Home » Oracle CRM On Demand forum site
    Regard
    Helioıs

  • Load Testing an Oracle Application

    Hi , Kindly advice what are the best performance testing tools for an application housed completely in Oracle database and rendered by OWA technology . Also the application is so built that the displayed attributes are picked from the tables . Each page is dynamically built as per the conditions being fulfilled by user action on earlier attributes .
    Thanks a lot .
    Regards,
    Ashish Roy.

    Hi,
    Great, any new methods added to OpenScript and also any existing methods changed to deprecated.
    Regards,
    Deepu M

  • Calling IBM content Manager  images from Oracle APplications

    Gurus,
    The requirement is like this
    the Images are stored in IBM content Mgr.Client want to show the image for a particular employee from the content mgmt.
    If anybody have pointers please share with me
    [email protected]
    Regards,
    -Chandra Sekhar Byna

    Hi!
    So if you use forms 10 you can use the read_image_file build-in like:
    read_image_file ( 'image_url', 'url', 'block.image_item' );Regards

  • Batch load images (tiff) into table with a BLOB column

    Hi,
    Does anyone know any third-party tool/software to bulk/batch load images into Oracle table? There is an ETL software to regularly pull the images (tiff) from a ftp server to a directory in the database server. There is no way I can hardcode the image filenames into the control file and use SQL*Loader to load the files. Is there any tool/software that can just grab whatever files in the directory and load them into Oracle. Then, I can write a program to extract the filename from the file already loaded into the table and update the filename column.
    Thanks.
    Andy

    sound like simple scripting to me...
    -- SQL loader example
    http://www.orafaq.com/wiki/SQL%2ALoader_FAQ#How_does_one_use_SQL.2ALoader_to_load_images.2C_sound_clips_and_documents.3F
    -- dynamically build control file
    devuser1:/tmp>>touch image1.gif
    devuser1:/tmp>>touch image2.jpg
    devuser1:/tmp>>touch image3.jpg
    devuser1:/tmp>>ls -l image*
    -rw-rw-r--   1 devuser1   mygrp           0 Jul 10 11:19 image1.gif
    -rw-rw-r--   1 devuser1   mygrp           0 Jul 10 11:19 image2.jpg
    -rw-rw-r--   1 devuser1   mygrp           0 Jul 10 11:19 image3.jpg
    devuser1:/tmp>>ls -l image* | awk '{ print NR "," $9}'
    1,image1.gif
    2,image2.jpg
    3,image3.jpg
    devuser1:/tmp>>echo "LOAD DATA" > t.ctl
    devuser1:/tmp>>echo "INFILE *" >> t.ctl
    devuser1:/tmp>>echo "..." >> t.ctl
    devuser1:/tmp>>echo "BEGINDATA" >> t.ctl
    devuser1:/tmp>>ls -l image* | awk '{ print NR "," $9}' >> t.ctl
    devuser1:/tmp>>cat t.ctl
    LOAD DATA
    INFILE *
    BEGINDATA
    1,image1.gif
    2,image2.jpg
    3,image3.jpgEdited by: maceyah on Jul 10, 2009 12:42 PM

  • Loading image from jars only once in oracle forms 10g

    Hi,
    I have an oracle forms 10g application which loads image from a jar. Every time i click on a button "A" that loads the image "image" on another button "B" in the same screen, a message is displayed in the java console "Loaded image: jar:https://+IP+/forms/java/+myjar+.jar!/image.gif". So after 10 clicks, i get the same message displayed 10 times. In the form, i've called:
    SET_CUSTOM_PROPERTY(p_object_name, 1, 'IMAGE_NAME_ON', '/'||p_image_name);My question is the following:
    - is there a way to load this image once and use it later without having to load it every time i clik on "A"? if yes, how?
    P.S.: if this thread shouldn't be posted in this forum, please redirect me to the right one.
    Thanks in advance

    Ah okay.
    I'm using the rolloverbutton.jar (RollOver Button PJC) [RolloverButton.java -> authors: Steve Button, Duncan Mills].
    Here is the part concerning the IMAGE_NAME_ON function:
    // make sure we are in rollover mode
    enableRollover();
    log("setProperty - IMAGE_NAME_ON value=" + value.toString());
    // load the requested image
    m_imageNameOn = (String) value;
    loadImage(ON,m_imageNameOn);
    // reset the currrently drawn image if needed
    setImage(ON,m_state);
    return true;where loadImage function is:
        URL imageURL = null;
        boolean loadSuccess = false;
        //JAR
        log("Searching JAR for " + imageName);
        imageURL = getClass().getResource(imageName);
        if (imageURL != null)
          log("URL: " + imageURL.toString());
          try
            m_images[which] = Toolkit.getDefaultToolkit().getImage(imageURL);
            loadSuccess = true;
            log("Image found: " + imageURL.toString());
          catch (Exception ilex)
            log("Error loading image from JAR: " + ilex.toString());
        else
          log("Unable to find " + imageName + " in JAR");
        //DOCBASE
        if (loadSuccess == false)
          log("Searching docbase for " + imageName);
          try
            if (imageName.toLowerCase().startsWith("http://")||imageName.toLowerCase().startsWith("https://"))
              imageURL = new URL(imageName);
            else
              imageURL = new URL(m_codeBase.getProtocol() + "://" + m_codeBase.getHost() + ":" + m_codeBase.getPort() + imageName);
            log("Constructed URL: " + imageURL.toString());
            try
              m_images[which] = createImage((java.awt.image.ImageProducer) imageURL.getContent());
              loadSuccess = true;
              log("Image found: " + imageURL.toString());
            catch (Exception ilex)
              log("Error reading image - " + ilex.toString());
          catch (java.net.MalformedURLException urlex)
            log("Error creating URL - " + urlex.toString());
        //CODEBASE
        if (loadSuccess == false)
          log("Searching codebase for " + imageName);
          try
            imageURL = new URL(m_codeBase, imageName);
            log("Constructed URL: " + imageURL.toString());
            try
              m_images[which] = createImage((java.awt.image.ImageProducer) imageURL.getContent());
              loadSuccess = true;
              log("Image found: " + imageURL.toString());
            catch (Exception ilex)
                    log("Error reading image - " + ilex.toString());
          catch (java.net.MalformedURLException urlex)
            log("Error creating URL - " + urlex.toString());
        if (loadSuccess == false)
          log("Error image " + imageName + " could not be located");In this case, what shall i modify?
    Thanks in advance

  • Application Images under Oracle XE - how to configure an alias path ?

    Hi,
    I've installed an APEX application on XE that was developed under Oracle10g and the Apache (basically so I can have a portable demo system).
    There are two images for the application that show the logo. Under Apache, they have been put in a directory and aliased in httpd.conf - as described on p419 of ProApEx.
    My question is : how can I achieve this under XE ?
    Ideally, I'd like to move my application to XE and so want to create the same alias - but, XE doesn't use Apache and I can't find how to get my images recognised. All the Apex images are there as the load script apxldimg takes care of that. Do I need to create a bespoke load script for my images so that they are taken from the database under XE ?
    Thanks for any suggestions,
    Steve

    Hi,
    you need to configure the access to the XDB repository via some protocol (WebDav or FTP), thereafter you will be able to put files in the special "file system" of XE.
    You can find some information about this in a posting i wrote some time ago, where there are also links to the documentation:
    http://oraclequirks.blogspot.com/2007/12/on-oracle-xdb-repository-ftp-webdav-and.html
    I normally develop on XE virtual machines (running on a Mac) and then deploy to a standard 10G database running on Solaris without problems, it's just a matter of configuring the right protocols and keep the directories in sync.
    Bye,
    Flavio
    http://www.oraclequirks.com

  • Error while loading image from Windows Phone gallery into my Unity application

    Hi,
    I have developped a Windows Phone plugin for my Unity application which enable me to open the Windows Phone gallery in order to select an image and get its physic path.
    I've used this path to load the image in the application with a WWW object but I get this error
    "Error. Operation has failed with error 0x80070005: access is denied."
    The path is correct because I display it and I've ticked the ID_CAP_MEDIALIB_PHOTO in the WMAppManifest.xml (Capabilities tab).
    Here is my Unity C# test code to load the image with the path.
    IEnumerator loadImage()
    this.guiText.text = filePath;
    WWW www = new WWW(filePath);
    yield return www;
    if(www.error == null)
    GameObject texture = GameObject.Find("UNITY");
    if(texture != null)
    texture.guiTexture.texture = www.texture;
    Any help would be appreciated ! Thanks in advance !

    The error is correct. Your app doesn't have direct access to that path. It can directly load files only from its app data and install directories.
    To load from the libraries I it needs to use the StorageFile to get brokered access.
    The easiest way may be to copy from the library to local data then use WWW to load that. Otherwise you'll probably need to wrap the StorageFile can for use in unity. Unity has such a wrapper in the Unity Engine.WSA namespace that you can try

  • How do i insert a splash screen or a loading screen and a application image for a phone app on Dream

    How do i insert a splash screen or a loading screen and a application image for a phone app on Dreamweaver 6, 5.5 had the mobile application setting that is seemingly no longer present? and i also heard you can use animanted backgrounds on the mobile application in dreamweaver 6 but figuring out how to set the splash screen and application image like it was in 5.5 would be nice. All i can get to pull up is the web application i developed i am trying to build into a phone app on google chrome, if i could officially designate it as a phone app where i can set each splash screen and app image to where it is recognized as a phone app that would be really nice.

    Duely noted, the server will still not connect, so i have left an inquery in the suggested forum.
    Date: Mon, 15 Oct 2012 07:37:34 -0600
    From: [email protected]
    To: [email protected]
    Subject: How do i insert a splash screen or a loading screen and a application image for a phone app on Dream
        Re: How do i insert a splash screen or a loading screen and a application image for a phone app on Dream
        created by David_Powers in Developing server-side applications in Dreamweaver - View the full discussion
    jmed0411 wrote: the phonegap program loads for quite some time and eventually reaches to the unfortunate conclusion that the server cannot be reached and to please try again. Any ideas on how that problem can be mended if the solution is in my hands?? I haven't used PhoneGap Build recently, but I have seen several reports about problems connecting to the server. One suggestion that I've heard is that there has been unexpectedly high demand on the server since the launch of Edge Tools and Services as part of the Creative Cloud last month. As far as I know, the only thing you can do is wait, and try again later. You could also try posting in the PhoneGap Build forum: http://community.phonegap.com/nitobi/products/nitobi_phonegap_build.
         Please note that the Adobe Forums do not accept email attachments. If you want to embed a screen image in your message please visit the thread in the forum to embed the image at http://forums.adobe.com/message/4774799#4774799
         Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page: http://forums.adobe.com/message/4774799#4774799
         To unsubscribe from this thread, please visit the message page at http://forums.adobe.com/message/4774799#4774799. In the Actions box on the right, click the Stop Email Notifications link.
         Start a new discussion in Developing server-side applications in Dreamweaver by email or at Adobe Community
      For more information about maintaining your forum email notifications please go to http://forums.adobe.com/message/2936746#2936746.

  • Load / unload numerous images in air application (memory leak?)

    Hi,
    after struggling for a few days with this, I realized I need help!
    I am trying to make an application load and display A LOT (hundreds) of images thumbnails at various position in a big area. The problem is that when I try to unload and reload images, I end up with an increasing memory, that does not get collected by the garbage collector.
    My first challenge was to load images from anywhere in the computer (I am quite new to flex), which I solved by using a File reference and a Loader using the url extracted from the file:
                   private function createImage():void {
                             var img_:String = "1905_a_mondrian.jpg";
                             var imageFile:File = new File();
                             imageFile.nativePath = imagesPath + "/" + img_;
                             var imageLoader:Loader = new Loader();
                             // useWeakReference permits the GC to collect the memory when the eventListener is dropped
                             imageLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, loaded, false, 0, true);
                             imageLoader.load(new URLRequest(imageFile.url));
                             imageFile = null;
    I make sure I remove the eventListener in the loaded method:
         e.target.content.removeEventListener(Event.COMPLETE, loaded);
    And then Populate an external component:
    <?xml version="1.0" encoding="utf-8"?>
    <s:Group xmlns:fx="http://ns.adobe.com/mxml/2009"
              xmlns:s="library://ns.adobe.com/flex/spark"
              xmlns:mx="library://ns.adobe.com/flex/halo"
              x="-100" y="-100"  width="200" height="200" >
         <!-- The trick is right above this line: offset the anchor point to center the component around -->
         <fx:Script>
              <![CDATA[
                   import mx.controls.Image;
                   [Bindable]
                   public var image:Image;
              ]]>
         </fx:Script>
         <fx:Declarations>
              <!-- Place non-visual elements (e.g., services, value objects) here -->
         </fx:Declarations>
         <mx:Image id="img_" source="{image}" horizontalCenter="0" verticalCenter="0" autoLoad="true" />
         <!-- impair width and height results in problems for centering the ellipse (e.g. for rotation) -->
         <s:Ellipse height="4" width="4"  horizontalCenter="0" verticalCenter="0" >
              <s:fill>
                   <s:SolidColor color="0x00FF00"/>
              </s:fill>
         </s:Ellipse>
    </s:Group>
    I populate a Dictionary to keep a track of all the component created. Finally I nullify all that I can to hint the garbage collector.
    Now I have a function to empty the Dictionary (componentBag below) when we want to unload the images:
                   protected function button1_clickHandler(event:MouseEvent):void
                             for each ( var g : Group in componentBag )
                                       ((ImgPanel)(g.getChildAt(0))).img_.unloadAndStop(false);
                                       ((ImgPanel)(g.getChildAt(0))).image = null;
                                       delete componentBag[g.uid];
                                       g.removeElementAt(0);
                                       this.removeElement(g);
                                       g = null;
         triggerGC();
    PROBLEM: using profiler, the loading/unloading works once or twice and after the memory keeps increasing... And if I launch the application, wait for a while and do a load/unload, the garbage collection only recovers a few megabytes, far from what was allocated for displaying the images.
    What am I missing? Is there a problem with loading a lot of images? Has anyone done this?
    In attachment is the full test code, the ImgPanel goes inside a 'views' package

    Thanks to Anton_AL, I finally solved this problem by using an URLLoader AND a plain Loader:
    var loader: URLLoader = new URLLoader( );
    loader.dataFormat = URLLoaderDataFormat.BINARY;
    loader.addEventListener(Event.COMPLETE, onLoadingComplete );
    loader.load( new URLRequest(file.url) );
    private function onLoadingComplete( e: Event ):void
         var loader: Loader = new Loader( );
         loader.contentLoaderInfo.addEventListener( Event.COMPLETE, onParsingComplete );
         loader.loadBytes( e.target.data );
    private function onParsingComplete( e: Event ):void
         var img: BitmapImage = new BitmapImage( );
         img.source = (e.target.content as Bitmap).bitmapData;
         _images.push( img );
    private function onImageLoaded( e:Event ):void
         var img: Image = e.target as Image;
         img.removeEventListener( Event.COMPLETE, onImageLoaded );
         _images.push( img );
    See Anton's thread here: http://forums.adobe.com/message/2358653#2358653

  • Oracle Applications 11i Load Balancing does not work with RAC one Node

    Hi all,
    Could you help me to resolve this issue.
    Architecture environment is :
    - One APPS tier node
    - Two nodes Oracle Database Appliance (Primary node 1 holds INSTANCE_1 et Secondary node is configurured to holds INSTANCE_2), i.e RAC one Node.
    - The primary node have instance_name SIGM_1 and the secondary node have instance_name SIGM_2, but in RAC one node, the secondary instance is not alive.
    We convert our EBS 11i environment to RAC following note ID Using Oracle 11g Release 2 Real Application Clusters with Oracle E-Business Suite Release 11i [ID 823586.1].
    When testing Database failover, Oracle Applications 11i load balancing does not work anymore.
    The root cause is that, when the primary node of the Rac one node is down, the INSTANCE_NAME_1 is automaically relocating to the surviving node,.
    During test failover, we imagine that when the primary node goes down, the secondary node start or relocate database with instance_name SIGM_2, and in that case the Oracle Applications load balancing works.
    Currently, when the primary node goes down, the instance_name SIGM_1 is relocated on the secondary node, which cause failure of Oracle Applications Load Balancing.
    Thank you for your advice.
    Moussa

    This is something I observed a long time ago for Safari (ie: around version 1). I'm not sure this is Safari, per se, but OpenSSL that is responsible for the behavior. I'm pretty sure Chrome does this and I've seen some Linux browsers do it.
    What I have done at the last two companies I've worked for is recommend that our clients do not use SSL SessionID as the way of tracking sticky sessions on web servers, but instead using IP address. This works in nearly all cases and has few downsides. The other solution is to use some sort of session sharing on your web servers to mitigate the issue (which also means that your web servers aren't a point of failure for your users' sessions). (One of the products I supported had no session information stored on the web servers, so we could safely round-robin requests, the other product could be implemented with a Session State Server... but in most cases we just used IP address to load balance with). The other solution is to configure your load balancer to terminate the SSL tunnel. You get some other benefits from this, such as allowing your load balancer to reduce the number of actual connections to the web servers. I've seen many devices setup this way.
    One thing to consider through this is that - due to the way internet standards work - this really can't be termed a bug on anyone's part. There is no guarantee in the SSL/TLS standards that a client will return the same SSL Session ID for each request and there is not requirement that subsequent requests will even use the same tunnel. Remember, HTTP is a stateless protocol. Each request is considered a new request by the web server and everything else is just trickery to try and get it to work the way you want. You can be annoyed at Safari's behavior, but it's been this way for over 5 years by my count, so I don't expect it to change.

  • How to load images from client to oracle server

    Hi
    I want to load the image in oracle. when i tried to laod the iamge from my client(windows) to oracle server(linux)
    it is giving error. i wrotea pl/sql program to store the images in oracle database.
    but the server not reconzing the path of image wich is client. how to overcome this probelm. as iam new to oracle
    i dont know apex and DAD. can any help me with an example
    thak you

    In addition to Solomon, please read:
    http://asktom.oracle.com/pls/asktom/f?p=100:11:0::::P11_QUESTION_ID:6894565006210, that explains (again) why servers can't see clients and points to an sqlldr example @ http://asktom.oracle.com/pls/asktom/f?p=100:11:2928066747837319::::P11_QUESTION_ID:624423639385

  • How to Implement SSL with Oracle Applications R12 without using Load Balanc

    How to Implement SSL with Oracle Applications R12.1.3 without using Load Balancer

    Please refer to (Enabling SSL in Release 12 [ID 376700.1]).
    Thanks,
    Hussein

Maybe you are looking for