Want to scan an image from oracle forms -- Is it possible??

Hi all,
I want to scan an image from oracle forms through a scanner. I have not found any help on this topic. Pls help with example or code or with demmo form.
BR
Tarik.
Edited by: Tarik_kuet on Sep 9, 2008 1:39 PM
Edited by: Tarik_kuet on Sep 9, 2008 1:39 PM

A colleague of me did it like this:
* the scanner is connected to a network document server.
* the document server sends(ftp) the image to the oracle XDB
* a form shows the scanned documents(using a view on the ftp directory in XDB using path_view)
* in this form the user can move the scanned document(s) to a (blob field) in a table.
Hope this helps a bit...
Edited by: poelger on Sep 9, 2008 10:08 AM

Similar Messages

  • I want to scan an image from oracle developer 10g ?

    Hi everybody.
    How can I scan an image from oracle developer 10g ?
    thnaks in advance..

    we did this in a similar way RajeshAlex describes.
    We used software "imaging professional" which was able to be controlled via a command-file and told by that command-file to store the scan-result into a local file.
    What we did was:
    Copy command-file to client via WEBUTIL_FILE.AS_TO_CLIENT..
    Execute command-file via WEBUTIL.CLIENT_HOST
    Show Forms-Alert on which the user has to click after scanning was finished
    Check local file which was defined in command-file and, if present, load it into the database using WEBUTIL_FILE.CLIENT_TO_DB..
    Hope this helps

  • How to save Image from Oracle form!!?

    Hello Every Oracle forms developer
    i have a from contains block with Blob column ...i store image in it
    i have used read_image_file to view image in form and insert it into DB 11gR2
    now ..* I want to create procedure in form_button to download image from db ..and save it in local drive ...*
    thanks in advance

    see this example in pl/sql
    DECLARE
    -- Data Variables
    v_blob BLOB;
    v_data_length NUMBER;
    -- Loop Control Variables
    v_offset NUMBER := 1;
    v_chunk CONSTANT NUMBER := 32767; -- maximum chunk size
    -- UTL_FILE variables
    fh UTL_FILE.file_type;
    BEGIN
    v_blob := ... populate the blob variable here
    v_data_length := DBMS_LOB.getlength (v_blob);
    -- Open the file
    fh := UTL_FILE.fopen ('RETR_DIR', 'myfile.dat', 'wb', v_chunk);
    LOOP
    -- Exit when our file offset is bigger than our file
    EXIT WHEN v_offset > v_data_length;
    -- Write the output chunk by chunk
    UTL_FILE.put_raw (fh, DBMS_LOB.SUBSTR (v_blob, v_chunk, v_offset), TRUE);
    -- Increment the offset by the amount written
    v_offset := v_offset + v_chunk;
    END LOOP;
    -- Close the file
    UTL_FILE.fclose (fh);
    END;
    Regards

  • Passing a value for date parameter from Oracle Forms to BIP

    Hi
    I have created a report with the following SQL query:
    select
    d_tables.d_seq,
    to_date(d_tables.d_created) creation_date,
    d_tables.d_created_by created_by,
    d_tables.d_pk,
    d_tables.table_name,
    d_tables.comments
    from
    d_tables, d_applications
    where
    d_tables.d_ppk = d_applications.d_pk
    and to_date(d_tables.d_created) >= nvl(:P_CRE_DATE_FROM, to_date(d_tables.d_created))
    and to_date(d_tables.d_created) <= nvl(:P_CRE_DATE_TO, to_date(d_tables.d_created))
    The parameters P_CRE_DATE_FROM and P_CRE_DATE_TO have been set up as date in BI Publisher with format dd-MMM-yyyy
    The report works fine when launched in BI Publisher.
    I want to call this report from Oracle Forms and I'm trying to pass the values for both the parameters. However, the report does not generate output based on values passed.
    Does it have to do with datatype? Does anyone know a solution for this?
    Kind regards,
    Aparna

    Thanks for your suggestion. I am already referring to the whitepaper and have integrated Forms with BI Publisher. The parameter passing is working fine for a varchar2 type of parameter. However, for a date type, there seems to be some problem.

  • Urgent ! Code for Displaying Image from Oracle BLOB image on VB Form

    Hi Plz any one have any work to showing a Picuture on Visual Basic Form, i Save the Picure in table and its column type is BLOB where i save picture, now i want to show it on VB form. if anybody knows plz tell me. and if image not found then how can i handle in nvl(field,' ') function.

    Refer VB sample on Passing LOB parameters to a stored procedure. It shows how to display and insert the image from VB form to an Oracle Database in a BLOB column.
    http://otn.oracle.com/sample_code/tech/windows/ole_db/oledb8/content.html
    Chandar

  • Calling web service from oracle forms 10g

    Problem Description:
    I'm following the steps as per the doc:
    http://www.oracle.com/technology/products/forms/htdocs/10gr2/howto/webservicefromforms/ws_10_1_3_from_forms.html
    to create a java stub to call external web service and then use java importer in oracle forms to call this web service from oracle forms.
    WSDL for external web service used is http://gend:83/DesignService.svc?wsdl
    The service was developed by us.
    Calling the web service using JDeveloper works fine but when I complie in Oracle Forms it returns wrong number of types of arguments in call SENDHELLO.
    The code from oracle form to call web service is as below:
    DECLARE
    jo ora_java.jobject;
    xo ora_java.jobject;
    rv varchar2(2000);
    ex ora_java.jobject;
    str varchar2(100);
    BEGIN
    jo := GendServiceClient.new;
    rv := GendServiceClient.sendHello('Nora');
    EXCEPTION
    WHEN ORA_JAVA.JAVA_ERROR then
    message('Unable to call out to Java, ' ||ORA_JAVA.LAST_ERROR);
    WHEN ORA_JAVA.EXCEPTION_THROWN then
    ex := ORA_JAVA.LAST_EXCEPTION;
    message(Exception_.toString(ex));
    END;
    Any help/ideas on this is greatly appreciated. Thanks.
    Edited by: KE Nora Loera on Jun 1, 2012 1:24 PM

    My primary skill is PL/SQL but the only information I found on Oracle's site to call a web service from a 10g Form was creating a jar file and importing the java class. Since I don't want to ask our corporate IT to make changes on the UNIX box for the jar files I went a different route.
    I use UTL_HTTP.BEGIN_REQUEST to call a URL then load I load the data to a table as a CLOB since we have more than 4000 characters. Now I need to parse the XML and load it into a form. I have never done this so if there is a helpful site please let me know. I have looked at several sites but none do what I want.
    Thanks

  • Calling Report from Oracle form 11g

    I am new to Forms 11g, trying to call report from Oracle forms 11g .
    I want to call report from oracle forms, but its giving error.
    Below is the code
    DECLARE
    repid REPORT_OBJECT;
    v_rep VARCHAR2(100);
    rep_status VARCHAR2(20);
    BEGIN
    repid := FIND_REPORT_OBJECT('empreport'); -- report node in forms builder
    SET_REPORT_OBJECT_PROPERTY(repid,REPORT_COMM_MODE,SYNCHRONOUS);
    SET_REPORT_OBJECT_PROPERTY(repid, REPORT_EXECUTION_MODE, BATCH);
    set_report_object_property ( repid, report_filename, 'empreport.rdf' ); -- report name
    SET_REPORT_OBJECT_PROPERTY(repid,REPORT_DESTYPE,cache);
    SET_REPORT_OBJECT_PROPERTY(repid,REPORT_DESFORMAT,'PDF');
    SET_REPORT_OBJECT_PROPERTY(repid,REPORT_SERVER,'RptSvr'); -- report server name
    v_rep := RUN_REPORT_OBJECT(repid);
    rep_status := REPORT_OBJECT_STATUS(v_rep);
    if
    rep_status = 'FINISHED'
    then
    WEB.SHOW_DOCUMENT('http://inorasrv-pc:7001/reports/dtd/rwservlet/getjobid='||v_rep||'?server='||'RptSvr','_blank');
    else
    message ( 'error while running reports-object ' || error_text );
    message ( ' ' );
    clear_message;
    end if;
    end;
    Above code giving following error :
    Unable to connect to report server RptSvr
    I think my report servername is wrong
    Where to find report server name in 11g.
    I am Using weblogic server, so can i give weblogic server name
    Thanks in advance.
    Edited by: parapr on Aug 17, 2012 1:52 AM
    Edited by: parapr on Aug 17, 2012 3:21 AM

    Hi,
    You have to have the report server
    a. Installed and configured
    b. Running.
    See
    http://docs.oracle.com/cd/E21764_01/bi.1111/b32121/pbr_strt001.htm
    http://docs.oracle.com/cd/E17904_01/bi.1111/b32121/pbr_verify004.htm
    http://docs.oracle.com/cd/E17904_01/bi.1111/b32121/pbr_conf003.htm#i1007341
    If you are using rwservlet then you will find the name from the Configuration file referred to in the last link.
    Cheers,

  • Calling Crystal Reports from Oracle Forms 10G

    Hi everyone,
    I am trying to call a crystal report from Oracle Forms 10G.
    I have a button on my Form which when clicked calls a Crystal Report which the uaser then wants to save as a PDf file.
    Can someone please send me the code to do this and also the exact steps that are to be followed.
    Thanks
    Fm.

    Hi Andreas,
    I am trying to call the crystal report from an Oracle Form using a URL. No batch file is being used here.
    I am looking for a peice of code similar to run_product or run_report built in in Oracle which calls an Oracle report from an Oracle Form.
    Also I dont want to display the report on a screen or a window in Oracle Forms. I would like it to run just as we run an Oracle Report from an Oracle Form.
    Is that possible ? If yes please let me know the steps to do this.
    Thanks
    Faiz
    Edited by: IQ on May 13, 2011 11:38 AM

  • How to avoid IE pop-ups when running BIP reports(w/ SSO) from Oracle Forms?

    Hi all,
    We have an OID/SSO integrated Oracle Forms and BI Publisher environment in place. We/users expect the same behavior when running Oracle Reports or BIP reports from Oracle Forms... which means receiving no intermediate pop-ups and simply getting the report output to appear in the relevant target application(PDF, EXCEL, etc). Currently we get multiple security warnings when running BIP reports from Oracle Forms.
    Here's a list of Pop-ups contents:
    1. "File Download - Security Warning" Do you want to open or save this file? -> OPEN
    2. "File Download" Do you want to save this file? Name = ma01r500.pdf -> YES
    3. "Save AS" -> pick desktop and save.
    4. "Download Complete" -> OPEN
    We have experimented with setting various IE security settings to LOW/enabled and still get these pop-ups.
    Any suggestions is much appreciated.
    Thanks,
    Yahya

    FYI... Metalink Note 282996.1 has resolved the bigger issue with the extra pop-ups with SSO enabled environment.
    Cause:
    Internet Explorer (IE) has to cache PDF files in a temporary directory prior to opening the file. Without this IE cannot process PDF files. With SSO protected pages, the header cache settings are set to no-cache which prevents IE from downloading PDF files.
    Solution:
    In mod_osso.conf use the entry "OssoSendCacheHeaders off" which tells mod_osso to turn off all no-cache related headers, which the enables Internet Explorer to be cache the file in a temporary directory.
    Now I am not sure if anybody has any thoughts/suggestions as how we might be able to resolve this issue where Oracle Reports WEB.SHOW_DOCUMENT calls have no pop-ups so ideally BIP reports WEB.SHOW_DOCUMENT calls should behave the same as both are calls from Oracle Forms.
    But at least now our SSO enabled environment and un-secure DEV/UAT behave the same with a single pop-up. Ideally the users shouldn't have to come across this intermediate pop-up to open(save/cancel being the other options) the document(just like Oracle Reports calls).
    Yahya

  • How to insert special character from Oracle form builder 10g

    Dear all,
    I need help. how to insert special character like 'Superscript or Subscript ' from oracle form builder 10g. I had try in Oracle form builder 6i with press ALT+ASCII code in the text item and it work, but in the oracle form builder 10g this method doesn't work... would you like to help me...somebody please...
    Best Regard,
    Dedy P.T.

    What do you mean by insert ... from Forms Builder? Do you mean you want to add it as text in a string of pl/sql code or as part of boiler plate text (label) or a value on the Property Palette?
    For special characters you would need set NLS_LANG to something that would support the characters you want to use. For the Builder to see the change, you would need to set NLS_LANG to something like:
    NLS_LANG=AMERICAN_AMERICA.UTF8
    This can be done in the Windows Registry or system. As I mentioned, this will only apply to the Builder and will have nothing to do with a running form. For running forms you would need to set this in default.env. As for things like super and sub scripts, these are font formats and not necessarily characters. For the most part, I don't believe these are supported in Forms.

  • How to open .cmdrw file from Oracle Forms 10g

    Hi,
    We need to call *.cmdrw* file from Oracle forms 10g. Is there any way to call *.cmdrw* file from Oracle forms 10g?
    Thanks for the help.
    Viishnu Nekkanti

    In case you want to open a .cmdrw with its associated application you can use the following procedure:
    webutil_host.NonBlocking( 'rundll32 url.dll,FileProtocolHandler ' || client_filename );This works for every file where a program has been associated to its file extension. (Adobe Reader for *.pdf, Microsoft Word for *.doc, Microsoft Excel for *.xls and so on)
    Regards
    Markus

  • Passing parameters to oracle rports from oracle forms

    Dear all,
    Can anyone tell me how to pass parameters from oracle forms 10g to oracle reports 10g ,i want to hide my connection string and parameteres while open the report through web
    can anyone plese help me out to solve this problem.

    Hi,
    I had trail as advised, but anticipated results were not observed.
    Here is the named configuration in formsweb.cfg
    [NMPT]
    form=D:\NMPT\FORMS\FHOPENFORM.fmx
    userid=hmsprod/hmsprod@hindalco
    WebUtilLogging=off
    WebUtilLoggingDetail=normal
    WebUtilErrorMode=Alert
    WebUtilDispatchMonitorInterval=5
    WebUtilTrustInternal=true
    WebUtilMaxTransferSize=16384
    imageBase=CodeBase
    separateFrame=True
    lookandfeel=oracle
    logo=none
    splashScreen=no
    pageTitle =Test Application
    background=no
    colorScheme=blue
    archive_jini=f90all_jinit.jar,icons.jar,frmwebutil.jar,jacob.jar
    archive=f90all.jar
    height=768
    width=1024
    envFile=nmpt.env
    otherparams=useSDI=yesLOCATIONID=NMPT # new parameter which I want to access in my form
    the URL is as follows:
    http://MyPC:8888/forms90/f90servlet?config=NMPT
    But I am unable to open the login page

  • Call APEX from Oracle*Forms

    My first APEX
    I have "built" a APEX-Application to upload and download documents (APEX advanced tutorial).
    It works as a stand-alone-solution.
    Now I want to call this APEX-Form from Oracle*Forms (web.show_document(url))
    I found that I can call a specific Apex-Page by application-id and page-Number.
    But APEX still asks for Username/ Password. And I want to transfer some other parameters to apex.
    The url I could hide. I also think about encryption/ time-stamp mechanism.
    I think there should be a standard-mechanism.
    But now I am in doubt: Is this possible at all?

    hi Scott.
    i actually developed a javabean to communicate with a mikrotik router and it works very nice on Oracle forms 10g !
    but i need to develop an mobile interface for users , so i am using apex to accomplish this task, but i will need to call the javabean from apex.
    thanks

  • Png images in oracle forms

    How can i use png type of images in oracle forms 10.1.2.02.?

    <p>If you know the image name, just put it in the CSS file in an image tag. If you want to add it at runtime, use the ADD_IMAGE method. See all that in the documentation.
    If you want to go further with this tool, use the dedicated forum to ask questions.
    </p>
    Francois

  • I tried to display gif image from oracle to jsp but nothing appear

    i tried to display image from oracle DB to jsp directly without using file processing , and i used Servlet and jsp , Servlet to get image from DB and jsp to use <img> tag , when i Run Servlet code
    the image appaer on Microsoft Photo Editor , and when i run jsp the image dose not appear on jsp page , so please anyone has an idea about this broblem ,send the soluation or any information to my e-mail [email protected] , and I'll thankful about your help.
    the Servlet and jsp code are below .
    thank for your help
    Servlet:
    import java.io.InputStream;
    import java.sql.Connection;
    import java.sql.DriverManager;
    import java.sql.ResultSet;
    import java.sql.Statement;
    import javax.servlet.*;
    import javax.servlet.http.*;
    import java.io.PrintWriter;
    import java.io.IOException;
    public class Servlet extends HttpServlet
    public void init(ServletConfig config) throws ServletException
    super.init(config);
    public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException
    response.setContentType("image/gif");
    int id = Integer.parseInt(request.getParameter("no"));
    // int id = 2 ; when Run Servlet .
    ResultSet rs = null;
    Connection Lcon = null;
    String stmt = " select Image from ImageTable where lmage_id ="+id;
    Statement sm = null;
    String data1 ="";
    try
    Lcon = getConntcion();
    sm = Lcon.createStatement();
    rs = sm.executeQuery(stmt);
    if(rs.next())
    InputStream in = rs.getBinaryStream(1);
    ServletOutputStream sout = response.getOutputStream();
    int c;
    while((c=in.read())!= -1)
    sout.write(c);
    in.close();
    sout.flush();
    sout.close()
    }catch(Exception e)
    System.out.println("error in selectValue the error is "+e);
    finally
    rs .close( );
    sm .close( );
    Lcon.close( );
    public Connection getConntcion()
    Connection con = null;
    try{
    DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());
    con = DriverManager.getConnection(",,,,,,,, DB Info ,username and password ,,,,,,,,,,,");
    }catch(Exception e)
    System.out.println("error in connection the error is "+e);
    return con;
    Jsp code :
    <%@ page contentType="text/html"%>
    <html>
    <head
    </head>
    <title> testing image </title>
    <body>
    <form>
    <img src="servlet/Servlet?no=2">
    </form>
    </body>
    </html>

    InputStream in = rs.getBinaryStream(1);
    byte[] image= null;
    ByteArrayOutputStream baos = new ByteArrayOutputStream();
    byte[] buffer = new byte[8192];
    int bytesRead = 0;
    while ((bytesRead = in.read(buffer, 0, 8192)) != -1)
         baos.write(buffer, 0, bytesRead);
    image= baos.toByteArray();
    in.close();
    ServletOutputStream sout = response.getOutputStream();
    if (image != null)
           sout.write(image);
           sout.flush();
    }

