READ_IMAGE_FILE in Oracle Forms6.0, Code added

Hi,
I have two tif files one is compressed in Lempel-Ziv and another is not. Now READ_IMAGE_FILE does not read the image compresses in Lempel-Ziv file but does read the other tiff files. Also the size of the tiff file with Lempel-Ziv compression greater than 1084KB while the others are 60 to 65 KB.
The operating system being used is Windows2000.
When Button Pressed has the following code
DECLARE
a NUMBER;
b VARCHAR2(2000);
filename VARCHAR2(256);
v_dirname varchar2(255);
v_filename varchar2(255);
BEGIN
     GO_BLOCK('CONTROL');
     GO_BLOCK('SCANNED_IMAGES');
a := Imaging_DImgScan.OpenScanner(:item('CONTROL.ocx').interface);
a := Imaging_DImgScan.ResetScanner(:item('CONTROL.ocx').interface);
a := Imaging_DImgScan.StartScan(:item('CONTROL.ocx').interface);
b := Imaging_DImgScan.DestimageControl(:item('CONTROL.ocx').interface);
Imaging_DImgScan.DestimageControl(:item('CONTROL.ocx').interface,b);
a := Imaging_DImgScan.CloseScanner(:item('CONTROL.ocx').interface);
GO_BLOCK('SCANNED_IMAGES');
:SYSTEM.MESSAGE_LEVEL := 25;
--filename := GET_FILE_NAME(FILE_FILTER='TIFF');
v_dirname := 'C:\';
v_filename := get_file_name(v_dirname,NULL,'tiff files(*.tif)|*.tif|');
IF v_filename is not null THEN
read_image_file(v_filename,'ANY', 'SCANNED_IMAGES.IMAGE_DATA');
end if;
:global.pagecount := '1';
IF NOT FORM_SUCCESS THEN
--a := Imaging_DImgScan.CloseScanner(:item('CONTROL.ocx').interface);
message(' There was a scanning error. ');
message(' There was a scanning error. ');
:SYSTEM.MESSAGE_LEVEL := 0;
RETURN;
END IF;
:SYSTEM.MESSAGE_LEVEL := 0;
IF :SCANNED_DOCUMENTS.zoom_amount IS NOT NULL THEN
Image_Zoom('SCANNED_IMAGES.image_data', ZOOM_PERCENT, :scanned_documents.zoom_amount);
END IF;
:scanned_images.page_count := to_number(:GLOBAL.PAGECOUNT);
:scanned_images.description := 1;
:scanned_images.page_number := 1;
EXCEPTION
     WHEN OTHERS THEN
a := Imaging_DImgScan.CloseScanner(:item('CONTROL.ocx').interface);
message(' Scanner Not Available ');
message(' Scanner Not Available ');
END;
Can anybody help?
Thanks

Sorry, I have no clue as to that might cause this.
but maybe this will help others understanding your code:
declare
   a                                            number;
   b                                            varchar2( 2000 );
   filename                                     varchar2( 256 );
   v_dirname                                    varchar2( 255 );
   v_filename                                   varchar2( 255 );
begin
   go_block( 'CONTROL' );
   go_block( 'SCANNED_IMAGES' );
   a := Imaging_DImgScan.OpenScanner(:item('CONTROL.ocx').interface);
   a := Imaging_DImgScan.ResetScanner(:item('CONTROL.ocx').interface);
   a := Imaging_DImgScan.StartScan(:item('CONTROL.ocx').interface);
   b := Imaging_DImgScan.DestimageControl(:item('CONTROL.ocx').interface);
   Imaging_DImgScan.DestimageControl(:item('CONTROL.ocx').interface,b);
   a := Imaging_DImgScan.CloseScanner(:item('CONTROL.ocx').interface);
   GO_BLOCK('SCANNED_IMAGES');
   :SYSTEM.MESSAGE_LEVEL := 25;
   --filename := GET_FILE_NAME(FILE_FILTER='TIFF');
   v_dirname := 'C:\';
   v_filename := get_file_name(
                   v_dirname
                 , null
                 , 'tiff files(*.tif)|*.tif|' );
   if v_filename is not null
   then
      read_image_file(
         v_filename
       , 'ANY'
       , 'SCANNED_IMAGES.IMAGE_DATA' );
   end if;
   :global.pagecount := '1';
   if not form_success
   then
      --a := Imaging_DImgScan.CloseScanner(:item('CONTROL.ocx').interface);
      message( ' There was a scanning error. ' );
      message( ' There was a scanning error. ' );
      :system.message_level := 0;
      return;
   end if;
   :system.message_level := 0;
   if :scanned_documents.zoom_amount is not null
   then
      image_zoom(
         'SCANNED_IMAGES.image_data'
       , zoom_percent
       , :scanned_documents.zoom_amount );
   end if;
   :scanned_images.page_count := to_number( :global.pagecount );
   :scanned_images.description := 1;
   :scanned_images.page_number := 1;
