READ_IMAGE_FILE problem?

Using Forms 6.0.8.22.1 and Oracle 10.2.0.2 our form calls READ_IMAGE_FILE() to display TIFF files. It works for most files except a couple of files. Without an error message, the form suddenly shuts down as soon as it displays images. These images that shuts down the form can be displayed with other software and TIFF files are not corrupted.
Although I found the document describing that in patch 9 the problems with TIFF were fixed, I wonder if my problem is related to these problems. Or is there any size limit on files? Any comments would be appreciated.
Sarah

You may want to consider this.... I havent used it, but wish I had something like this in the past.
http://fdegrelle.over-blog.com/article-4018412.html
My experience is that forms mangles on insert and/or decides on a daily basis what it wants to display even for supported formats. I do know that not all tiff formats are supported. I cannot seem to find a current link to whats supported though... I know its out there..
Heres an old revised metalink note 1009546.6 as of 2005 that says tiff 4,5, & 6 are supported. This may be old data though. More may be supported now.
Is it possible that these problem tiffs were created with different software than the displayable tiffs? The problem software may be saving the tiffs in a different tiff format than what a forms image item likes to display? Could you download one of the problem tiffs, resave it to the PC with a image program that is known to generate a tiff format that Forms likes. Then upload the image again via something like TOAD, and then see what forms does with it on display? Its probably a format thing just for those few tiffs...
for example...
If I recall correctly, could be wrong, that a tiff can have layers. If you read_image_file a tiff with layers and then save it, the saved image will not have layers. Pretty sure. This kind of mangling makes me wish I knew of this java solution above beforehand.
Message was edited by:
Mark Reichman

