Urgent: pictures on forms 9i

I'm trying to insert and query pictures within forms 9i.
What is the code I should use to be able to call open dialog window so I can determine the location of my picture during the run time.
I usually use the following code within form 6i:
DECLARE
TEMP_FILE VARCHAR2(500);
BEGIN
TEMP_FILE :=get_file_name(file_filter=>'allfiles(*.*)|*.*|',message=>'Select the picture'
,dialog_type=>open_file);
if TEMP_FILE is not null then
read_image_file(TEMP_FILE,'any','photo');
end if;
end;
But it does not work within forms 9i.
Any help will be appreciated.

Your code is based on client/server architecture (in Forms 6i), but doesn't work in the web architecture of Forms 9i. To upload files from the client PC, you have to use webutil.
http://otn.oracle.com/products/forms/htdocs/webutil/webutil.htm

Similar Messages

  • How to scan the picture using forms

    Hello,
    I need to scan a picture using a forms. Is it possible to do that.
    Thank you and regards,

    Sorry didn't get your question properly. Never heard of this 'scan picture using forms'.
    if I understood correctly, You want to display a picture using Oracle FORMS ?

  • Urgent for Smart form logo

    HI,
    I have logo .i want to cahnge that name of logo.right now it is uploaded in se78.
           how can we change the name of existing logo.
          how can we download logo from se78 to our system to change the name.
    Thanks,
    kab.

    hi,
    Downloading the LOGO.
    Pls follow the menu path,
    SE78 - > Graphic -> Import
    File Name : Press F4 and select the requrire logo(on Presentation Server)
    Name : Give relavent name
    Steps for uploading Logo :-:
    1. Goto the transaction OAER
    2. Enter the class name as 'PICTURES'
    3. Enter the class type as 'OT'
    4. Enter the object key as the name of the logo you wish to give
    5. Execute
    6. Then in the new screen select Standard doc. types in bottom window
    Click on the Screen icon
    Now, it will ask for the file path where you have to upload the logo
    7. Now you can use this logo in REUSE_ALV_COMMENTARY_WRITE
    *& Form TOP_OF_PAGE
    * text
    FORM F_TOP_OF_PAGE.
    CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'
    EXPORTING
    IT_LIST_COMMENTARY = IT_LISTHEADER
    i_logo = Logo name
    * I_END_OF_LIST_GRID =
    ENDFORM. "TOP_OF_PAGE
    Regards,
    Anversha
    Edited by: Anversha s on Apr 30, 2008 1:15 PM

  • Pictures in form / PDF files very big..!

    I need to build a order form, with a lots of pictures so we can illustrate the use for things in the form. We normally use PageMaker and convert our file it into PDF files and send it out by mail.
    I hoped at acrobat professional 7.0 (Designer 7) could maker those PDF files and people just could fill in the order, and send it back as a PDF file, but when I start to put pictures in designer, the file just goes really big. If I put only one picture in, that are 103 kb, the finish PDF file is 1.4 MB.
    I need to have 50 pictures in my order form, any suggestions ?
    Regards
    Henrik, Denmark

    Didn't want to bump this thread but I'm suffering from the same problem... anyone????
    Cheers big ears!!! :)

  • Insert picture into form?

    Can a person filling out a form that was created in Adobe Acrobat X Pro, insert a picture into the form?

    If you create your form using Adobe LiveCycle Designer you'll have more
    options.
    For more information you can post your question in the forum dedicated to
    that product.
    Just keep in mind that LCD and Acrobat forms, although both are PDF files,
    are not compatible with one another.

  • Urgent - POST http form

    Hello,
    I am trying to upload a file and two string values by using this form.
    <form method="post" enctype="multipart/form-data" action="./servlet/upload_media">
    <td> <input type=file size=20 name="fname" > </td>
    <td> <input type="hidden" name="pocketID" value="5326531"> </td>
    <td> <input type="hidden" name= "username" value="something"> </td>
    <td> <input type=Submit value=Upload> </td> </form>
    The code i'm using to upload
    public void UploadImage(byte[] image)
            HttpConnection httpConn = null;
            InputStream is = null;
            OutputStream os = null;
            try
                HttpConnection c = (HttpConnection) Connector.open(url);
                c.setRequestMethod(HttpConnection.POST);
                String message1 =  "--BbC04y"+"\n"+
                                 "Content-Disposition: file; filename = \"0x0.png\" \n"+
                                 "Content-Type: image/png;  \n"+
                                 "Content-Transfer-Encoding: binary\n\n";
                String message2= "\n--BbC04y"+"\n"
                                 + "Content-Disposition: form-data; name=\"pocketID\"; value=\"130\" \n"
                                 + "Content-Disposition: form-data; name=\"username\"; value=\"dikaios\"  \n";
                 byte[] Message1 = message1.getBytes();
                 byte[] Message2 = message2.getBytes();
                 int length = Message1.length + Message2.length + image.length;
                 c.setRequestProperty("User-Agent", "Profile/MIDP-2.0 Confirguration/CLDC-1.1");
                 c.setRequestProperty("Content-Length:",Integer.toString(length));
                 c.setRequestProperty("content-type", "multipart/form-data; boundary=AaB02x");
                 DataOutputStream dos = new DataOutputStream(c.openOutputStream());
                 for(int i=0; i < Message1.length; i++)
                        dos.writeByte(Message1);
    for(int i = 0 ; i < image.length ; i++)
    dos.writeByte(image[i]);
    for(int i=0; i < Message2.length; i++)
    dos.writeByte(Message2[i]);
    The problem is that I get this error message
    java.io.IOException: error 32 during TCP write
         at com.sun.midp.io.j2me.socket.Protocol.writeBytes(+7)
         at com.sun.midp.io.BaseOutputStream.write(+49)
         at java.io.DataOutputStream.write(+10)
         at com.sun.midp.io.j2me.http.Protocol.sendRequestBody(+190)
         at com.sun.midp.io.j2me.http.Protocol.sendRequest(+42)
         at com.sun.midp.io.j2me.http.Protocol.writeBytes(+61)
         at com.sun.midp.io.BaseOutputStream.write(+49)
         at com.sun.midp.io.BaseOutputStream.write(+18)
         at java.io.DataOutputStream.write(+8)
         at java.io.DataOutputStream.writeByte(+5)
         at Servlets.ServletConnection.UploadImage(+186)
         at UT.UT.startApp(+38)
         at javax.microedition.midlet.MIDletProxy.startApp(+7)
         at com.sun.midp.midlet.Scheduler.schedule(+270)
         at com.sun.midp.main.Main.runLocalClass(+28)
         at com.sun.midp.main.Main.main(+116)
    The problem appears when I try to put the picture in the data output stream. It is the first time I do this, if I am doing something wrong when I constuct the form please let me know.
    Regards
    Dikaios

    You can do it from anywhwere in the pipeline. You can use an assign action and modify the content of $body. Don't modify the whole variable.
    If it still does not work, here is what I would do. Write a simple html file containing a submit and point to a service bus dummy proxy service. Inside the dummy service use a log action to log the content of $body so you have an idea how it should exactlty looks like.
    Gregory Haardt
    ALSB Prg. Manager
    [email protected]

  • How can i locate JPEG picture in forms

    How are all of you
    i am realy in trouble .
    basically i am making software for furniture comapny
    they hay the picture of the furniture in Jpeg format
    i want to show these picture in product info form
    how can i get jped picture
    i can get gif, tiff and other format
    but the jpeg is creating the problem
    if i have the file prod.jpeg, prod.jpg then how can i
    locate it tell me plz i am waiting for this thax in
    advance

    First of all, please put vesion information in your post. An answer may be version dependend.
    Set the image format property to JFIF for jpeg images.

  • Picture on form

    Dear All expert,
    When I upload picture into SAP, I found it become illegibility after uploading.
    But before upload, it is ok.
    Do you know the reason and how to fix it ?

    Hi Edward,
    Check below links it will useful to you,
    Picture in SAP Script Form
    http://help.sap.com/saphelp_nw70/helpdata/en/07/57f78cf5d111d4b65c006094192fe3/content.htm
    Thanks,
    Syf

  • URGENT: REGARDING SMART FORM CALLING FROM REPORT

    HI,
    I had made a report in which i have to display the output in smart form ,the problem is this i had delclared only 1 INTERNAL TABLE and i dont know how to display it in the smart form as i am new to it .
    if help me out with solution ,he or she will be definately rewarded.
    regards,
    ric.s
    Edited by: ric .s on Dec 21, 2007 10:22 AM

    Hi,
    You need to craete a SMARTFORM using transaction SMARTFORMS. In this trasaction under FORM INTERFACE give the variable which would be passed from your program.
    Then use these variables and pass the information in Windows which you will create in your smartforms.
    When you activate your SMART form it will create a Fucntion Module whihc you need to call from your report program.
    Please go through the information given in thread :
    http://help.sap.com/saphelp_nw2004s/helpdata/en/16/a369b1800e4bdda978ee0fe3b7bd2c/frameset.htm
    /community [original link is broken] hreadID=187587&messageID=2096976#2096976
    /community [original link is broken]threadID=187587&messageID=2096976#2096976
    Refer to the following:
    http://esnips.com/doc/7e67af5c-6188-4252-8613-41816756d560/from-sappres.pdf
    http://esnips.com/doc/58566115-54a4-4405-8872-8de952e245e5/smartform.pdf
    http://esnips.com/doc/2276d194-dc47-4b1e-9c14-7af0ffe923ca/smartforms-xsf-output.pdf
    http://esnips.com/doc/13b7ae7a-b32c-4b96-b588-881859d4ac99/Template,Table,Loop,Command-in-Smartforms.doc
    http://esnips.com/doc/97acb00a-e513-4611-91f0-c626f460bfc5/Smart_Form_Overview.pdf
    http://esnips.com/doc/77a981b9-8fe3-4fbb-8101-67745c1fe60c/SMART-FORMS_shail.ppt
    Smartforms Step by Step...links
    Smartforms Step by Step...
    http://www.sapgenie.com/abap/smartforms_detail.htm
    Smartforms
    http://www.sap-basis-abap.com/sapsf001.htm
    http://www.sap-press.com/downloads/h955_preview.pdf
    http://www.ossincorp.com/Black_Box/Black_Box_2.htm
    http://www.sap-img.com/smartforms/sap-smart-forms.htm
    How to trace smartform
    http://help.sap.com/saphelp_47x200/helpdata/en/49/c3d8a4a05b11d5b6ef006094192fe3/frameset.htm
    This would give you information about smartform.
    Though the info is bit extensive but will surely help you.
    Reward if u find this useful.
    Regards,
    Lalit

  • URGENT: Report parameter form set to yes in calling report from menu

    I have write this code for calling report from menu module. But where i put the code
    PARAMFORM='YES' to display the report parameter form in order to enter the parameter by user.
    DECLARE
    pl_id ParamList;
    repid REPORT_OBJECT;
    v_rep varchar2(100);
    v_server VARCHAR2(100);
    rep_status varchar2(100);
    v_host VARCHAR2(100);
    BEGIN
         select rep_server into v_server from reports_data;
         select machine into v_host from reports_data;
         pl_id := Get_Parameter_List('tmpdata');
         IF NOT Id_Null(pl_id) THEN
         Destroy_Parameter_List( pl_id );
         END IF;
         pl_id := Create_Parameter_List('tmpdata');           
    Add_Parameter(pl_id,'P_C_NAME',TEXT_PARAMETER,:GLOBAL.COMPANY);
    Add_Parameter(pl_id,'P_B_NAME',TEXT_PARAMETER,:GLOBAL.BRANCH);
    Add_Parameter(pl_id,'P_user',TEXT_PARAMETER,:GLOBAL.user);
         repid := find_report_object('REPORTOBJ');
         SET_REPORT_OBJECT_PROPERTY(repid,REPORT_FILENAME,getpath||'E_open_balance.RDF');
              SET_REPORT_OBJECT_PROPERTY(repid,REPORT_COMM_MODE,SYNCHRONOUS);
              SET_REPORT_OBJECT_PROPERTY(repid,REPORT_DESFORMAT,'htmlcss');
              SET_REPORT_OBJECT_PROPERTY(repid,REPORT_SERVER,v_server);
              v_rep := RUN_REPORT_OBJECT(repid, pl_id);
              rep_status := REPORT_OBJECT_STATUS(v_rep);
              WHILE rep_status in ('RUNNING','OPENING_REPORT','ENQUEUED')
                   LOOP
                        rep_status := report_object_status(v_rep);
                             message('Running');
                   END LOOP;
              IF rep_status = 'FINISHED' or rep_status is NULL THEN
              WEB.SHOW_DOCUMENT('http://'||v_host||'/reports/rwservlet/getjobid'||substr(v_rep,instr(v_rep,'_',-1)+1)||'?'||'server='||v_server,'_blank');
              ELSE
                   null;
         END IF;
    END;

    Jeneesh,
    SET_REPORT_OBJECT_PROPERTY(report_id,REPORT_OTHER,
    'paramform=YES
    what about this variable ?
    P_VAR1 = ........');

  • De-selecting picture in form created in Acrobat Designer 7

    Hi All
    I have created a form in Acrobat Designer 7 for users to populate with Adobe Reader and submit by email. The problem I have is that once an image has been placed in the image field in Adobe Reader, the user cannot remove it. The issue is made worse in that by adding a different image, both images are overlayed and results in a large file size.
    Any suggestions?

    I successfully tried the following.....I have added a button next to the image field and used the following code in "Click" event....
    this.parent.ImageField1.dataNode.value = "";
    Which created the image and set to white space.....good start for you to think in that direction?

  • Unable to view higher resolution pictures in forms

    Hi All,
    There is an existing custom form, which has a table data block consisting of header_id,BLOB(image) fields.
    there are "upload_image" and "remove_image" buttons.
    when i press upload button a window opens and i select an image and press OK it is uploaded into into table.
    The code is as below
    plist := GET_PARAMETER_LIST (:SYSTEM.custom_item_event_parameters);
    GET_PARAMETER_ATTR (plist, 'OPENDIALOG', ptype, pvalue);
    uploaded_file := pvalue;
    v_chr_path :=
    SUBSTR (uploaded_file, 0, INSTR (uploaded_file, '\', -1)
    - 1);
    v_chr_name := INSTR (uploaded_file, '\', -1) + 1;
    GET_PARAMETER_ATTR (plist, 'LASTDIR', ptype, pvalue);
    set_last_dir (pvalue);
    SET_CUSTOM_ITEM_PROPERTY ('FILE_DIALOG', 'GFMAGENT', fnd_web_config.gfm_agent );
    gfm_access_id := fnd_gfm.authorize (NULL);
    SET_CUSTOM_ITEM_PROPERTY ('FILE_DIALOG', 'ACCESSID', TO_CHAR (gfm_access_id) );
    SET_CUSTOM_ITEM_PROPERTY ('FILE_DIALOG', 'UPLOADFILE', TO_CHAR (NULL));
    SELECT file_id INTO v_num_file_id FROM fnd_lob_access WHERE access_id = gfm_access_id;
    g_num_header_id := :main_block.header_id;
    transfer_file ------>database procedure to upload image
    (o_errbuf => v_chr_err_buf,
    o_retcode => v_num_retcode,
    o_num_imag_size => v_num_image_size,
    i_num_access_id => gfm_access_id,
    i_chr_button => g_chr_button,
    i_chr_area => g_chr_area,
    i_num_header_id => g_num_header_id
    execute query;
    transfer_file has query as
    EXECUTE IMMEDIATE ' UPDATE '
    || i_chr_area
    || ' SET '
    || i_chr_button
    || '= (SELECT FILE_DATA FROM FND_LOBS FL,
    fnd_lob_access FLA
    WHERE FLA.access_id = :1
    and FLA.file_id =FL.FILE_ID ),
    last_update_date = sysdate
    WHERE HEADER_ID = :2'
    USING i_num_access_id, i_num_header_id;
    image are loaded to database table
    I am able to view images of resolution less than 720X600 (approx) in front end.
    But I am  unable to view higher resolution images.
    Can Some one help me how can i View higher resolution images?

    Forms version?
    Have you read the Restrictions in Form Builder help under READ_Image Built-in?
    Cheers,

  • URGENT:Running oracle form in front end

    hi,
    i have created a form in form builder and compiled successfully in server.i registered the form in apps and i have added responsibility also.what is the next step to run that form in apps.Do we need to create concurrent program and executable and add to the request group?Please help.
    Thanks in advance

    Do we need to create concurrent program and executable and add to the request group?Depends if you have custom concurrent programs. If so, then here are the steps:
    To create a Custom Program:
    - Login to System Administrator Responsibility
    - Navigate to Concurrent > Program > Define
    - Define your program
    To add the Concurrent Program to the Request Group:
    - Login to System Administrator Responsibility
    - Navigate to Security > Responsibility > Request
    - Query your Request Group
    - Under Requests, select "Program" under "Type", enter the name of the Concurrent Program under "Name"

  • Urgent: Customized 11i forms, work into R12 - Problem

    Hi,
    We are running 11i, R12 versions instance.
    In that for 11i forms, we are using in R12.
    In that one customized form colomn data defination area, has to define some other tables/ views.
    We would know the present form colomn 'data defination : query, to modify the particular colomn.
    Note: That column has record group as well lov, functions and procedure etc.
    Kindly give me the one by one steps,
    Advanced thanks who is reading and giving solutions.
    Advanced thanks...
    Regs
    Thamaraiselvan
    Message was edited by:
    user624969

    In that for 11i forms, we are using in R12.What do you mean by this? Could you please elaborate more?
    Did you compile the 11i forms before using it with R12?

  • URGENT:  convert pdf Form to Word Form

    Ihave a filled in pdf form and a blank form and I need to convert each to a Word form. acro pro 7 If I had vers 8.0 pro,would the steps be any different?
    what is the fastest way to do this? The boss says the pdf form is not flexible enough but I cannot ask her more at this moment.

    As long as you have been using Acrobat, I am surprised that your boss would have such a question. I thought of one possibility if the form fields are not retained in WORD, but don't know if it will work. You could try to save as HTML (I usually have best luck with HTML 3) and then open that in WORD. That might give you a back door to keep the form fields in much the same way opening a HTML form in Acrobat retains the form fields. Just a thought if the WORD save does not work.
    In terms of flexibility, it is a simple matter to create the form (without fields) in WORD (the master document), make changes, and create a new PDF. Then the modified pages can simply be used to replace those in the old form (don't forget to work on a copy). I guess that is the second idea that is probably the route you were planning to take. Again, bood luck with the boss and with WORD. Bill

Maybe you are looking for

  • HT4061 my ipad 2 was stolen a week ago? can you help me what to do to blocked the ipad not to use by anyone?

    My ipad2 was stolen a week ago? Can you help me what to do to blocked my ipad and not be used by anyone? I used different address and i even not put any password lock ang Find my iphone is on? also the location area is not on? please help? Thanks a l

  • How to link output page to output excel sheet?

    Hi, I have written a program where the output is downloaded as an excel sheet.There are 2 option in the output either we can display the output in the form of a ALV or we can download it into an excel sheet. Now,I want to know how I can link that exc

  • Simple BPM question ...

    I created a BPM in design builder. I brought it into config in order to create a Integration Process service. If I change the BPM design again in the design tool, what do I need to do in order to refresh it so that I can pick the new IP in the config

  • Creating Library DC in CE 7.10

    Hi All, How to create a J2EE Library DC in CE 7.1 similar to the J2EE Server Component  - Library in 7.0 Regards S.V.Satish Kumar

  • CK666 error in cross company code  cost estimate

    Dear All, We have activated multiple valuations/transfer prices : legal, group and profit center valuations. We perform cost estimate run in ck40n for profit center valuation and get error Material 20000035/plant FZ03: Transfer price could not be fou