Maybe you are looking for

  • Communication problem between NetBeans and Tomcat

    hi! i got a quite mysterious problem. here is what happens: - i start NetBeans 5.5.1 (the first time) - i want to debug my JSF-Project, the Debugger starts - After a few seconds the debugger waits for tomcat (it sais: "Waiting for Tomcat...") and tom

  • Attachment from shopping cart is getting transferred to PO in ECS

    Hi, We are in SRM 550 server and in ECS, we have an issue when the SC with internal attachment is converted to PO and when it processed by mail to vendor, the attachment of the SC is also getting attached with the smart form. Is there any way to rest

  • Procedures/packages security. Hide source code?

    Hi. I was wondering if it is possible to hide the source code of a procedure for a user or avoid him to recreate it, but let him to execute it. Im doing a sandbox procedure who edit and run an external job. It works fine but I see a bunch of security

  • Cannot open CR2 files with Photoshop CS4.

    I own Photoshop CS4 and I recently bought a Canon 5D Mark III. Every time I try to open a CR2 file I get an error message that says "it is the wrong kind of file." Help! What do I do?

  • Problem with ACR 7 support of Canon 5D Mark III

    Just purchased LR4 with ACR7 (upgrade from LR3.6 - not happy about that either, but I am mostly over it) and tried to import photos from my Canon 5D Mark III.  Import feature sees all the .CR2 files but when I try to import them it complains that it