READ_IMAGE_FILE built in on Forms 6i

Hi all,
I have learned there was a bug in Forms 6i (Win2000) using READ_IMAGE_FILE built-in. It was not possible to load JPG images without converting them in JFIF.
Is this bug fixed? And is it a way to use an URL instead of a filesystem path to locate the image wanted?
Thanks, Marco.

Marco,
If you can provide me with a bug number, then I can look it up and tell you if its fixed. Actually the read_image_from_file is supposed to read an image from the filesystem. Read image from a URL is not supported in Forms.
Frank

Similar Messages

  • Using READ_IMAGE_FILE BUILT-IN IN Forms causes a loss in the  resolution

    Hi All
    Oracle Developer suite 10g, database 11 gr2, windows Platform
    I'm using READ_IMAGE_FILE BUILT-IN in forms builder to read an image and get a good background for the form, but the image displays in the form with a resolution that is less than the actual image resolution.
    Please help

    Francois,
    Sorry, because I don't have any background about java,
    This is the java console output after saving a new record :
    Oracle JInitiator: Version 1.3.1.22
    Using JRE version 1.3.1.22-internal Java HotSpot(TM) Client VM
    User home directory = C:\Documents and Settings\it maniger
    Proxy Configuration: Browser Proxy Configuration
    JAR cache enabled
    Location: C:\Documents and Settings\it maniger\Oracle Jar Cache
    Maximum size: 50 MB
    Compression level: 0
    Loading http://itmanage:8889/forms/java/frmall_jinit.jar from JAR cache
    Loading http://itmanage:8889/forms/java/myappicons.jar from JAR cache
    Loading http://itmanage:8889/forms/java/frmwebutil.jar from JAR cache
    Loading http://itmanage:8889/forms/java/jacob.jar from JAR cache
    Loading http://itmanage:8889/forms/java/handleimage.jar from JAR cache
    Loading http://itmanage:8889/forms/java/classes12.jar from JAR cache
    proxyHost=null
    proxyPort=0
    connectMode=HTTP, native.
    إصدار بريمج Forms هو : 10.1.2.0
    Lecture.bLog=true
    Lecture.bLog=true
    InitConn=jdbc:oracle:thin:@zogotoun-jnq4h6:1521:XE
    InitUser=tutoforms
    InitPwd=tuto
    Clear imge
    Searching JAR for file:///f:\femtosoft\fmst\mainmenu.jpg
    Unable to find file:///f:\femtosoft\fmst\mainmenu.jpg in JAR
    Searching docbase for file:///f:\femtosoft\fmst\mainmenu.jpg
    Constructed URL: file:/f:/femtosoft/fmst/mainmenu.jpg
    Image found in DOCBASE: file:/f:/femtosoft/fmst/mainmenu.jpg
    Start Ecriture()
    Ecriture() : Connect to database
    Ecriture() : error connecting to the database java.security.AccessControlException: access denied (java.net.SocketPermission zogotoun-jnq4h6 resolve)
    Ecriture() : execute query=UPDATE PHOTOS set PHOTO_JAVA = ? where IDENTIFIANT=5
    java.lang.NullPointerException
    Mostafa

  • Using Jar file images with READ_IMAGE_FILE built-in

    Hello,
    I was wondering if it is possible to utilize images in a JAR file with the READ_IMAGE_FILE built-in. The Oracle Forms Configuration guide seems to indicate that I should be able to do this by using 'URL' with READ_IMAGE_FILE but no success so far. I have imageBase=CodeBase in the FrmsWeb.cfg file and the jar file in the /forms/java directory. Any advice would be most welcome,
    regards,
    Kevin.

    It is possible.
    in 10g 'URL' is a new value for file_type in READ_IMAGE_FILE.
    It's not documented in Forms Help, but should work.
    1. Check Java Console and ensure jar file is loaded
    You should see something:
    Downloading http://host:port/forms/java/myjar.jar to JAR cache
    or
    Loading http://host:port/forms/java/myjar.jar from JAR cache
    2. You are using dept for file name. Check the image file name in your jar file. It should be full, case sensitive name of JPG or GIF file in your jar.
    like :
    READ_IMAGE_FILE('dept.jpg','URL','control.deptimage');
    3. If all above correct, try to put synchronize; before READ_IMAGE_FILE

  • Using HOST built-in in Forms under an AIX O/S

    Hello,
    I need to use the HOST built-in inside a form under an AIX O/S, but it doesn't work. I have tried some different options:
    a) HOST('cp /xx/xx/xx/file1.txt xx/xx/xx/file2.txt');
    b) HOST('sh cp /xx/xx/xx/file1.txt xx/xx/xx/file2.txt');
    c) HOST('ksh /xx/xx/xx/file1.txt xx/xx/xx/file2.txt');
    d) HOST('/usr/bin/cp /xx/xx/xx/file1.txt xx/xx/xx/file2.txt');
    (NOTE: The files are referenced with the absolute path).
    Why it doesn't work?
    It seems that the cp command is not found when i execute it. When I put this instruction in a Windows O/S it works perfectly puting 'cmd' at the beginning of the literal, because of 'cmd' is the command.com for windows.
    Maybe I don't know what is the command.com for AIX?
    Could you help me?
    Thanks.

    Hello
    What Gerd was getting at is where you had:
    cl := '"C:\Program Files\Internet Explorer\iexplore.exe" http://springfield01:7777/forms/frmservlet?form=sas2.fmx&userid='||user||'/'||get_application_property(password)||'@fc';
    host(cl,no_screen);
    replace the code with:
    cl:='http://springfield01:7777/forms/frmservlet?form=sas2.fmx&userid='||user||'/'||get_application_property(password)||'@fc';
    web.show_document (cl,'_blank');
    This will open a new IE window with the url you requested.
    You could alternatively if you already have webutil installed just replace
    host(cl,no_screen);
    with
    client_host(cl,no_screen);
    Though logically the having to have "C:\Program Files\Internet Explorer\iexplore.exe" in your code defeats the idea of a web application. I would go for the first option because you don't care where IE is on the machine.
    cheers
    Q

  • POST built-in and form status

    Hello friends at www.oracle.com ,
    while analyzing and testing a Forms program here, I saw that, before POSTing data, the value of :SYSTEM.form_status was CHANGED (that is, database contents were changed at Forms) and, after POSTing, :SYSTEM.form_status became QUERY.
    But, if POST built-in doesn't perform a database commit - so I suppose POSTed data isn't viewable to other users yet -, why does the form changes its status, if we do not have a real commit? Can't this lead the user to think data was saved (when, in fact, it's not, because POSTed data aren't committed)?
    I read about POST built-in at online help, but it's still not much clear for me, so I ask your help to understand it better.
    Hope I was clear - if not, please ask me.
    Best regards,
    Franklin Goncalves Jr.

    Sincere thanks for your answers. I really didn't know that POST built-in would fire triggers involved with database transactions, such as POST-COMMIT.
    Isn't it better for data integrity that Forms and database be synchronized with the state of each other - that is, Forms should state its data is really committed at database? While I don't see a special reason for using POST, I'll still think POST is not so useful and avoid using it.
    In some Forms programs I used a global variable, like :GLOBAL.key_commit_pressed, to determine if KEY-COMMIT was pressed (if user has committed data, that's obvious) while user is working. It doesn't seem to be a bad idea, although I still ask myself if it's really the best one.
    But the most important question I have, is to know if POST built-in validates data with database - that is, integrity constraints, database triggers, and so on. I think it might fire, although I still believe the use of POST built-in can confuse both user and developer anytime.
    Best regards,
    Franklin Goncalves Jr.

  • Working with Host built in in forms

    Hi everybody,
    I am working on form in which i created menu. That menu has submenu called 'Service desk. when user click on 'service desk' it take the user to weblink which is opened in mozilla firefox.. I used host built in to launch mozilla firefox. It works fine.
    The next functionality i want that is when firefox is not installed on system then it will populate message to user "Please install firefox". How can i check with oracle forms whether firefox is installed in system or not. Is there any way to do it?
    I am using solaris 9 and forms 6i.
    Please help me on this.

    Can you be more specific about your environment? You are using 6i and the host command, so I assume you are using 6i in client/server mode. Is that on Windows? What are you running on Solaris?
    If the client runs on Windows, you can check the registry for the default browser with Win_Api_Environment.Read_Registry. You will have to Google a bit to find out which key is used to specify the default browser.
    You can also check where Firefox is installed with registry path HKEY_LOCAL_MACHINE\SOFTWARE\Mozilla\Mozilla Firefox\3.5.5 (en-US)\Main and registry key PathToExe.
    It should be something like this:
    declare
      v_firefox   varchar2(100);
    begin
         v_firefox := Win_Api_Environment.Read_Registry
           ('HKEY_LOCAL_MACHINE\SOFTWARE\Mozilla\Mozilla Firefox\3.5.5 (en-US)\Main'
           ,'PathToExe'
           ,true);
      message('Firefox is installed on: '||v_firefox);      
    exception
         when no_data_found then
           message('Firefox is not installed');
    end;

  • Display image from the save link in the field

    Hi all,
    I have a image link that saved in a column and will like this picture to be displayed once user is click on the image link in the tabular format.
    However, now I am facing the problem to perform query of the record because one of the field type is image or ole. However, if I changed the image link to normal text item. I am able to perform query search on the record. My question is, can I click on the record whenever I want to see the image from the tabular form ? I prefer tabular form as I can see a lot of records in one sort. But for the image display, I will like user to clock on the specific link in order to open up the image.
    Will this possible ?
    Thanks
    Lim

    If you are saving the image path in table not the image then why don't you use the READ_IMAGE_FILE built-in (see forms help).
    What i mean is hide the actual item which is having the image location. Just create one image item from toolbar (non-database) and create one extra button in the same block to display the image then use the READ_IMAGE_FILE built-in as below in WHEN-BUTTON-PRESS-TRIGGER...
    READ_IMAGE_FILE(:path_item_name,NULL,'image_item_name');
    Preferred way would be to save the image in database then query in your form using database image.
    -Ammad

  • Field validation using distributed form's "Submit Form" built-in function

    Hello,
    I am hoping someone can help me out with a small problem I'm having. I have a hidden field on a form which is the total of other numeric values on the form with code in place so that if the number doesn't equal what it should, the alert box is displayed. The problem is that it's a distributed form and even though the message is displayed, if you hit submit (Built-in Submit Form) button form on a second attempt, it submits anyway. So the question is, how do I change the built-in API submit button code to catch the error? Because it's a distributed form, am I dealing with global variables vs. form level? I've tried using the "event.rc = false" at the form level to no avail. I can't seem to locate the built-in "submit form" code so that I can change that to make this APP work. Or is there a better way to do this. My validation code is below and I would greatly appreciate anyone's help.
    Thanks,
    Tom
    // JScript source code if (this.getField("RankGame1").value > 0 &&     this.getField("RankGame2").value > 0 &&     this.getField("RankGame3").value > 0 &&     this.getField("RankGame4").value > 0 &&     this.getField("RankGame5").value > 0 &&     this.getField("RankGame6").value > 0 &&     this.getField("RankGame7").value > 0 &&     this.getField("RankGame8").value > 0 &&     this.getField("RankGame9").value > 0 &&     this.getField("RankGame10").value > 0 &&     this.getField("RankGame11").value > 0 &&     this.getField("RankGame12").value > 0 &&     this.getField("RankGame13").value > 0 &&     this.getField("RankGame14").value > 0 &&     this.getField("RankGame15").value > 0 &&     this.getField("RankGame16").value > 0)     {       if (this.getField("RankGameTotal").value == 136) {         } else {         event.rc = false;         app.alert("Please check your confidence points. They should add up to 136, but are adding up to " + this.getFiel         ("RankGameTotal").value + ".");        }     } else { }

    try67,
    Thanks for your reply. When you say to "remove the Submit action, and submit the form yourself inside your code" are you refering to the
    distributed forms "Submit Form" button displayed on the purple tool bar of the distributed form? And if so, could you please let me know how I can do that? I've
    looked into that and haven't found an answer. Doing that would solve my problem of having my own submit code acting correctly and the
    distributed forms "Submit form" code not having any idea about my forms desired field value.
    Thanks again,
    Tom

  • ORA-01460 and ORA-02063 errors in form built on a view

    We have built an apex form on a view against a remote database (via dblink).
    Running the page brings back data as desired.
    However, clicking on the "edit icon" to make updates results in:
    ORA-01460: unimplemented or unreasonable conversion requested ORA-02063: preceding line from my_dblink
    I have searched and cannot seem to locate a fix. Can anyone provide a solution or further steps to troubleshoot?
    Thanks in advance.

    Right now you will be able to base a portal form only on updatable views. Non updatable views are not supported.
    As a work around you can use QBE reports to query the data, without having the delete and update links.
    Regards,
    Sunil.
    null

  • How to compile a form built in forms 10g on windows platform?

    Hi All,
    I have built a 10g form on my local desktop on windows 7 and compiled/deployed it in apps on linux server.
    I need to deploy the same form fmb on oracle apps hosted on windows platform. Please let me know if fmb works fine or not. And also provide how to compile form in windows platform..like frmcmp_batch command
    Thanks,
    Veena

    The fmb, mmb, and pll files are portable to any platform where Forms can be installed. Every installation that supports running Forms comes with the necessary components to generate the executible files (fmx, mmx, plx). On your Windows machine, if you have the Builder installed, you can generate an FMX using the Builder. If not, you can directly use the compiler. The compiler has a gui option and a command line option. If you do not pass any arguments into the executible (frmcmp.exe) the GUI will start. Alternatively you can generate from the command line (DOS). You may need to set PATH, ORACLE_HOME, TNS_ADMIN, and possibily some others in the DOS shell in order for it to work.
    If you have access to MyOracleSupport, refer to the following note:
    <blockquote>Moving Forms Applications From One Platform Or Machine To Another (Doc ID 299938.1)</blockquote>
    Example:
    <blockquote>frmcmp.exe module=myForm module_type=form userid=scott/tiger@orcl compile_all=yes</blockquote>
    More options are discussed in the Builder Online help and the compiler help.

  • Using forms to scan an image directly into the application.

    I am not sure but my guess is this is possible in Forms but how, can I trigger a scanner or any other device (digital camera, etc) from Forms so I can populate image items directly from such devices instead of having to save to file and later use read_image_file built in.
    null

    simplest way I have done is creating an OLE type of Item and at run time we can insert an OlE server Application. I have used HP FLat Bed Scanner and after installing the Scanning Software the Scanner is shown in the 'Insert Object' List.
    Another method is to call the external program using HOST command from a Button in Forms. This method is also ok. Works decently
    But the ideal method would be to use DDE technique which fairly complex. I am not aware of the method.

  • Previewing images in forms 11g from the server

    Hi All,
    i need your help in this issue please
    i've just migrated my application from forms 6i to forms 11g
    there is a function in my application that i used that previewed images that exists on a network drive that are used in an image gallary
    now i don't have this setup as the application is hosted on the weblogic server
    i want an alternative method that i can use to preview the images from the server
    the old way was:
    read_image_file('.\default_image.jpg','any','preview.image_preview'); --this shows a default image if no image was selected
    if :search_results.file_path is not null then     
         read_image_file(:preview.image_path||'\'||:search_results.file_path,'any','preview.image_preview');     -- this shows the image that we retreived it's name from the database but it exists on the file system
    end if;
    i've configured the webutil but i don't know what method to use
    also another functionality that i lost in the migration is opening a browser window to preview the final article that the editor entered using my application
    the old way was:
    declare
         url varchar2(1000);
    begin     
         url:='http://10.100.100.197:55/allcontent/allcontentimages/'||:SEARCH_RESULTS.FILE_PATH||'';
    WIN_API_SHELL.WinExec('"C:\Program Files\Internet Explorer\IEXPLORE.EXE" '||url||'',
    WIN_API.SW_SHOWMAXIMIZED,TRUE);
    Exception when NO_DATA_FOUND then
    MESSAGE('CAN NOT FIND THE FILE');
    end;
    now ithe WIN_API_SHELL is not working as i'm on the server side and i don't know the alternative
    please advice

    Hello Nivin
    If you want to read an file from local drive or from netwrok drive then before reading images please make sure that do you have full rights and have you mapped that network drive .
    after that you use read_image_file built in(). secondly you configure WEBUTIL package.
    please visit the following link for configuring webutil.
    I configured my webutil package from this link and its worked fine.
    http://www.baigzeeshan.com/2010/01/open-file-dailog-box-example-using.html
    thanks
    G.Yassen

  • Show BLOB in Forms 6i

    Hello:
    I've got a table with a BLOB field.
    I saved an image or another document using DBMS_LOB package.
    Now I want to show it in a Form(6i).
    I found this rutine but i don't know how show the blob field in a form.
    Could anybody help me, please ?
    Thanks.
    DECLARE
    ac BLOB;
    amount BINARY_INTEGER;
    offset INTEGER;
    buf RAW(2000);
    BEGIN
    /* select the LOB from which to read and return the locator into 'ac' */
    SELECT audio_clip INTO ac FROM multimedia_table WHERE id = 1;
    /* open the LOB */
    DBMS_LOB.OPEN(ac, DBMS_LOB.LOB_READONLY);
    /* read the LOB value into 'buf' */
    amount := 2000;
    offset := 1;
    DBMS_LOB.READ(ac, amount, offset, buf);
    /* close the LOB */
    DBMS_LOB.CLOSE(ac);
    END;

    You can directly use read_image_file built in to read an image from the clients system directly into a image object. And regarding form server crash, it is no where related to the form u are running. try to invoke forms runtime screen(which is available in forms installed software) and work with it.
    And web.show_document cannot be used to open images from client side. As the form server will not recognise the clients file system.

  • Retrieving image from database in form 6i

    hello all
    i'm working on form 6i...
    i have uploded images into the database of customers in my application using READ_IMAGE_FILE.. IT IS FINE...
    But when i am trying retrieves records into the form.... i'm getting all the data except image... Image field is showing empty..
    How can i get image from database to form
    can u plz help me.....
    thanks

    What data type you used for storing image in database. If it is long raw, then you can place an image item within your data block on form and associate it with the column name. This should populate the image by itself.
    Below para is from Forms Help.
    Image items can be populated in the following ways:
    +1. a fetch from a LONG RAW database column+
    An image item in a data block is populated automatically when the end user or the application executes a query in the block.  When a fetched image is modified or replaced, Form Builder marks that record as Changed, and the next commit operation saves the new image to the corresponding LONG RAW column in the database.
    Note:  You cannot write a SELECT statement to select a LONG RAW value INTO an image item.
    +2. executing the READ_IMAGE_FILE built-in to read an image from the file system+
    +(To dynamically write an image from an image item out to a file, use the built-in procedure WRITE_IMAGE_FILE.)+

  • JPEG images on Forms 9i

    Hi all,
    I'd like to know which jpeg formats, excluding jfif, are supported by Forms 9i.
    I'd like also to learn if any Forms 6i patch has been released to load not-jfif format jpeg images through read_image_file built-in.
    Thanks,
    Marco

    Did you try to load any other JPG format?
    For me every jpg/gif that I find on the web was easily loaded into the form. Try leaving the image_type parameter null.

Maybe you are looking for