exception
   when others
   then
      a := Imaging_DImgScan.CloseScanner(:item('CONTROL.ocx').interface);
      message( ' Scanner Not Available ' );
      message( ' Scanner Not Available ' );
end;good luck!
Message was edited by:
Remco Goris

Similar Messages

  • Oracle Forms6i Query Performance issue - Urgent

    Hi All,
    I'm using oracle forms6i and Oracle DB 9i.
    I'm facing the performance issue in query forms.
    In detail block form taking long time to load the data.
    Form contains 2 non data blocks
    1.HDR - 3 input parameters
    2.DETAILS - Grid - Details
    HDR input fields
    1.Company Code
    2.Company ACccount No
    3.Customer Name
    Details Grid is displayed the details.
    Here there are 2 tables involved
    1.Table1 - 1 crore records
    2.Table2 - 4 crore records
    In form procedure one cursor bulid and fetch is done directly and assign the values to form block fields.
    Below i've pasted the query
    SELECT
    t1.entry_dt,
    t2.authoriser_code,
    t1.company_code,
    t1.company_ac_no
    initcap(t1.customer_name) cust_name,
    t2.agreement_no
    t1.customer_id
    FROM
    table1 t1,
    table2 t2
    WHERE
    (t2.trans_no = t1.trans_no or t2.temp_trans_no = t1.trans_no)
    AND t1.company_code = nvl(:hdr.l_company_code,t1.company_code)
    AND t1.company_ac_no = nvl(:hdr.l_company_ac_no,t1.company_ac_no)
    AND lower(t1.customer_name) LIKE lower(nvl('%'||:hdr.l_customer_name||'%' ,t1.customer_name))
    GROUP BY
    t2.authoriser_code,
    t1.company_code,
    t1.company_ac_no,
    t1.customer_name,
    t2.agreement_no,
    t1.customer_id;
    Where Clause Analysis
    1.Condition 1 OR operator (In table2 two different columbs are compared with one column in table)
    2.Like Operator
    3.All the columns has index but not used properly always full table scan
    4.NVL chk
    5.If i run the qry in backend means coming little fast,front end very slow
    Input Parameter - Query retrival data - limit
    Only compnay code means record count will be 50 - 500 records -
    Only compnay code and comp ac number means record count will be 1-5
    Only compnay code,omp ac number and customer name means record count will be 1 - 5 records
    I have tried following ways
    1.Split the query using UNIOIN (OR clause seaparted) - Nested loops COST 850 , Nested loops COST 750 - index by row id - cost is 160 ,index by row id - cost is 152 full table access.................................
    2.Dynamic SQL build - 'DBMS_SQL.DEFINE COLUMN .....
    3.Given onlu one input parameter - Nested loops COST 780 , Nested loops COST 780 - index by row id - cost is 148 ,index by row id - cost is 152 full table access.................................
    Still im facing the same issue.
    Please help me out on this.
    Thanks and Regards,
    Oracle1001

    Sudhakar P wrote:
    the below query its take more than one minute while updating the records through pro*c.
    Execute 562238 161.03 174.15 7 3932677 2274833 562238Hi Sudhakar,
    If the database is capable of executing 562,238 update statements in one minute, then that's pretty good, don't you think.
    Your real problem is in the application code which probably looks something like this in pseudocode:
    for i in (some set containing 562,238 rows)
    loop
      <your update statement with all the bind variables>
    end loop;If you transform your code to do a single update statement, you'll gain a lot of seconds.
    Regards,
    Rob.

  • Java bean from oracle Forms6i

    Hi Guys,
    I am calling java bean from oracle Forms6i (implementation
    class property set to bean class). This java bean in turn
    calling some JNI methods written in C. The application server
    (Forms6i) is hanging at the point of calling the JNI method.
    Is oracle Forms6i supports all java functionality (JNI here)
    and if so how to solve the problem ?
    Any pointers or tips in this regard is highly appreciated ?
    Thanks & Regards
    Chandra Mohan

    To call Java from forms:
    look at the technical documents on Java integration at
    http://otn.oracle.com/products/forms
    and also look at the Javabeans and PJC samples in the sample
    code section of Forms on OTN.
    Creating a random number using a java class is an excelent
    example of how to use Java with forms.

  • IS Yahoo Messenger applicable with Oracle Forms6i?

    Hi guys,
    Im doing a project regarding the Job Request module using Orcle forms6i. This module will be using by a lot of users per Departments and i want every transactions..every job request entered would be well monitored between me and my users. Im planning to use the Yahoo Messenger to be part of it. I want every transactions posted or approved would be monitor through this Yahoo Messenger. Theres a message coming from this yahoo messenger "that certain transactions was Approved by a USER". Is this possible to use the Yahoo Messenger with Oracle Forms6i?
    Thank you.
    Lala

    I know there is a 'Oracle XMPP/Jabber Instant Messenger' available for the Oracle database on sourceforge.net. You can then sent message from the database to i.e. a google talk client.
    And I also added a pluggable java component inside Oracle Forms 10gR2. [http://www.screentoaster.com/watch/stUEJUR0NIR1pbR19bWlpYU1dS/chat_bean_inside_oracle_forms|http://www.screentoaster.com/watch/stUEJUR0NIR1pbR19bWlpYU1dS/chat_bean_inside_oracle_forms]but I don't know if it can be added to Forms 6i.
    Please mark if it helps.

  • Oracle bi error codes u9kp7q94 OBIEE 10g

    Hi All,
    I have created new user in RPD(Online Mode).
    Then i have loged into Answer.It throws error
    "oracle bi error codes u9kp7q94 OBIEE 10g"
    How to fix.
    Thanks
    Gram

    Raj wrote:
    Hi All,
    I have created new user in RPD(Online Mode).
    Then i have loged into Answer.It throws error
    "oracle bi error codes u9kp7q94 OBIEE 10g"
    How to fix.
    Thanks
    GramAre you getting this error on the login screen? or when you are opening a report?

  • Running Oracle 9i client code against an Oracle 10g install on PC

    On Unix I am able to run Oracle 9i client code against an Oracle 10g install by setting ORACLE_HOME to the Oracle 10g install location and then creating a symbolic link (example: ln -fs libclntsh.so.10.1 libclntsh.so.9.0).
    On PC (in particular XP SP2) I want to do something similar without using "junctions" or "junction points". Is there a way to set an environment variable or ini file to have my 9i client code point to the right libraries? I keep getting an error saying that my client code will not run due to "orasql9.dll" not being found. The "orasql10.dll" is installed on my machine.
    Any assistance would be appreciated.

    You might want to check metalink doc,
    Client / Server / Interoperability Support Between Different Oracle Versions
    Doc ID: Note:207303.1
    Even your application built on 9i, doesn't mean it will not work with 10g database. From what I can see, running 9i executable under 10g installation to create mixed blood breed will do more harm than good. Not only it's not supported but also the outcome is unpredictable.

  • How to create menus in oracle forms6i?

    hello all,
    I want to create menu option in oracle forms6i..Is it possible? then how to create menus in a frame? pls help me..
    USER MANAGEMENT-------------->this is main menu.under this i want following
    --------->1.ADD USER
    ---------->2.EDIT USER
    ----------->3.DROP USER

    Hi Balraj
    Try to read this & implement it
    http://dbaforums.org/oracle/index.php?showtopic=2031
    u have also menu FREE sample as Demo Forms6i pls down load
    http://www.oracle.com/technology/sample_code/products/forms/6idemos.html
    Or download it directly as in this Thread Francois posted Directly...
    Forms6 : default menus menudef.mmb and menudefs.mmb
    Regards,
    Abdetu...
    Edited by: Abdetu on Jan 23, 2011 11:31 PM

  • Oracle error message code 1401 op 4, ORA-01401: inserted value too large fo

    Hi All
    I got this error when I try to run convert tables on our application server. Anyone know why? I am using Oracle 9i
    Here is the error message:
    Checking Table WORK_INSTRUCTION
    Table not in database
    Conversion Method - Create Table
    Creating Table WORK_INSTRUCTION
    Unable to create database table 'WORK_INSTRUCTION'
    Oracle error message code 1401 op 4, ORA-01401: inserted value too large for column
    WORK_INSTRUCTION definition as followings:
    table work_instruction;
    field identity
         used_for unique_key
         datatype identity;
    { APR 31/3/03 - Bug Nr WI4}
    field wi_admin
    {         links_to personnel . identity;}
    {         links_to location . identity;}
         links_to lab_section . identity;
    { ARP 31/3/03 - Bug Nr WI5 }
    field wi_title
    {         datatype text(20);   }
         datatype text(100);
    field version
              datatype text ( 4 );
    field wi_status
         datatype identity
         prompt_type choose
         choose_type WI_STATUS
         default 'I ' ;
    field wi_type
         datatype identity
         prompt_type choose
         choose_type WI_TYPE
         default '0 ';
    field sterlab_status
         datatype identity
         prompt_type choose
         choose_type STER_STAT
         default '0 ';
    field used_in_lims
         datatype boolean
         true_word 'Yes'
         false_word 'No'
         default 'No' ;
    { ARP WI16 28/5/03 - Extend from 10 to 45 }
    field method
         datatype text(45);
    field ref_method
         datatype text(100);
    field delegate
         links_to personnel . identity;
    field date_expire
         datatype date;
    field date_draft
         datatype date;
    field double_method
         datatype boolean
         true_word 'Yes'
         false_word 'No'
         default 'No' ;
    field technique
         datatype identity
         prompt_type choose
         choose_type TECHNIQUE
         default '0 ';
    field date_distribute
         datatype date;
    field report_date
         datatype date;
    field group_autho
         datatype text ( 16 );
    field astm_volume
         datatype text ( 6 );
    field date_non_active
         datatype date;
    field translated_in
         datatype text(10);
    { ARP WI16 28/5/03 - Extend from 60 to 2000 }
    field comments
         datatype text(2000);
    field doc_path
         datatype text ( 300 )
         prompt_type user_defined
         library 'TEST_SOP_FILE'
         routine 'file_browse';
    field modified_on
         datatype date
         used_for modified_on ;
    field modified_by
         links_to personnel.identity
         used_for modified_by;
    field modifiable
         datatype boolean
         used_for modifiable;
    field removeflag datatype boolean
         used_for remove_flag;
    { MOD TDR - 10/04/03 - Link to livelink document }
    field livelink_url
    datatype text ( 300 ) ;
    Thanks
    Li

    Verbatim from the manual:
    ORA-01401:     inserted value too large for column
    Cause:     The value entered is larger than the maximum width defined for the column.
    Action:     Enter a value smaller than the column width or use the MODIFY option with ALTER TABLE to expand the column width.You should find which value is bein attempted to be inserted into a column with a capacity shorter than the value length.
    ~ Madrid.

  • Oracle error message code 1653 op 4, ORA-01653: unable to extend table

    Hi
    Our application use Oracle 9i as database. I modified one of tables and try to convert it from this application, then I got an Oralce 1653 error as followings:
    Creating Table SAMPLE_T
    Copying data from SAMPLE to SAMPLE_T
    Unable to move data from table 'SAMPLE' to table 'SAMPLE_T'
    Oracle error message code 1653 op 4, ORA-01653: unable to extend table SAND.SAMPLE_T by 1024 in tablespace SAMPLE_RESULT
    I suspect the tablespace SAMPLE_RESULT is not big enough and also can not extended automatically, but not sure if it is right or there maybe other reasons behind this error.
    Any idea?
    Thanks
    Li

    Lets try .....
    SQL> select tablespace_name,sum(bytes)/1024 from dba_free_space where tablespace_name='USERS' group by tablespace_name;
    TABLESPACE_NAME                SUM(BYTES)/1024
    USERS                                      384
    SQL> alter database datafile 'C:\ORACLE\ORADATA\MYDB\USERS01.DBF' autoextend off;
    SQL> alter table scott.emp allocate extent;
    Table altered.
    SQL> /
    alter table scott.emp allocate extent
    ERROR at line 1:
    ORA-01653: unable to extend table SCOTT.EMP by 128 in tablespace USERSI believe you must add more space to tablespace SAMPLE_RESULT or set the autoextend on for associated datafiles.
    Hope it help ..
    Bhupinder

  • Oracle Forms6i Implementation - help needed

    I have a table structure like below.
    CREATE TABLE test
    test_seq_no NUMBER,               -- Primary key
    test_case_id VARCHAR2 (15) NOT NULL,
    test_dct_seq_no NUMBER (4),
    test_atyp_code VARCHAR2 (6) NOT NULL,
    test_pid NUMBER (8) NOT NULL,
    test_act_text VARCHAR2 (100),
    test_due_date DATE,
    test_assn_date DATE DEFAULT SYSDATE,
    test_assn_user_id VARCHAR2 (30) DEFAULT USER
    TEST_CASE_ID, TEST_DCT_SEQ_NO, TEST_ATYP_CODE and TEST_PID fields are coming from 4 different tables. Users need a screen with two blocks for data entry into this table.
    Upper block will have following fields in a tabular format with maximum of 4 records.
    TEST_ATYP_CODE,      TEST_PID,     TEST_PID_DESC,     FREE_TEXT_FIELD,     DUE_DATE
    And in 2nd block, they have following in tabular format with 10 records.
    TEST_CASE_ID,      TEST_CASE_DESC,      TEST_DCT_SEQ_NO,     TEST_DCT_SEQ_NO_DESC
    They want to assign action type (TEST_ATYP_CODE) to users (TEST_PID) in 1st block and then create multilple CASE entries into 2nd block.
    e.g. If they have 2 records entered in assignment block (first block) and 4 records in 2nd block, it should save 2x4 = 8 records into the table.. meaning all
    values in each record of 1st block are applied to all records in the 2nd block.
    They also want to query on this form and want to re-assign or change the ACTIONS or ASSIGNEES or CASES on multilple records in one go.
    How can I do this in Oracle Forms6i?
    I am thinking to suggest them to change screen layout to have all table fields in ONE block (since they are from ONE table) and let them set the DEFAULT values in 1st control block which are used for creating 2nd block entries.
    Please suggest any ideas for implementation? Like, how many data blocks, control blocks and how to handle query, inserts etc.
    Thanks!

    Thank you for replying.
    Well, table structure is normalized and even if i further split the table, it can become master-detail but they don't want to save the details for each master. They want to enter multiple masters and multiple details in one go. e.g. if they entered 2 records in master block and 4 records in details, it should save 2x4 = 8 records at once.
    You are right, it can work first time... I can create two blocks. One control block and one DB detail block and for each control record I can save all details and then go to next control record and save all details for it and so on. But how will I keep track if they need to change just one instance of either control or detail.
    Another possibility would be that they select a control record for which they want to enter details and let system populate the control values into detail and they enter rest of details. But this will require more data entry to create details for each control record.
    Any ideas are welcome!

  • Get data AVERY weighing machine  my oracle forms6i

    Hi Friends,
    Any idea to capture data from com port, where attached AVERY weighing machine attached, now is delviering "weight" into Hyperterminal from there im capturing to text file then getting into Oracle forms6i forms. is there any idea to get this directly yto forms without all this..
    thanks in advance

    Didn't you post this message already?? We need to know what interface your machine exposes - is it C, Java, VB?
    Grant Ronald
    Forms Product Management

  • Oracle Forms6i  with Reports10

    Dear all,
    has anybody experiences using Oracle Forms6i together with Reports10?
    Actually we use Forms and Reports6i. But we have to switch to Reports10. Can anyone tell me how I can call the reports now from my Forms Application?
    Actually we start the reports from the application with "'rwrun60...".
    Thanks in advance
    Yvonne

    hello,
    or this article on metalink
    Note:207396.1
    How to Run Reports From Forms 9i / 10g Using RUN_REPORT_OBJECT?
    regards

  • Are Oracle Install Files Code Signed?

    Hi All
    I appreciate that Oracle products can provide a CA service that allows exploitation of X.509 certificate and PKI related services (e.g., code signing), but does Oracle have its own corporate Code Signing CA to sign its own products and applications to ensure and prove that it is valid Oracle software.
    I have been searching for an Oracle CA cert high and low on the Net and can find no evidence. Oracle's secure signing cert seems to be issued from Verisign?
    Does Oracle get its code signing certs from Verisign?
    Keep the faith dudes ;oD
    Kev

    1.2 Gigs of RAM is way more then is required, so you shouldn't really be running out of RAM. What is the available RAM (Task Manager), before the install starts? Is anything else running?
    If you need to get this done in a hurry, then you should contact either Oracle or Compaq support about this. Either could help faster then waiting for someone who had the same problem respond to your post.
    Like I said, I'm a UNIX guy so I can't really help further.

  • Oracle forms6i tutorials

    Hi There,
    I am new to this forum.You guys do a wonderful job here. Wanted to know if there are any tutorials for learning Oracle forms6i(I mean online tutorials/manuals).I am new to Oracle forms.
    Any help appreciated,
    Thanks,
    Nisha

    Karthik Perumal wrote:
    Hi All,
    Can you suggest some websites for Oracle 10G tutorials?
    Thanks and Regards,
    Karthik Perumalhttp://www.lmgtfy.com/?q=Oracle+10G+tutorials

  • Oracle Database Vendor Code 1427

    HI, I'm not sure if this question should go here or in the Connectivity forum, but from what I can see, it is caused by a report issue.
    I am getting an error stating "Failed to retrieve data from the database. Details: [Database Vendor Code: 1427 ]" I have also seen an error box stating "Single row sub-query returned multiple rows"
    These reports were all working properly, but suddenly stopped and returned this error. Does anyone have any idea what the problem is?
    Sorry for not being able to provide more info, but I am trying to work remotely.
    Thanks,
    Aaron

    I don't use Oracle so I'm not too familiar with the error codes but from the description you provided... It sounds like you have a sub-query in your select list that's returning more than a single record.
    Are you using a SQL Command to pull the data set or have you placed a select query in a SQL Expression field?
    If I'm correct, simply adding a MIN or MAX function to the sub-query (so that it can only return a single row) should do the trick.
    HTH,
    Jason

Maybe you are looking for

  • Problem with checkbox column in ALV popup (ABAP)

    Hi, the problem is: I've created the code below for maintaining a popup with an ALV table inside. One of the column is a checkbox field. When I run first time the popup, it run well, when I clode the popup window and then I run for second time the po

  • All of my music disappeared after downloading 2 songs from ITunes. Now my library is empty on my IPhone except for those 2.

    All of my music on the library disapperead when I downloaded the free Justin Timberlake album from the 12 days app today. I normally use our family's Apple ID because thats where we have the credit card info to purchase stuff. There was an error toda

  • Errors in PO_INTERFACE_ERRORS table

    Good Morning, I normally monitor the PO_INTERFACE_ERRORS table which gives fairly verbose output explaining any lines which may exist within. I have this morning seen a few lines added with little to no real information for me to work on and not a gr

  • MB Pro 08 power up click at DVD, HD

    Strange situation--Leopard with Firefox 5 all updates. Firefox has continually had issues with a dozen tabs open, where there will be spinning ball and lots of page file (VM) thrashing, up to 4 GB or more in a session. Often Firefox would hang on qui

  • Renaming namespace

    Hi, I have created a namespace then renamed it, and build objects within.  However, at runtime, when Business Process is calling Java Proxy service which resides on WebAS,  we got error of "Error when receiving by HTTP (error code: 400, error text: I