Cannot read image file in oracle 10g forms, getting error frm-47100

I'm unable to read the image from the file location. But If I do re-save via MS-Paint the same image then I'm able to load successfully. I want to load image directly instead of re-save.  Error getting like "frm-47100 Cannot read image file".
Need your co-operation to solve this issue.
Thanks in advance!
declare
  tiff_image_dir varchar2(80):=('D:\IMAGE\');
  photo_filename varchar2(80);
begin
  photo_filename:=tiff_image_dir||:IMAGE_NO||'.JPG';
  if :image_no is null then
  :Image_no :=:UID_NO;
  end if;
  read_image_file(photo_filename,'JPG','image');
  WRITE_IMAGE_FILE('output.tif','TIFF','g_image_info.image',maximize_compression,original_depth)
end;

Hi Sindhu,
By default any operating system file extension starts after the dot. So in this case when it says 2 dots it will think there is something wrong.
RajeshALex

Similar Messages

  • Iconic file in oracle 10g forms

    hii,,
    i am a new user in oracle 10g form,,,here i am running a form & placing all the icons in a folder,after that i changed the iconic file path in the default.env file,the path is same where the icons are kept,,but still i am unable to see the icons at the run time,,,,,
    do i need to modify some other file or the icons will be kept at some particaular place????
    plzzzz help.....

    hi
    1 How to Display Iconic Images Using Forms 9.0.x/ 10.x?
    When running an Oracle Forms 9i/10g application the icon files used must be in a web enabled
    format such as JPG or GIF (GIF is the default format) (This is unlike older versions of forms running in client-server mode when the file format is .ico.)
    Icon image files can either be retrieved by Forms as individual files on the filesystem or from a Java Archive (JAR file).
    If an application uses lots of icon images it is recommended that they are stored in a JAR file to reduce the number of HTTP round trips.
    Reference:Note 232413.1 How to Deploy Iconic Images via a JAR File in Forms 9i/10g?
    The example below details steps to configure iconic images as individual gif or jpeg files.
    It is a first approach recommended for initial testing and understanding.
    Example:
    ========
    This document has been written for use with both Windows and UNIX operating systems: Windows will use the "\" character to delimit directories and UNIX uses the "/" character. Any other differences are noted in the document.
    1) Determine the physical location of the icons on your web server. For this example, assume that the icons are stored in D:\Myfiles\icons.
    2) Create the virtual directory in the forms90.conf file that point to the location of your Forms 9i/10g icons. This file is located in:
    $ORACLE_HOME\forms90\server\forms90.conf
    To define a virtual directory forms90/icons, use the following syntax:
    # Virtual path for ICONS (used to show icons in a form ) AliasMatch ^/forms90/icons/(..*) "D:\Myfiles/icons/$1"
    Below is an example of the forms90.conf after it has been modified to include the /forms90/icons virtual directory.
    # Virtual path mapping for Forms Java jar and class files (codebase) AliasMatch ^/forms90/java/(..*) "E:\IASR2\APP/forms90/java/$1" # Virtual path for JInitiator downloadable executable and download page AliasMatch ^/forms90/jinitiator/(..*) "E:\IASR2\APP/jinit/$1" # Virtual path for runform.htm (used to run a form for testing purposes) AliasMatch ^/forms90/html/(..*) "E:\IASR2\APP/tools/web90/html/$1"
    # Virtual path for ICONS (used to show icons in a form ) AliasMatch ^/forms90/icons/(..*) "D:\Myfiles/icons/$1"
    ( For 10g use instead of "forms90" -> "forms")
    3) Direct forms to use the /forms90/icons or /forms/icons virtual directory when running on the web by modifying the Registry.dat file in the $ORACLE_HOME\forms90\java\oracle\forms\registry or $ORACLE_HOME\forms\java\oracle\forms\registry
    directory. Note that for UNIX, both the path name and file name are case sensitive. You must specify "Registry.dat".
    Modify the default.icons.iconpath entry as follows: default.icons.iconpath=http:///forms90/icons/ or default.icons.iconpath=http:///forms/icons/
    If the URL used to bring up forms on the web is: http://abc.oracle.com:7778/forms90/f90servlet or http://abc.oracle.com:7778/forms/frmservlet
    Then the entry required for the Registry.dat will be: default.icons.iconpath=http://abc.oracle.com:7778/forms90/icons or default.icons.iconpath=http://abc.oracle.com:7778/forms/icons default.icons.iconextension=gif
    4) Now use EM Website to: a) Restart the OC4J-BI-Forms Instance b) Restart the BI-FORMS HTTP Server Instance.
    5) Verify that the virtual directory has been defined properly and that the icons can be viewed in a browser.
    Assuming that exeqry.gif exists in the D:\Myfiles\icons directory, the following URL should show the icon:
    http://abc.oracle.com:7778/forms90/icons/exeqry.gif or http://abc.oracle.com:7778/forms/icons/exeqry.gif
    6) Check the form : http://abc.oracle.com:7778/forms90/f90servlet?form=D:\Testcases\F90\ICON_CHECK_IASR2.fmx or http://abc.oracle.com:7778/forms/frmservlet?form=D:\Testcases\F10g\ICON_CHECK_IASR2.fmx
    CHECKLISTS
    =============
    Icons do not appear in the browser using the URL:
    o Verify that you are using the correct machine name and port for the OC4J_BI_Forms object.
    o Check the virtual directory name to make sure that there are no typographical errors. o Check for typographical errors in the forms90.conf or forms.
    conf for the virtual directory. o Check the name of the icon on the file system. If the file is saved as Exeqry.gif, then it will not be found using the URL http://abc.oracle.com:7778/forms90/ Close all your browser sessions and open a new browser window.
    Execute the URL to bring up from the Form Builder runtime or from the browser.
    ( For 10G use "forms" instead of "forms90")USEFUL REFERENCES:==================
    [PDF] Oracle9iAS Forms Services Deployment Guide (P/N B10170-01)Configuring Oracle9iAS Forms Services ->
    Deploying Icons and Images Used by Oracle9iAS Forms Services http://otn.oracle.com/products/forms/pdf/B10170_01.pdf
    [PDF] Oracle9iForms Services - How to Deploy Iconshttp://otn.oracle.com/products/forms/pdf/webicons.pdf
    sarah

  • Creating trace file in oracle 10g forms

    hii there,
    I have developed an application in oracle 10g. but it's too slow . Now i have to trace forms . How can trace oracle forms.
    please send it in details as early as possible. I don't know about this trace file generation.
    -----Sachin

    Hi,
    To run SQL trace for a form :
    a. Get to the point in the form where you want to turn trace on.
    For example, if the problem occurs on the commit, wait until you are
    ready to commit, THEN turn trace on.
    b. Turn tracing on. In GUI versions: Help - Tools - Trace, enable tracing.
    c. Execute the steps you want to trace.
    d. Turn tracing off. In GUI versions: Help - Tools - Trace, disable tracing.
    The trace file will be written to the subdirectory specified in the
    'user_dump_dest' parameter in the INIT.ORA file.

  • Cannot redploy WAR files on Oracle 10g Application Server 9.0.4

    Hello,
    I may be missing something obvious, but how do I redploy .WAR files using the 10g Enterprise Manager? It has an option to Deploy WAR files, but not Redeploy them.
    If this is not possible, could someone tell me how to create an EAR file manually from the command line, or point to a URL with some instructions? I do not always have access to a GUI when creating the .WAR files, so I cannot use JDeveloper nor X-WIndow based UNIX applications.
    Thanks for any advice you can offer.

    Just use the same "Deploy" option. If there is a previous deployment, It will be automatically removed. In another word, the "Deploy" option is also the "Redeploy" option. Isn't it simple? The same can be said with an EAR file.

  • Reading XML File in Oracle 10g

    Can anybody tell me How to Read an XML file into Oracle Table and update the Records.
    Please guide me.

    http://www.oracle.com/technology/sample_code/tech/java/codesnippet/xmldb/HowToLoadLargeXML.html
    or else straighter way, go here:
    XML DB
    Edited by: Ora on Feb 16, 2011 1:32 AM

  • Not able to merge files in oracle 10g forms using webutil

    Hi,
    i ahve developed an application in oracle forms 10g in which i am generating xls file by report and saving on server. now i want to merge header file to file generated by reports and save on server and then trasfer it to client using webutil. but i am not able to do so. please help
    ---sachin

    do you have a solution for merging the headers ?
    for example a batch file, which does the work?
    then run this batch from forms with webutil on your client.

  • Routine FDPREP cannot read the file e:\oracle\testappl\per\11.5.0\reports\

    Dear all
    I am trying to make XMLP report. When I try to run the request it gives me this error,
    Any help on this...

    Hi,
    Hi there is no APXAECTR.rdf in the directory, how can i download or install this in my server?I believe I have explained this in my previous reply.
    If you have a backup or any other identical instance, just restore/copy the file.
    If this is the only instance you have, run adadmin and generate the report (select "Generate reports files" option from adadmin).
    For details about adadmin, please refer to:
    Oracle Applications Maintenance Procedures
    http://download.oracle.com/docs/cd/B53825_03/current/acrobat/121admp.pdf
    Thanks,
    Hussein

  • Display Images using READ_IMAGE_FILE in 10g forms

    Hello all, i have a simple question that I'm trying to resolve really quick.
    I've created a field on a form in 10g forms that is of IMAGE type. I've given it a name and has given it a FILE_TYPE of GIF.
    I've put some code in a POST-QUERY trigger of a block that calls the READ_IMAGE_FILE command, where I enter the filename, file_type, and block.item name. When I leave the path off the image name, forms runtime acts like it cannot find it. I get an FRM message displayed at runtime that says it "Cannot read image file". However, if I put the full path (like something pointing to a hard-coded directory on my C drive where the image file resides), the image displays fine at runtime.
    I added the images to my JAR file where I have other images stored so they get opened at runtime under the ORACLE_HOME/forms/java directory. I was thinking that when I gave the filename, runtime would know to pull it out of there. But obviously, that's not what is happening.
    Has anyone got ideas on what I could do to get the READ_IMAGE_FILE to display the image without hard-coding a path in?
    Any help is appreciated!
    Regards,
    Chris

    Here are some things to check:
    1) Alll the images in the JAR file should have the same extension
    2) In formsweb.cfg, include the JAR file in the ARCHIVE parameter and set imageBase=codebase
    3) In registry.dat, leave iconpath blank and set iconextension=gif
    4) In your READ_IMAGE_FILE call, use URL as the file type and don't use the extension on the file name. So if the image in your JAR is my_picture.gif, it would be something like READ_IMAGE_FILE('my_picture','URL','myblock.my_image_item');
    If it still doesn't work, enable the Java console and when it comes up, enter the number 5 in the console to enable the highest level of logging. Then have a look at the console to see if the JAR is getting downloaded and where it's attempting to read the image from.

  • Read Image File Error

    When I read image with Read_Image_File procedure i got an error in specified files 'FRM-47100 can not read image c:\abc.jpg'
    i think it is on high resolution please promply resolve it. its very urgent
    best regards
    R E H AN M I R Z A

    Hello,
    Found this on Metalink:
    Problem Description
    You are trying to use READ_IMAGE_FILE in forms to read a JPG image,
    but you receive the following error:
    FRM-47100: Cannot read image file <file name>
    You checked the following:
    o You are able to open the image file from Netscape or Internet Explorer and
    see your image correctly.
    o You are also sure that the file exists under the location mentioned in the
    first parameter to READ_IMAGE_FILE built-in.
    o You tried other JPG files that are located in the demo directory of the
    Developer home and you can see the image loaded in the image item.
    Solution Description
    There are many JPEG formats. The only JPEG format supported in Forms is the
    JPEG File Interchange Format (JFIF) which is the baseline sequential DCT JPEG.
    Progressive JPEG (as well as Lossless JPEG and Hierarchical JPEG),
    are not currently supported.
    Possibly your image file is stored using one of the non-supported formats.
    As a workaround, you can convert progressive JPEG format to and from baseline
    JPEG. There is a free set of programs provided by the Independent JPEG Group
    that allows this.
    The Independent JPEG Group home page is: http://www.ijg.org/
    Francois

  • Routine FDPREP cannot read the file APXAECTR.rep

    When i tried to generate report from AP, i found this error
    Routine FDPREP cannot read the file /d01/oracle/SVIPROD/apps/apps_st/appl/ap/12.0.0/reports/US/APXAECTR.rep.
    as i checked the specified directory, the file was not there.
    Where to get the file?
    Please advise
    Thanks

    Hi,
    Hi there is no APXAECTR.rdf in the directory, how can i download or install this in my server?I believe I have explained this in my previous reply.
    If you have a backup or any other identical instance, just restore/copy the file.
    If this is the only instance you have, run adadmin and generate the report (select "Generate reports files" option from adadmin).
    For details about adadmin, please refer to:
    Oracle Applications Maintenance Procedures
    http://download.oracle.com/docs/cd/B53825_03/current/acrobat/121admp.pdf
    Thanks,
    Hussein

  • 41810-error creating the menu,cannot read the file

    While creating the menu i am getting the following error
    "41810-error creating the menu,cannot read the file".PLease help to rectify this error.

    It is probably attached to the Forms module (see the library node in the navigator window).
    In a general way, try to know where are youe design modules (*.pll, *.mmb, *.fmb), look at the FORMS_PATH variable to see what directories are part of this environment variable, compile every design time module to get the executable versions *.plx, *.mmx and *.fmx, then put these executable files in one of the directories pointed by the FORMS_PATH variable.
    Francois

  • How to run a report from oracle 10g form in .csv format

    dear all,
    how to run a report from oracle 10g form in .csv format? i've already run in pdf & excel format.
    i'm using
    SET_REPORT_OBJECT_PROPERTY (ro_report_id, report_desformat, 'PDF'); --for pdf
    SET_REPORT_OBJECT_PROPERTY (ro_report_id, report_desformat, 'SPREADSHEET'); ---for excel
    Please Help..

    i have already tried.
    but the report show in htm or html format. that file will not save into csv. please help.

  • How to insert a image file into oracle database

    hi all
    can anyone guide me how to insert a image file into oracle database now
    i have created table using
    create table imagestore(image blob);
    but when inserting i totally lost don't know what to do how to write query to insert image file

    Hi I don't have time to explain really, I did have to do this a while ago though so I will post a code snippet. This is using the commons file upload framework.
    Firstly you need a multi part form data (if you are using a web page). If you are not using a web page ignore this bit.
    out.println("<form name=\"imgFrm\" method=\"post\" enctype=\"multipart/form-data\" action=\"FileUploadServlet?thisPageAction=reloaded\" onSubmit=\"return submitForm();\"><input type=\"FILE\" name=\"imgSource\" size='60' class='smalltext' onKeyPress='return stopUserInput();' onKeyUp='stopUserInput();' onKeyDown='stopUserInput();' onMouseDown='noMouseDown(event);'>");
    out.println("   <input type='submit' name='submit' value='Submit' class='smalltext'>");
    out.println("</form>"); Import this once you have the jar file:
    import org.apache.commons.fileupload.*;Now a method I wrote to upload the file. I am not saying that this is correct, or its the best way to do this. I am just saying it works for me.
    private boolean uploadFile(HttpServletRequest request, HttpSession session) throws Exception {
            boolean result = true;
            String fileName = null;
            byte fileData[] = null;
            String fileUploadError = null;
            String imageType = "";
            String error = "";
            DiskFileUpload fb = new DiskFileUpload();
            List fileItems = fb.parseRequest(request);
            Iterator it = fileItems.iterator();
            while(it.hasNext()){
                FileItem fileItem = (FileItem)it.next();
                if (!fileItem.isFormField()) {
                    fileName = fileItem.getName();
                    fileData = fileItem.get();
                    // Get the imageType from the filename extension
                    if (fileName != null) {
                        int dotPos = fileName.indexOf('.');
                        if (dotPos >= 0 && dotPos != fileName.length()-1) {
                            imageType = fileName.substring(dotPos+1).toLowerCase();
                            if (imageType.equals("jpg")) {
                                imageType = "jpeg";
            String filePath = request.getParameter("FILE_PATH");
            session.setAttribute("filePath", filePath);
            session.setAttribute("fileData", fileData);
            session.setAttribute("fileName", fileName);
            session.setAttribute("imageType", imageType);
            return result;  
         } And now finally the method to actually write the file to the database:
    private int writeImageFile(byte[] fileData, String fileName, String imageType, String mode, Integer signatureIDIn, HttpServletRequest request) throws Exception {
            //If the previous code found a file that can be uploaded then
            //save it into the database via a pstmt
            String sql = "";
            UtilDBquery udbq = getUser(request).connectToDatabase();
            Connection con = null;
            int signatureID = 0;
            PreparedStatement pstmt = null;
            try {
                udbq.setUsePreparedStatements(true);
                con = udbq.getPooledConnection();
                con.setAutoCommit(false);
                if((!mode.equals("U")) || (mode.equals("U") && signatureIDIn == 0)) {
                    sql = "SELECT SEQ_SIGNATURE_ID.nextval FROM DUAL";
                    pstmt = con.prepareStatement(sql);
                    ResultSet rs = pstmt.executeQuery();
                    while(rs.next()) {
                       signatureID = rs.getInt(1);
                    if (fileName != null && imageType != null) {
                        sql = "INSERT INTO T_SIGNATURE (SIGNATURE_ID, SIGNATURE) values (?,?)";
                        InputStream is2 = new ByteArrayInputStream(fileData);
                        pstmt = con.prepareStatement(sql);
                        pstmt.setInt(1, signatureID);
                        pstmt.setBinaryStream(2, is2, (int)(fileData.length));
                        pstmt.executeUpdate();
                        pstmt.close();
                        con.commit();
                        con = null;
                if(mode.equals("U") && signatureIDIn != 0) {
                    signatureID = signatureIDIn.intValue();
                    if (fileName != null && imageType != null) {
                        sql = "UPDATE T_SIGNATURE SET SIGNATURE = ? WHERE SIGNATURE_ID = ?";
                        InputStream is2 = new ByteArrayInputStream(fileData);
                        pstmt = con.prepareStatement(sql);
                        pstmt.setBinaryStream(1, is2, (int)(fileData.length));
                        pstmt.setInt(2, signatureID);
                        pstmt.executeUpdate();
                        pstmt.close();
                        con.commit();
                        con = null;
            } catch (Exception e) {
                con = null;
                throw new Exception(e.toString());
            return signatureID;
       }

  • Problem with Pro*C reading BLOB field from Oracle 10g

    Hello Experts,
    We have a Pro*c application which is reading the BLOB data fields (a PNG image file) from Oracle data base. It holds the BLOB fields returned from the SQL query into a Unsigned Char structure in Pro*C. The program used work fine on AIX 32 – bit 4.3 and Oracle 8.1 environment.
    Recently, we have upgraded the environment to AIX 64-bit 5.3 and Oracle 10g.Since after the Pro*c program has problem in reading the Blob filed.
    Below is the query we are trying to execute –
    EXEC SQL
    SELECT
    signtre_image, image_file_name_ext
    INTO
    :msipLocalImage INDICATOR :msipLocalImage_i,
    :file_name_ext INDICATOR :file_name_ext_i
    FROM
    dcs_sign
    WHERE
    signtre_nbr = :signtre_nbr;
    Here signtre_image is the BLOB fields and msipLocalImage is a Pro*C structure define as below –
    typedef struct tagSignImage
    long len; /* Image length */
    unsigned char img[1]; /* Pointer to first byte. */
    } MOTS_SIGN_IMAGE;
    The quesry does not give any error or exception message in the Pro*C , program just stops at the point of executing the quesry..When we run the query commenting the BLOB filed it works fine. Also, the query runs good when we run it in the Oracle editor.
    There seems to be problem with the way we are reading the BLOB field in the new Oracle 10g enviromet.
    Does any body have any idea what’s wrong with this query? We really need it to work.
    Any Help will be greatly appreciated.
    Thanks,
    - Rajan Yadav

    Thanks a ton for your response.
    We made the necessary changes as suggested by you.This time we got another flavour of error - SQL Error Code - Inconsistent error while reading BLOB.
    Another thing we noticed is that the data field which we are trying to read is defined as LONG RAW instead of a BLOB in data base.
    Are these two things related in any sense or is there anything else which is causing the error.
    Once again Thanks for your help.
    - Rajan Yadav

  • TEXT.IO in Oracle 10g Forms

    Is TEXT.IO function applicable to Oracle 10g Forms? Is there any other way to upload text files to a database table using Oracle 10g Forms? the procedure is that the user should be able to select text file from his station and upload the contents to a table.
    Thanks in advance.

    WebUtil comes preinstalled with Forms 10g R2, but you will need to perform some configuration changes to enable webutil. Check out the Oracle Forms Webuitil - Production Release and follow the configuration steps in the Webutil Doc. It shouldn't take more than about 15-30 minutes to configure. Hint: Don't take any shortcuts in the the configuation steps. If you follow the steps exactly everything should work just fine.
    Hope this helps,
    Craig B-)
    If someone's response is helpful or correct, please mark it accordingly.

Maybe you are looking for

  • Filter Warning

    Hello,       I am performing modal analysis using a impact hammer, USB NI 9233 cRIO DAQ and Sound and Vibration assistant. The steps have been set in Signal express as DAQ Acquire =>Trigger=>Filter=> Power spectrum => FRF => Save to Ascii.     I am f

  • Both FaceTime and iMessage is not working on my Macbook Air

    My facetime and imessage both randomly stopped working last week.  I upgraded to Mavericks a few weeks ago but have only been having an issue for around a week.  I have found that they do work if I log into my guest account, but they do not work on m

  • Why can't I download Adobe reader onto my MacBook Pro?!!

    I have tried to follow the help section to download adobe reader but it just won't work - what do I need to do?

  • Lumia 920 voip setting

    can i use a voip account from braintel on my nokia 920

  • How can I select which channel the wireless card on the Macbook Pro uses?

    Hi, I have a MacBook Pro which must be 5-6 years old running OS ver10.5.8 with the following wireless card details..   Wireless Card Type:          AirPort Extreme  (0x168C, 0x86)   Wireless Card Locale:          Worldwide   Wireless Card Firmware Ve