How to upload Images in Forms 6i

Dear all,
How to upload images in Forms 6i and save it in database. Please anyone help me with example.
Thanking you
Shekhar

why do you need an active/X for this?
Can't you just create 2 default blocks on dept and on emp.
Use the relationship wizard to define the relation. and set the number of records displayed for the emp block to 10?
This will give you all you need with no hussle.

Similar Messages

  • How to upload image using JSP

    hi,
    i am confronting a problem how to upload image from local PC to web server . I am using Tomcat 4.0
    please help me by sending code
    thanks

    Hi,
    Here is the solution for uploading images and displaying images. I am using struts with JSP, so this code has a Action and ActionForm class. You can put the same code in Java Beans or Servlet class to run it. This code has two JSP files - one for Upload (upload.jsp)and other for Image(image.jsp) display. It has a Servlet also to display the image. Here is the code file wise.
    Upload.jsp **********************************************************
    <%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
    <%@ taglib uri="/WEB-INF/struts-template.tld" prefix="template" %>
    <%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
    <%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
    <html:html>
    <head>
    <title>New Page 1</title>
    </head>
    <body>
    <html:form action="uploadAction.do" enctype="multipart/form-data" method="POST">
    <p>File to upload   
    <html:file property="fileUpload" size="20"/></p>
    <p><html:submit value="Upload" property="upload"/></p>
    <p> </p>
    <p><html:img src="image.jsp"/></p>
    <p> </p>
    </html:form>
    </body>
    </html:html>
    Image.jsp*****************************************************************
    <jsp:useBean id="upload" class="uploadtest.uploadActionForm" scope="session">
    </jsp:useBean>
    <%
         byte[] rgb=(byte[])session.getAttribute("byte");
         request.setAttribute("byArr", rgb);
    %>
    <!--
    The image data is now on the request object.
    Forward the user to the showImage servlet.
    That servlet will process and display the image data contained on the request object.
    -->
    Image is<p>
    <jsp:forward page="/showimage" />
    Struts Action Class - UploadAction.java **************************************************
    import javax.servlet.http.*;
    import java.io.*;
    import org.apache.struts.upload.FormFile;
    import org.apache.struts.action.*;
    public class uploadAction extends Action {
    public ActionForward execute(ActionMapping actionMapping, ActionForm actionForm, HttpServletRequest httpServletRequest, HttpServletResponse httpServletResponse) {
    uploadActionForm upload = (uploadActionForm) actionForm;
    try {
    int size=upload.getFileUpload().getFileSize();
    //if (image != null) {
    byte[] byteArr = new byte[size];
    //Create an input stream to read the uploaded file.
    ByteArrayInputStream bytein = new ByteArrayInputStream(upload.getFileUpload().getFileData());
    // Load the input stream into the byte Array.
    bytein.read(byteArr);
    // Close the input stream.
    bytein.close();
    // Load the byte[] into the content field.
    upload.setContent(byteArr);
    HttpSession ses=httpServletRequest.getSession();
    ses.setAttribute("byte",byteArr);
    return actionMapping.findForward("success");
    } catch (Exception ex) {
    ex.printStackTrace();
    return actionMapping.findForward("success");
    Struts ActionForm class ---uploadActionForm.java***************************************************
    package uploadtest;
    import org.apache.struts.action.*;
    import org.apache.struts.upload.*;
    import javax.servlet.http.*;
    public class uploadActionForm extends ActionForm {
    private FormFile fileUpload;
    private byte[] content;
    public FormFile getFileUpload() {
    return fileUpload;
    public void setFileUpload(FormFile fileUpload) {
    this.fileUpload = fileUpload;
    public byte[] getContent()
    return content;
    public void setContent(byte[] theFile)
    this.content = theFile;
    public ActionErrors validate(ActionMapping actionMapping, HttpServletRequest httpServletRequest) {
    /**@todo: finish this method, this is just the skeleton.*/
    return null;
    public void reset(ActionMapping actionMapping, HttpServletRequest httpServletRequest) {
    Servlet to display image --- ShowImage.java ********************************************************
    import java.io.*;
    import java.util.*;
    public class ShowImage extends HttpServlet {
    //Initialize global variables
    protected void service(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException
    byte[] rgb = (byte[]) request.getAttribute("byArr");
    if (rgb != null)
    response.setContentType("image/gif");
    OutputStream stream = response.getOutputStream();
    stream.write(rgb);
    else
    response.setContentType("text");
    response.getWriter().write("attribute byArr not found");
    This code will enable to to upload and display the image. If you know Struts, then you can write the Struts-Config.xml file by yourself. Other wise write to me, I will send you that. If you want to save the image in database, then you have to keep it as BLOB datatype is database. For database you need to send the byte array in the uploadAction.java file to database. Database will keep the image as binary.
    Thanks
    Amit

  • How to upload data into form of Oracle EBS R12 using ATS ver 9.0

    Hi experts,
    Could you please guide me how to upload data into form on Oracle EBS R12 using Oracle Application Testing Suite verson 9.(The simpliest way)
    For example: I need to create user account on Oracle EBS. Normally, I use Dataloader to upload the data, however it just can upload one by one record, cannot upload multi record at same time. Moreover if the performance of server is low, so I will get the issue when using dataloader.
    Thanks in advance
    Best Regards
    Hieu

    Hi you can create Virtual users to enter data. Note than you have to name the objects accordingly.
    For Example default recording provided by Open script is ObjectNAME_(Index No of the object).
    when you record one iteration the name of any object would be ObjectNAME_(0)
    You can then create virtual users so the index will increment as the total number of Virtual users increases. Also you have to handle which row of your test data would get mapped to which Virtual user in the script run session.
    Thanks

  • How to upload images in to custom table and display them in normal ABAP report?

    Hi Experts,
    Can anyone suggest me ,how to upload images into customised table and display thoes images in normal abap report.
    Thanks in Advance,
    Rgds,
    Anusha

    Hi Experts,
    Can anyone suggest me ,how to upload images into customised table and display thoes images in normal abap report.
    Thanks in Advance,
    Rgds,
    Anusha

  • How to upload images on hard drive to iPad?

    how to upload images on hard drive to iPad?

    You can import them into iTunes then use that to get them onto your iPad.
    You can download the iCloud control panel and use photo stream to get the photos onto your iPad
    You can e-mail them to yourself and them save them from that e-mail
    You can upload them to something like dropbox and then download them onto your pad from there.

  • How to upload image files in sqlserver from jsp

    hi friends,
    i want to upload images to sqlserver how will i store url of the image or dorectly store the file in binary format, if we store in related path,plese give some ideas on store that paths in data base and how we store that image files in user directories.
    bye

    hi jay , I know that concept , but i dont know how to upload image files to server Please help me
    here i am giving my problem
    If any user register with site, he has the option to upload his image to the site, so i am using in html file upload option, But i dont know how to store that iamge into the server
    please give me suggestion
    regards
    sudhakar

  • IOS how to upLoad image

    IOS how to upload image, how the
    receiving server,can you help me?

    Hi. The iOS library for Azure Storage is currently in planning. In the meantime, please check out the following blog
    http://chrisrisner.com/Mobile-Services-and-Windows-Azure-Storage which may help with your scenario. Thanks.

  • How to upload images to a DB and then view them in the site?

    Hi
    I have a form, and i want it to insert some data on a DB, so
    that the site can display that information. But i'm not able to
    upload images or files, because dreamweaver does not have a file
    upload option.
    I'm using PHP, can anyone help me on how to upload a image
    and display it on the web site?

    > I don't think its possible to store files in a
    > database.
    It is. But it's not a great way to do things.
    > store it's path in the DB
    Actually, what you want to store in the DB is the filename
    only. Put the
    path into the HTML. That way you don't have to change every
    record when you
    rename a folder.
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "IndioDoido" <[email protected]> wrote in
    message
    news:e1rdmu$819$[email protected]..
    > Hi there!
    >
    > I don't want to upload a image to a DB...i want to
    upload it to a folder
    > but
    > store it's path in the DB. I don't think its possible to
    store files in a
    > database.
    > After the upload i want to display the image on the
    page, with its name
    > and
    > discription, in other words, with the information
    uploaded from the web
    > form
    > created with dreamweaver record insertion form.
    >

  • How to use image in forms

    i m create a form, drag & drop image item into form canvas.
    i want display image on image item, how to do.
    please tell me step by step with example.

    Hello
    here is a sample code example
    http://sheikyerbouti.developpez.com/tutoforms10g/tutoforms10g.htm
    Re: saving an image from form into database
    Hope it helps...
    Regards,
    Abdetu...
    Edited by: Abdetu on Feb 27, 2011 11:47 PM

  • How to insert image in forms?

    Hi Friends,
    I m new to Forms. plz tell me how to display image in canvas (form)?
    I m using Forms 6i.

    do you want to show a static image or an image from the database?
    If its a static image have at look at this Re: Oracle FORMS with image background, is that possible?
    If its a database image you should have a table with a blob-column. If you use the databalock wizard and include that column in the block, it will generate you an image-item which can then be shown in the layout.
    Edited by: Andreas Weiden on 25.11.2008 21:58

  • How to upload images to any kind of server ?

    Hi all,
    I am developping a multiplatform j2me project which uploads images to any kind of servers ( operating systems ) , and I want to create directories, if possible in this situation, to put the image. How to achieve that ?
    Thank you very much indeed

    Hello,
    What you basically need is to have some sort of web application (for instance PHP or JSP) that receives the HTTP request coming from your mobile application, create the corresponding directories and saves the uploaded file.
    Have you worked out the upload process on the mobile end?

  • How to upload images to your own Web site?

    I recently bought a Creative WebCam NX Pro. Installation was fine, the product works great.
    The problem is that I want the cam to upload images to my own web site, www.fogwatch.com. This is basically a weather cam, with images uploading regularly.
    The problem is that the Creative software creates a new name for the image file every time it uploads a new image -- 0.jpg, 02.jpg, 03.jpg, etc. The problem is that the HTML code on my Web site is programmed to recognize only one file name for the Web cam image -- image.jpg. With my old Logitech cam, the software would overwrite the old image with the new image with the same file name, and every was fine.
    So, with the Creative software, I would have to change the file name in my HTML code every time the cam uploaded a new image?and that's impossible. I don't want to use the default Creative web page that it uploads images to as that doesn't fit in my site design.
    Is anyone using a Creative camera to upload images to their own Web site? How are you doing it's

    Bcasey,
    I spent some time working with Webcam monitor and have found the way to do what you are wanting. You need to set up your FTP settings, arrange for a continuous upload and then go over to the custom web page section. Put a checkmark in "upload custom webpage" and go to the section where it says how many pictures to display. Set this to and then remove the checkmark from "upload custom webpage". The program will now upload a single file called img.jpg updated at the interval you choose.
    Jeremy

  • How to upload images in HTML portlet

    Hi,
    We want to allow users to add their HTML thru HTML portlets - there are two issues
    1.How to upload the images that are part of HTML.
    2.The <a> </a> doesn't work within the portal framework.
    Thanks
    Sachin

    Hi,
    You could also try giving the absolute URL to the image. This assumes you're using OC4J(Oracle Containers for J2EE), our J2EE compliant container. On your os, navigate to the following directory:
    oc4j_home\j2ee\home\default-web-app. Create an images directory so the physical path becomes:
    oc4j_home\j2ee\home\default-web-app\Images. Store your images in this directory. Startup oc4j by going to a command prompt and entering java -jar oc4j.jar at the oc4j_home\j2ee\home.
    In your browser: http://hostname.domain:8888/Images/somegif.jpg. You can use the url in your <img src> tag in HTML.
    Hope that helps. Please repost to this forum if you have further questions/issues.
    Thanks,
    Sudi Narasimhan
    Oracle9iAS Portal Partner Management

  • How to upload images to a Facebook page using the export module

    I'm trying to set up the export module for Facebook so I can upload my images.
    It works, but I want to upload them to a Page that I've created for my professional stuff not my personal account.
    Anyone have any ideas?
    Thanks
    Program: Bridge CS6
    Platform: Mac OS X 10.7.4

    Did you ever get a reply to how to upload your images to FB? I am wondering how to set the "services" to export to FB.
    Thank you.
    KaCe

  • How to upload image from a folder thro JSP

    Hi,
    I am CBK Varma,and I am developing one application, where
    I have to display images in my webpage, from a specific folder that should keep on changing every 10 sec.. ...
    how to upload these image files to my page with timing..means afterr 10 sec ,the another image in the same folder has to be dis[play.
    I am storing images ina folder as .jpg/.gif format. (thro Java Program).
    Plz tell me the way of how to do this?
    Thanks in advance.
    Varma.

    These image files reside on the client? If so the client is going to have to initiate the upload. Think of the security problems if they didn't?

Maybe you are looking for

  • Problem with Clearing G/L account

    Hello all, While doing the clearing of <GR/IR Clearing> G/L account, GR document number is supposed to clear with corresponding IR document number. The configuration for this clearing is done in SPRO->G/L Acccounting->B.Transactions->Open Item Cleari

  • EXCEPTION_ACCESS_VIOLATION  while calling a native method.....

    Hi guys, i am trying to call a native method from my java code, but i am getting this following error, # An unexpected error has been detected by HotSpot Virtual Machine: # EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x052bd55f, pid=2740, tid=3884

  • Help in object

    hallow i wont to now what this stetment does data: b_ctrl type ref to ig_<ctrl>. <b>b_ctrl = wd_this->get_<ctrl>_ctr( ).</b> Regards

  • Automator Workflow Copying Files

    I want to create an Automator workflow that copy items to a destination folder but ignores files that already exist in the destination. I begin having trouble at the "Copy Finder Items" action where the only options are to replace existing files or c

  • How can I add a smooth scrolling progress bar? Or make one?

    Hey, If you have seen the QuickLook Progress Bar, it moves ever slowly and smoothly, with the little circle showing progress. I know this is called a Scrobble Bar, but I would really like a Link/Code to implement that same one, or one like Windows Me