Similar Messages

  • Client_Image.READ_IMAGE_FILE problems

    Hi, I have search all over OTN and the web and can't seem to find a solution to my problem. Im using Forms 10gR2, and am trying to display a TIFF image in a form. I am not getting any errors, its just not displaying the image at all.
    I have the images stored in C:\temp\0-GRAPHICS\. I have looked at the webutil.cfg file and updated it with the following:
    #NOTE: By default the file transfer is disabled as a security measure
    transfer.database.enabled=TRUE
    transfer.appsrv.enabled=TRUE
    transfer.appsrv.workAreaRoot=c:\TEMP
    transfer.appsrv.accessControl=TRUE
    #List transfer.appsrv.read.<n> directories
    transfer.appsrv.read.1=c:\temp
    transfer.appsrv.read.2=c:\
    transfer.appsrv.read.3=c:\DevSuite10_1_2
    #List transfer.appsrv.write.<n> directories
    transfer.appsrv.write.1=c:\temp
    transfer.appsrv.write.2=c:\
    transfer.appsrv.write.3=c:\DevSuite10_1_2
    When I run the code, i get no error, it seems to work, just no picture displayed. Here is my code
    When-Button-Pressed trigger:
    DECLARE
    tiff_image_dir VARCHAR2(80) := 'C:\temp\0-GRAPHICS\';
      photo_filename VARCHAR2(80);
    BEGIN /* ** Set the message level high so we can gracefully handle ** an error reading the file if it occurs */
      :CB_PLATE_TIFF.ESL_NUMBER := :UNION_HDRS.ESL_NO;
      :CB_PLATE_TIFF.PLATE_NUM := :EIF_ONE_PPB.EIF_PLATE_NO;
      :System.Message_Level := '25';
      /* ** After fetching an employee record, take the employee's ** Userid and concatenate the '.TIF' extension to derive **
      the filename from which to load the TIFF image. The EMP ** record has a non-database image item named 'EMP_PHOTO' ** into which we read the image. */
      photo_filename := tiff_image_dir||:CB_PLATE_TIFF.ESL_NUMBER||'\'||:CB_PLATE_TIFF.PLATE_NUM||'.tif';
      /* ** For example 'photo_filename' might look like: ** ** /usr/staff/photos/jgetty.tif ** ------ ** ** Now, read in the appropriate image. */
      client_image.READ_IMAGE_FILE(photo_filename, 'TIFF', 'CB_PLATE_TIFF.IMG_PLATE');
      IF NOT FORM_SUCCESS THEN
      MESSAGE('The TIFF file '||:CB_PLATE_TIFF.PLATE_NUM||'.tif does not exist.');
      END IF;
      :SYSTEM.MESSAGE_LEVEL := '0';
      GO_BLOCK('CB_PLATE_TIFF');
    END;
    Am i not initializing the tiff_image_dir properly? Thanks for any help.

    Without actually being able to test your form, my only remaining guess is that the version you are using has a defect.  Since you did not mention exactly which version you are using, I will guess and say that you are using an unpatched version.  Please ensure that you are using Forms 10.1.2.3.  If you are not using this patch version, I recommend you download and install it.  You must have a current MyOracleSupport (and Support) account to do so.  The patch ID number is:  5983622
    Also, since version 10 is no longer entitled to Premiere Support, it might be a good time to consider upgrading to the latest release, 11.1.2.2
    http://www.oracle.com/technetwork/developer-tools/forms/downloads
    Installing WebLogic Server 10.3.6 is a prerequisite to installing Forms/Reports 11.1.2.2, so be sure to download and install it first.  Be sure to review the product documentation before installing any software.
    http://docs.oracle.com/cd/E48391_01/index.htm

  • Problem in using client_image.read_image_file

    Hi all
    I want to load a picture file into a forms item at Develeoper Forms 10g Rel.2 with the following procedure, but it doesnt work and i also get no error.
    PROCEDURE import_image
    IS
    vFileName VARCHAR2(512);
    BEGIN
    -- Transfer Picture from File Directory to Forms Item.
    GO_BLOCK('FOTO');
    SET_BLOCK_PROPERTY(FIND_BLOCK('FOTO'), DEFAULT_WHERE,
    'natpers_oid = 55664');
    EXECUTE_QUERY;
    SET_BLOCK_PROPERTY(FIND_BLOCK('FOTO'), INSERT_ALLOWED,
    PROPERTY_TRUE);
    SET_BLOCK_PROPERTY(FIND_BLOCK('FOTO'), UPDATE_ALLOWED,
    PROPERTY_TRUE);
    SET_ITEM_PROPERTY(FIND_ITEM('FOTO.FOTO'), INSERT_ALLOWED,
    PROPERTY_TRUE);
    SET_ITEM_PROPERTY(FIND_ITEM('FOTO.FOTO'), UPDATE_ALLOWED,
    PROPERTY_TRUE);
    BEGIN
    vFileName := NULL;
    vFileName := webutil_file.file_selection_dialog('C:\Temp\', '*',
    '|Foto Dateien(*.bmp)|*.bmp|', 'Foto');
    END;
    IF vFileName IS NOT NULL THEN
    client_image.read_image_file(vFileName, 'BMP', FIND_ITEM('FOTO.FOTO'));
    client_host('cmd DEL ' || vFileName);
    END IF;
    END import_image;
    I think the WebUtil 1.0.6 works properly because the 'webutil_file.file_selection_dialog' (see above) works fine.
    Now can somebody give me a tip?
    Best regards
    Martin

    I found the problem :-)
    When i change the following parameter in the file webutil.cfg it works fine.
    transfer.appsrv.enabled=TRUE (old: FALSE)
    Martin

  • Problems with WEBUTIL_CORE on OAS 10.1.2 (CLIENT_IMAGE.READ_IMAGE_FILE)

    Hello,
    I get a problem with webutil 106 on Application Server 10.1.2.0.2 (RedHat 4)
    Some functions raise errors as :
    oracle.forms.net.ConnectionException: Abandon de la session Forms <839> : communication avec le processus runtime impossible.
    at oracle.forms.net.ConnectionException.createConnectionException(Unknown Source)
    at oracle.forms.net.HTTPNStream.getResponse(Unknown Source)
    at oracle.forms.net.HTTPNStream.doFlush(Unknown Source)
    at oracle.forms.net.HTTPNStream.flush(Unknown Source)
    at java.io.DataOutputStream.flush(Unknown Source)
    at oracle.forms.net.StreamMessageWriter.run(Unknown Source)
    For testing, I use the demo form WU_TEST_106 and I encounter this problem with :
    CLIENT_IMAGE.READ_IMAGE_FILE
    I get another problem with SHOWBEANS(FALSE) that doesn't terminate (showbeans(true) works fine)
    I've tried others Webutil functions that works fine
    I've another platform with same release of Webutil / OAS 10.1.2 / Redhat4 which works fine (the major difference is that OAS was installed with portal in this last platform).
    I've made those test with same client and same database (10g)
    Any ideas ?

    Seems to be a bug. That was the response from Oracle support (Metalink)
    Response:
    Your issue seems to be related to bug 5594702 - Abstract: EJB30 ENTITY BEAN WITH @ID AND @COLUMN ANNOTATION FAILS TO DEPLOY ON AIX.
    There is an issue with the IBM JDK/JRE 1.5's processing of annotations.
    Links:
    http://www.theserverside.com/discussions/thread.tss?thread_id=37764
    http://www-128.ibm.com/developerworks/forums/dw_thread.jsp?forum=367&thread=112543&cat=10
    When processing annotations it returns boolean values as false.
    Work-around:
    Fully specify the @Column annotation's boolean values. If insertable and updatable are set to false (which will happen due to this bug) then TopLink sets the PK
    mapping to read-only and the exception seen is expected.
    Note: nullable attribute of the @Colmun is not used in the EJB3/JPA preview of 10.1.3.0 If the customer MUST override the default column name then they should use:
    @Column(name="column-name", insertable=true, updatable=true)
    If they do not wish to override the default column name then simply do not use an @Column annotation.
    It can be deleted or commented out in the JDev generated code.
    There are two reported annotation processing issues with the AIX JVM. One was fixed in SR1 and the other is fixed
    in SR3 (due out Oc 11 - today). Upgrading to these more recent JVM releases may also address this issue.
    RECOMMENDED SOLUTIONS:
    1. Upgrade the IBM AIX JVM to SR3.
    OR
    2. Fix all generated @Column annotations as described above

  • Why READ_IMAGE_FILE is not working in Linux Appln Server?

    Hello!
    I have a form with a new_form_instance Trigger I wrote the read_image_file trigger to read a GIF file in an image item.It works fine on windows XP(development machine).I copied the GIF file to the same location where my fmx files are there in Linux application server.I copied and compilied my fmb file in linux application server.No compilation error is there.But when I run form from Linux the form hangs and my read_image_file command is at new form instance Trigger.I have checked the case sensitivity of the file and the permission etc in Linux.In windows Development machine the form runs successfully.What could be the problem.Please help.......
    Jayashree

    Hi
    Incase if you find any server related error like "FRM-92101" happening on READ_IMAGE_FILE functionality, try to change the image item format from TIFF to BMP/JFIF.
    Otherwise if you changed any Jinitiator or JRE Version, sign again for all the JAR Files and restart your server.

  • Webutil Read Image Problem

    Hi,
    I am reading image from client system using the below code
    CLIENT_IMAGE.READ_IMAGE_FILE(v_rd_file_name, 'JPG', 'CTRL_BLK.ADD_IMAGE');
    But this image is not displaying in the image item, this is happening for some particular images only. While writing this image into image server image size also increasing.
    We are trying one image that dimension is 2900 X 4700 this is not uploading to image item.
    but i am able to upload less than 2000 X 2000 dimension to the same image item
    below is Image item property
    Image Format : TIFF
    Image Depth : Original
    Display Quality : Medium or High
    Sizing Style : Adjust
    Any idea on thie problem...
    Regards,
    Suresh.V

    hi
    What about Java Bean????
    try the following link i hope it will help u.
    http://forms.pjc.bean.over-blog.com/article-7109292.html
    and also u may use Irfan viewer to resize the image.Did u try to use Crop?
    sasrah

  • WebUtil - Read_Image_File Issue

    In the process of converting from 6.0 to 9i certain forms require WebUtil which has been installed successfully. However, when using the procedure 'Client_Image.Read_Image_File' I have discovered a 'problem'.
    After the .bmp files have been read and processed I need to 'rename' and 'move' these files to another directory via Host commands. But, there seems to be a sharing violation where the source or destination may be in use. The only way I have found to 'release' the files is to close the Oracle9iAS Forms Services. Since this is unacceptable, is there a command which I could use to close/release the open .bmp files ?!
    Any help/suggestions would be greatly appreciated.
    Steve D.

    Hello,
    I am facing similar problem while trying to delete downloaded/stored temporary word documents. It is possible to delete the files manually only after the browser is closed. Is there any work around for deleting these temporarily downloaded/used files no longer in use from the application without closing the browser?
    When we have to leave downloaded copies of docs from database on to local end users machines it puts us in a very bad shape.
    Thanks.
    Ravindranath Chittar

  • READ_IMAGE_FILE question

    Hi,
    I am wandering if anyone is aware of a bug or else with READ_IMAGE_FILE within Forms 6i, its just that I have been successfully storing away images to the DB by the hundreds without any problems but have just a handfull of cases that refuse, infact as soon as I capture the image the application just hangs forcing a CTRL+ALT+DEL.
    Please throw any suggestions at me.
    Cheers

    Hi Grant,
    The equipment used to capture all images is exactly the same and all is hard coded within the form. I have included the code line if it helps.
    Read_Image_File(:GLOBAL.image_filename,'ANY','table_images.image');
    (Have I interpreted your comments correctly ?)

  • Read_image_file issue resizing when format= url

    Hi,
    I'm migrating from 6i
    I have some images to display, let's say logos and such, which in c/s I loaded with read_image_file into an image_item.
    Now, in the 11g version, I've put all that logos in a jar, as the read_image_file is now relative to the weblogic server, not the forms client.
    So, I'm changing this code:
    Read_Image_File ('H:\mypath\logos\mylogo.tif', 'TIFF', 'block.image_item1');
    by this:
    synchronize;     -- now this is neccesary
    Read_image_file (file_name => 'aenor.gif', file_type => 'url', item_name => 'BLOQUE.LOGO1');
    after converting my logo to gif and putting it inside a jar (which I load properly in formsweb.cfg).
    The problem:
    I see the image, but,
    If I set sizing style property to adjust, the image appears very tiny inside the image_item .
    If I set that property to crop, the image crops as expected (the gif is bigger than the item).
    Any hint or workaround (other than resizing the gif)?

    The URL option does not support scaling. 
    Consider what Francois suggested in this other post:  Display an static image
    http://forms.pjc.bean.over-blog.com/article-images-keep-the-initial-quality-phase-iv-102029104.html.

  • READ_IMAGE_FILE  jpg format

    I'm not able to open a jpg image file with the READ_IMAGE_FILE command.
    I try
    READ_IMAGE_FILE('C:\TMP.JPG','JPG','BLOCK.ITEM')
    it make the FRM-47100 error.
    The "block.item" is an image item, but its "image format property"
    don't include the jpg format.
    Any suggestion?
    How can I open jpg image files?
    Thanks!

    I found this thread from 2002 in search and today, 2011, i have the same problem.
    There is not any patch to make forms work with all jpg?
    My design team upgraded to Photoshop CS5 and it no longer has support to generate a compatible jpeg.
    I had to let a computer with photoshop cs3 just for it.
    If ther is no way to make forms work with enchanced jpeg, there is a way to make it work with PNG?
    Thanks.
    My software versions:
    Forms
    Forms [32 Bit] Version 9.0.4.0.19 (Production)
    Oracle Toolkit Version 9.0.4.0.31 (Production)
    PL/SQL Version 9.0.1.5.1 (Production)
    Server
    Oracle Database 10g Release 10.2.0.3.0 - 64bit Production
    PL/SQL Release 10.2.0.3.0 - Production

  • Read_image_file command does works on Linux application server

    Hello!
    I have a form with a new_form_instance Trigger I wrote the read_image_file trigger to read a GIF file in an image item.It works fine on windows XP(development machine).I copied the GIF file to the same location where my fmx files are there in Linux application server.I copied and compilied my fmb file in linux application server.No compilation error is there.But when I run form from Linux the form hangs and my read_image_file command is at new form instance Trigger.I have checked the case sensitivity of the file and the permission etc in Linux.In windows Development machine the form runs successfully.What could be the problem.Please help.......
    Jayashree

    For me, attempting the following:
      READ_IMAGE_FILE('bullet_ball_glass_blue.gif', 'GIF', 'IMAGE7');
    gives this error:
      FRM-47109: Cannot locate image file bullet_ball_glass_blue.gif
    Changing my command to:
      READ_IMAGE_FILE('bullet_ball_glass_blue.gif', 'URL', 'IMAGE7');
    loads the image successfully.
    If you truly are not getting an error message (mine appears in the status bar), then perhaps the file is being found, but the image format is not recognized or otherwise incompatible. Test this by loading one of the the images that load successfully into your iconic buttons. If that image loads successfully into your image item, fix the problem GIF image. (Recreate or open & resave with a graphics program, etc.)
    If this does not appear to be the problem, the only things I can think of are for you to confirm that, in formsweb.cfg:
      1. The archive_jini entry includes your image JAR
      2. If imageBase=DocumentBase, change to imageBase=codebase
    The second change may temporarily break your iconic buttons. This can be fixed by updating the buttons' Iconic Filename properties specifying only relative paths found within the JAR. Since my image is stored in the root of my JAR, no path need be specified. Had I placed my image in a subdirectory within my JAR, named images, my call would have to be changed to the following:
      READ_IMAGE_FILE('images/bullet_ball_glass_blue.gif', 'URL', 'IMAGE7');
    I'm not sure whether any of these suggestions will help, but since I had no problems, I suspect it's simply a matter of differing configurations. The two items that I listed are the only two likely differences I could think of.
    Eric Adamson
    Lansing, Michigan

  • Read_image_file in web mode

    hello,
    when i'm using the read_image_file in web mode, i've got the ORA 99 999 error message.
    but it works in client/server.
    my image is a gif format in the same path as the form.
    i use a unix ware 7 server with OAS.
    when i execute the form directly on the server, it works fine.
    can anyone help me ?
    thanks.
    null

    Hello ,
    Actually i have faciing the problem when i m upload the selected document in database,
    i have write down the code(IN button) GIVEN BELOW:-
    when i have press tha button i got the error
    ERROR:- WUT-121 - THE FILE HAS BEEN FORBIDDEN BY THE ADMINISTRATOR.
    PLEASE GIVE ME THE SUGGESTION.ASAP
    MAIL ME ON [email protected] solutions.
    DECLARE
         OPEN_FILE BOOLEAN;
    BEGIN
    OPEN_FILE:=WEBUTIL_FILE_TRANSFER.CLIENT_TO_DB
         ('C:\TEMP\BRC.XLS',
         'DOCUMENT',
         'DOC',
         FALSE,
         NULL
    END;
    THX

  • Problem with image file (URGENT!!!!!!!!!!)

    Hi all,
    I'm using oracle 6i and in my program I use an activeX for generating barcodes..
    the activeX genrate an image file and i need to store it in db(oracle 9i) or at least show the generated image through my form...the problem I encounter is that the read_image_file built in does not read the barcode images while it reads and shows other pictures with the same type (ex. tif or jpg)...
    here is my code (in case if it is useful) :
    declare
    application ole2.obj_type;
    begin
    application := ole2.create_obj('IDAuto.BarCode.1');
    ----DataToEncode :this is the data that is to be encoded in the barcode
    ole2.set_property(application,'DataToEncode',:txt);
    IDAuto_IBarCode.SetPixelsXY(application,2048,1024);
    ----this method save the image file
    IDAuto_IBarCode.SaveEnhWMF(application,'d:\TEST.tif');
    :system.message_level := '25';
    Read_Image_File(,'d:\TEST.tif','TIFF', 'control.itm_image');
    :system.message_level := '0';
    end;

    The errors are here:
              byte buff[]=new byte[(int)file.length()];
              InputStream fileIn=new FileInputStream(aa);
              int i=fileIn.read(buff);
              String conffile=new String(buff); (conffile is a String object containing the image)
    and here:
    String content ="-----------------------------7d11e410e500f2\r\n"+"Con
    ent-Disposition: form-data;"+"name=\"upload\";
    filename=\""+aa+"\"\r\n"+"Content-Type:
    application/octet-strem\r\n\r\n\r\n"+conffile+"--------
    --------------------7d11e410e500f2--\r\n";
    printout.writeBytes(content);conffie is sent to the server but
    it's non possible to treat binary data as String!
    Image files must be sent as byte[] NOT as String ......

  • Client_image problem in 10g

    Dear ALL
    I have oracle forms 10.1.2.0.2
    and i configure webutil for this version
    i test the webutil and its working fine i can read text and save text and do every thing , except the client_image read file
    how i can solve this problem
    thanks in advanced

    mmsalman87 wrote:
    1. Do u want to save the image in database ?
    Yes I want to save the image in database
    If yes, what the data type of your field ?
    Datatype is BLOBSounds good.Here is my code. I use it in a button and trigger is when-button -press
    declare
         vfilename varchar2(300);
    begin
         vfilename := client_get_file_name(file_filter => 'jpg(*.jpg,*.gif)|*.*');
         if vfilename is not null then
         client_image.read_image_file(vfilename,substr(     vfilename,instr(     vfilename, -1)),'COMPANY_INFO_MST.CIM_LOGO');
         client_image.write_image_file(vfilename,'','COMPANY_INFO_MST.CIM_LOGO');     
         end if;
    end;Image item CIM_LOGO's property is
    image format: TIFF
    sizing style: Adjustcheck the database item should be yes.
    Hope this will help you.

  • Picture problem with developer 6i

    Hi all
    I am using BLOB data type for storing a picture in oralce 9i database server. I have image type item on my forms (Developer 6i). I am using following code to add picture to my image item.
    READ_IMAGE_FILE('mypicture.bmp','bmp','CAMPUS_PICTURE.PHOTO_PIC');
    Data is successfully saved in database. But when I retrieve the data, picture is not displayed. Similarly image gives error on reports.
    Same data type is working perfectly with oracle 8i and developer 6i.
    Can any one tell me the reason and how to save picture in database using BLOB?
    Regards
    Vijay.

    Hi,
    You need to use SQL*Net to communicate between the 8.0.6 home (used for Developer) and the 8.1.7 home used by the database. Make sure the TNS listener is started for the database and use the SQL*Net alias (don't leave the Database field blank) when connecting using Developer.
    Regards.
    Robert.
    I have successfully installed Oracle 8i enterprize edition 8.1.7.0.0 on Windows 2000 professional and it is working fine.
    But
    When I have installed Developer 6i, The Developer 6i is not communicating with the 8i database. What wrong am i doing.
    I have installed developer 6i on different oracle home as advised by my friend, and some other stuff also as exporting the registry key of oracle in hkey local machine and after installing developer 6i importing the exported registry key, But By all doing this I am still not able to connect to oracle 8i database,
    What i'm doing wrong.
    If any one knows the problem Please send a reply.
    Thanks in advance

Maybe you are looking for

  • Hp officejet pro 8000 a809 installed locally on vista business with driver 8.12.2008cant share to xp

    My customer has a HP Officejet Pro 8000 A809 installed locally on Vista Business with driver 8.12.2008 He wants to share this for use on the XP PC but after installation on XP and trying to go into printer properties the message comes up "The HP Off

  • Order of execution in Function Main

    I have two separate transfers in one mapping, which results in creation of two separate load functions when I generate the mapping. The function calls in function Main are in arbitrary order but I want to control in what order the functions are calle

  • Iphoto updating images from Mac to iPad

    Hi When I have edited photos on my mac in iPhoto, I then plug in my iPad to sync the new edited photos into the same event, but the updated images that I have edited will not update on the iPad? It used to do this but not anymore, not sure if I have

  • Change in CST form 3% to 2%

    Hi, Our Company has recently go-live with MySAP-ECC-6.0 & TAXINN. The Govt of India changed CST form 3% to 2% recently. I have two options to change the same. a) By Creating New Tax Code -- this is OK with New PO but what to do with existing PO. b) I

  • Services not testing in SICF

    Hi All i have installed Netwever BI 7.0.All the post installtion steps are also completed.The problem is that i whenever a test any service in SICF,it fails.Bex broadcaster is also not working.I think it is related to service issue.Kindly suggest. Sh