How to make a movie from an audio file and 1 static image?

Hi,
I want to make a movie that it is basically an 8 minutes audio file and I want to have a background picture that is static and stays there during the whole 8 minutes of my audio.
How can I do that?
I'm able to add the audio and the picture, however I can't stretch the picture to 8 minutes.
My iMovie version is 5.0.2
Thanks,
Martin

Hi mcanovas - Simply duplicate the picture as many times as needed. In the Photos pane you can extend the pic to 30 seconds, so duplicate that 16 times and there you go!
I hope the audience will stay focused

Similar Messages

  • How to make one movie from different imovie files?

    I have 12 imovie files that I am trying to put together as one movie with 12 chapter markers.
    How do I do that?
    Thanks.

    ...import all 12 movies in it and mark the chapters...
    very hard to imagine a less space consuming way...
    you can drop the movies directly into iDVD…
    you get a videoDVD with 2x6 (I wouldn't place 12 chapters on a single menu) "chapters"...

  • How to make a silhouette from a portrait (photo) and-

    How do I make a silhouette from a portrait?
    And how do I make the background transparent?

    Do you mean that I send you the portrait?
    Chabæna
    26 apr 2014 kl. 12:31 skrev c.pfaffenbichler <[email protected]>:
    Re: How to make a silhouette from a portrait (photo) and…
    created by c.pfaffenbichler in Photoshop General Discussion - View the full discussion
    How do I make a silhouette from a portrait?
    Ah, but wouldn’t it be ever so much easier to explain if you actually provided (a lores of) the image in question?
    And how do I make the background transparent?
    Preferably with a Layer Mask and then saving in the appropriate file format (psd or png24 for example support transparency).
    Please note that the Adobe Forums do not accept email attachments. If you want to embed a screen image in your message please visit the thread in the forum to embed the image at http://forums.adobe.com/message/6332417#6332417
    Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page: http://forums.adobe.com/message/6332417#6332417
    To unsubscribe from this thread, please visit the message page at http://forums.adobe.com/message/6332417#6332417. In the Actions box on the right, click the Stop Email Notifications link.
    Start a new discussion in Photoshop General Discussion at Adobe Community
    For more information about maintaining your forum email notifications please go to http://forums.adobe.com/thread/416458?tstart=0.

  • How to make an openfiledialog? (browse a file and put it in a parameter)

    How to make an openfiledialog? (browse a file and put it in a parameter)
    Best Regards

    hi,
    check the code  below:
    FORM sub_gui_download.
    * Define local variables
      DATA:
        lo_fullpath       TYPE string,
        lo_filename       TYPE string,
        lo_path           TYPE string,
        lo_user_action    TYPE i,
        lo_encoding       TYPE abap_encoding.
    * Define local constants
      CONSTANTS:
        lc_encoding(1) TYPE c VALUE 'X',
        lc_directory TYPE string VALUE 'D:',
        lc_filetype TYPE char10 VALUE 'DAT',
        lc_separator TYPE char01 VALUE 'X',
        lc_blank TYPE char01 VALUE ''.
    * Call method to create dynamic save_path and save_format
      CALL METHOD cl_gui_frontend_services=>file_save_dialog
        EXPORTING
          with_encoding        = lc_encoding
          initial_directory    = lc_directory
        CHANGING
          filename             = lo_filename
          path                 = lo_path
          fullpath             = lo_fullpath
          user_action          = lo_user_action
          file_encoding        = lo_encoding
        EXCEPTIONS
          cntl_error           = 1
          error_no_gui         = 2
          not_supported_by_gui = 3
          OTHERS               = 4.
      IF sy-subrc <> 0.
        EXIT.
      ENDIF.
    * Check user_action
      IF lo_user_action <> cl_gui_frontend_services=>action_ok.
        EXIT.
      ELSE.
    *   If user_action equals to action_ok, call function module to download datas
    *   using download table i_dwn_tab
        CALL FUNCTION 'GUI_DOWNLOAD'
          EXPORTING
            filename                = lo_fullpath
            filetype                = lc_filetype
            write_field_separator   = lc_separator
            trunc_trailing_blanks   = lc_blank
          TABLES
            data_tab                = i_dwn_tab
          EXCEPTIONS
            file_write_error        = 1
            no_batch                = 2
            gui_refuse_filetransfer = 3
            invalid_type            = 4
            no_authority            = 5
            unknown_error           = 6
            header_not_allowed      = 7
            separator_not_allowed   = 8
            filesize_not_allowed    = 9
            header_too_long         = 10
            dp_error_create         = 11
            dp_error_send           = 12
            dp_error_write          = 13
            unknown_dp_error        = 14
            access_denied           = 15
            dp_out_of_memory        = 16
            disk_full               = 17
            dp_timeout              = 18
            file_not_found          = 19
            dataprovider_exception  = 20
            control_flush_error     = 21
            OTHERS                  = 22.
        IF sy-subrc <> 0.
          MESSAGE i007.
        ENDIF.
      ENDIF.
    ENDFORM.    

  • How to make your movie from a template in AE CS6?

    Hello,
    Firstly, I'm new to this forum and Adobe After Effects. Hence, please excuse my beginner's language.
    I recently modified a slideshow template in AE CS6. After doing all the necessary modifications in the template project, I do not know how to make a movie out of it.
    I'll appreciate your help in guiding me by providing the necessary information to create the movie.
    Waiting for a reply.
    Thanks

    JMichael wrote:
    Actually, I have to create the movie urgently and send it to a colleague.
    Ouch. That's rather like saying your thesis committee needs your paper tomorrow and, say, while we're at it, can we help you with your research?
    After Effects is huge, unbelievably deep and stupidly complicated.
    It's not that we don't WANT to help you, it's that we cannot execute the rendering commands for you nor can we make all of the rendering and output decisions for you.

  • How to make blank copies of a PDF file and put it into the printer tray.

    Dear experts,
    Before you try printing the data from the FM, How tomake several blank copies of the PDF file  and  put it in the printer tray so that you can print just the data from the function module on it??????
    Please reply.

    Hi drredwood,
    When you open your PDF file a yellow bar will appear on the top of the screen.
    Click on 'Enable All Features'.
    Then you will be able to copy the content from your pdf and to paste in any of the file.
    Regards,
    Florence

  • How to make a movie from sequence of images?

    Hello buddies,
    I need to build a movie from sequence of images.The sequence of images will be created from YUV(YCbCr) values. How can I create a movie from the sequence of images?

    For Windows
    http://sourceforge.net/projects/ndub/
    For Linux
    http://sourceforge.net/projects/avifile/
    search on sourceforge.net

  • How to make a movie from a PowerPoint with a voice over

    Hi - as the title suggest, I'd like to record a movie of a PowerPoint presentation with me providing the voice over. I'd then post this onto our company intranet for others to review the presentation.
    Any ideas how I'd do this?
    Thanks

    An easy way would be to export each powerpoint slide as a JPEG file. Import these into an iPhoto album. Drag the iPhoto album into your movie through the Photo Browser and add your voiceover.
    It might also be possible to export your powerpoint presentation as a QuickTime movie, but it would be important to do it as a timed presentation rather than a manually advanced presentation, because iMovie will not import manual advance tracks, closed captioning tracks, chapter tracks, etc.
    I have imported presentations from KeyNote but have never tried a PPT.

  • Make quicktime movie from a .cdr file

    How do I make a quicktime movie from a .cdr image file so I can begin storing my home movies on DVDS?
    GH

    .cdr is the extension for CorelDRAW image files.
    Are you wanting to make a slide show?
    I would suggest you convert the images to .jpgs

  • How to edit a movie from an .img file

    Hi all!
    I've got a movie in .img format. What I'd like to do is cut off ten seconds of the movie, but I don't know how to do it.
    I've tried opening the file in Quicktime Pro (wouldn't open), iMovie (wouldn't open) VLC (opened just fine but couldn't edit it) and Ffmpeg (format not recognized) - so, no luck sofar.
    Can anyone point me in the right direction?
    Any suggestion would be appreciated!
    Lianne

    If the .img file is a DVD movie, MPEG Streamclip
    <http://www.squared5.com>
    can be used to select the movie (minus the ten seconds) and convert to another movie format. You will need the QuickTime MPEG-2 Playback Component
    <http://www.apple.com/quicktime/mpeg2/>
    If you want to create a new DVD formatted movie, convert to DV, then use iDVD to create a new DVD.

  • How to make a wallpaper from a .jpg file?

    I want to make a wallpapaer for my ipod touch from a .jpg file. I do not have photoshop. Is there a way to do this? I can't figure it out.
    Thanks.

    Thanks for responding.
    I tried syncing the photos on my pc to my ipod but it doesnt work.
    From itunes, I go to "sync photos from", and hit "choose folder", then I go to a folder on my pc that has many jpg files. When I click on the folder it says "No items match your search". itunes isn't recognizing the jpg files on my pc.
    Any ideas?

  • How to make a movie from my projects

    How do I take my IMovie Projects into one movie on a dvd

    Hi mcanovas - Simply duplicate the picture as many times as needed. In the Photos pane you can extend the pic to 30 seconds, so duplicate that 16 times and there you go!
    I hope the audience will stay focused

  • Re: how to capture a frame from a video file and save it as a jpeg

    package com.snn.multimedia;
    * @(#)FrameAccess.java     1.5 01/03/13
    * Copyright (c) 1999-2001 Sun Microsystems, Inc. All Rights Reserved.
    * Sun grants you ("Licensee") a non-exclusive, royalty free, license to use,
    * modify and redistribute this software in source and binary code form,
    * provided that i) this copyright notice and license appear on all copies of
    * the software; and ii) Licensee does not utilize the software in a manner
    * which is disparaging to Sun.
    * This software is provided "AS IS," without a warranty of any kind. ALL
    * EXPRESS OR IMPLIED CONDITIONS, REPRESENTATIONS AND WARRANTIES, INCLUDING ANY
    * IMPLIED WARRANTY OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE OR
    * NON-INFRINGEMENT, ARE HEREBY EXCLUDED. SUN AND ITS LICENSORS SHALL NOT BE
    * LIABLE FOR ANY DAMAGES SUFFERED BY LICENSEE AS A RESULT OF USING, MODIFYING
    * OR DISTRIBUTING THE SOFTWARE OR ITS DERIVATIVES. IN NO EVENT WILL SUN OR ITS
    * LICENSORS BE LIABLE FOR ANY LOST REVENUE, PROFIT OR DATA, OR FOR DIRECT,
    * INDIRECT, SPECIAL, CONSEQUENTIAL, INCIDENTAL OR PUNITIVE DAMAGES, HOWEVER
    * CAUSED AND REGARDLESS OF THE THEORY OF LIABILITY, ARISING OUT OF THE USE OF
    * OR INABILITY TO USE SOFTWARE, EVEN IF SUN HAS BEEN ADVISED OF THE
    * POSSIBILITY OF SUCH DAMAGES.
    * This software is not designed or intended for use in on-line control of
    * aircraft, air traffic, aircraft navigation or aircraft communications; or in
    * the design, construction, operation or maintenance of any nuclear
    * facility. Licensee represents and warrants that it will not use or
    * redistribute the Software for such purposes.
    import java.util.Date;
    import java.util.Arrays;
    import java.util.Iterator;
    import javax.imageio.ImageIO;
    import javax.imageio.stream.ImageOutputStream;
    import javax.imageio.ImageWriter;
    import java.awt.*;
    import java.awt.image.BufferedImage;
    import java.awt.image.DataBufferByte;
    import javax.media.*;
    import javax.media.control.FramePositioningControl;
    import javax.media.control.TrackControl;
    import javax.media.Format;
    import javax.media.format.*;
    import javax.media.util.BufferToImage;
    import javax.media.util.ImageToBuffer;
    import java.io.FileOutputStream;
    import java.io.OutputStream;
    import com.sun.image.codec.jpeg.*;
    * Sample program to access individual video frames by using a
    * "pass-thru" codec. The codec is inserted into the data flow
    * path. As data pass through this codec, a callback is invoked
    * for each frame of video data.
    public class FrameAccess extends java.awt.Frame implements ControllerListener
    Processor p;
    Object waitSync = new Object();
    boolean stateTransitionOK = true;
    * Given a media locator, create a processor and use that processor
    * as a player to playback the media.
    * During the processor's Configured state, two "pass-thru" codecs,
    * PreAccessCodec and PostAccessCodec, are set on the video track.
    * These codecs are used to get access to individual video frames
    * of the media.
    * Much of the code is just standard code to present media in JMF.
    public boolean open(MediaLocator ml)
    try
    p = Manager.createProcessor(ml);
    catch (Exception e)
    System.err.println("Failed to create a processor from the given url: "
    + e);
    return false;
    p.addControllerListener(this);
    // Put the Processor into configured state.
    p.configure();
    if (!waitForState(p.Configured))
    System.err.println("Failed to configure the processor.");
    return false;
    // So I can use it as a player.
    p.setContentDescriptor(null);
    // Obtain the track controls.
    TrackControl tc[] = p.getTrackControls();
    if (tc == null)
    System.err.println("Failed to obtain track controls from the processor.");
    return false;
    // Search for the track control for the video track.
    TrackControl videoTrack = null;
    for (int i = 0; i < tc.length; i++)
    if (tc.getFormat() instanceof VideoFormat)
    videoTrack = tc[i];
    break;
    if (videoTrack == null)
    System.err.println("The input media does not contain a video track.");
    return false;
    VideoFormat currentFormat = (VideoFormat)videoTrack.getFormat();
    System.err.println("Video format: " + videoTrack.getFormat() );
    videoTrack.setFormat(new VideoFormat("RGB", currentFormat.getSize(), currentFormat.getMaxDataLength(), currentFormat.getDataType(), currentFormat.getFrameRate()));
    // Instantiate and set the frame access codec to the data flow path.
    try
    // Try to retrieve a FramePositioningControl from the player.
    FramePositioningControl fpc = (FramePositioningControl) p.getControl("javax.media.control.FramePositioningControl");
    if (fpc == null)
    System.err.println("The player does not support FramePositioningControl.");
    System.err.println("There's no reason to go on for the purpose of this demo.");
    return false;
    Time duration = p.getStopTime();
    long totalFrames = 0;
    if (duration != Duration.DURATION_UNKNOWN)
    System.err.println("Movie duration: " + duration.getSeconds());
    totalFrames = fpc.mapTimeToFrame(duration);
    if (totalFrames != FramePositioningControl.FRAME_UNKNOWN)
    System.err.println("Total # of video frames in the movies: "
    + totalFrames);
    } else
    System.err.println("The FramePositiongControl does not support mapTimeToFrame.");
    } else
    System.err.println("Movie duration: unknown");
    long[] frames;
    if (totalFrames > 0L)
    double intervalDouble = Math.floor(totalFrames / 5.0);
    long interval = new Double(intervalDouble).longValue();
    frames = new long[5];
    frames[0] = 1;
    frames[1] = frames[0] + interval;
    frames[2] = frames[1] + interval;
    frames[3] = frames[2] + interval;
    frames[4] = frames[3] + interval;
    } else
    frames = new long[1];
    frames[0] = 1;
    // Codec codec[] = { new PreAccessCodec(), new PostAccessCodec()};
    Codec codec[] = { new OverlayCodec(frames)};
    videoTrack.setCodecChain(codec);
    catch (UnsupportedPlugInException e)
    System.err.println("The process does not support effects.");
    // Realize the processor.
    p.prefetch();
    if (!waitForState(p.Prefetched))
    System.err.println("Failed to realize the processor.");
    return false;
    // Display the visual & control component if there's one.
    setLayout(new BorderLayout());
    Component cc;
    Component vc;
    if ((vc = p.getVisualComponent()) != null)
    add("Center", vc);
    if ((cc = p.getControlPanelComponent()) != null)
    add("South", cc);
    // Start the processor.
    p.start();
    setVisible(true);
    return true;
    public void addNotify()
    super.addNotify();
    pack();
    * Block until the processor has transitioned to the given state.
    * Return false if the transition failed.
    boolean waitForState(int state)
    synchronized (waitSync)
    try
    while (p.getState() != state && stateTransitionOK)
    waitSync.wait();
    catch (Exception e)
    return stateTransitionOK;
    * Controller Listener.
    public void controllerUpdate(ControllerEvent evt)
    if (evt instanceof ConfigureCompleteEvent
    || evt instanceof RealizeCompleteEvent
    || evt instanceof PrefetchCompleteEvent)
    synchronized (waitSync)
    stateTransitionOK = true;
    waitSync.notifyAll();
    } else
    if (evt instanceof ResourceUnavailableEvent)
    synchronized (waitSync)
    stateTransitionOK = false;
    waitSync.notifyAll();
    } else
    if (evt instanceof EndOfMediaEvent)
    p.close();
    System.exit(0);
    * Main program
    public static void main(String[] args)
    if (args.length == 0)
    prUsage();
    System.exit(0);
    String url = args[0];
    if (url.indexOf(":") < 0)
    prUsage();
    System.exit(0);
    MediaLocator ml;
    if ((ml = new MediaLocator(url)) == null)
    System.err.println("Cannot build media locator from: " + url);
    System.exit(0);
    FrameAccess fa = new FrameAccess();
    if (!fa.open(ml))
    System.exit(0);
    static void prUsage()
    System.err.println("Usage: java FrameAccess <url>");
    * Inner class.
    * A pass-through codec to access to individual frames.
    public class PreAccessCodec implements Codec
    * Callback to access individual video frames.
    void accessFrame(Buffer frame)
    // For demo, we'll just print out the frame #, time &
    // data length.
    long t = (long) (frame.getTimeStamp() / 10000000f);
    System.err.println("Pre: frame #: " + frame.getSequenceNumber()
    + ", time: " + ((float) t) / 100f + ", len: "
    + frame.getLength());
    * The code for a pass through codec.
    // We'll advertize as supporting all video formats.
    protected Format supportedIns[] = new Format[] {
    new VideoFormat(null)
    // We'll advertize as supporting all video formats.
    protected Format supportedOuts[] = new Format[] {
    new VideoFormat(null)
    Format input = null, output = null;
    public String getName()
    return "Pre-Access Codec";
    // No op.
    public void open()
    // No op.
    public void close()
    // No op.
    public void reset()
    public Format[] getSupportedInputFormats()
    return supportedIns;
    public Format[] getSupportedOutputFormats(Format in)
    if (in == null)
    return supportedOuts;
    } else
    // If an input format is given, we use that input format
    // as the output since we are not modifying the bit stream
    // at all.
    Format outs[] = new Format[1];
    outs[0] = in;
    return outs;
    public Format setInputFormat(Format format)
    input = format;
    return input;
    public Format setOutputFormat(Format format)
    output = format;
    return output;
    public int process(Buffer in, Buffer out)
    // This is the "Callback" to access individual frames.
    accessFrame(in);
    // Swap the data between the input & output.
    Object data = in.getData();
    in.setData(out.getData());
    out.setData(data);
    // Copy the input attributes to the output
    out.setFormat(in.getFormat());
    out.setLength(in.getLength());
    out.setOffset(in.getOffset());
    return BUFFER_PROCESSED_OK;
    public Object[] getControls()
    return new Object[0];
    public Object getControl(String type)
    return null;
    public class OverlayCodec extends PreAccessCodec
    long[] myFrames;
    BufferedImage work;
    byte[] workData;
    int width;
    int height;
    int dataLen;
    RGBFormat supportedRGB = new RGBFormat(null, // size
    Format.NOT_SPECIFIED, // maxDataLength
    Format.byteArray, // dataType
    Format.NOT_SPECIFIED, // frameRate
    24, // bitsPerPixel
    3, 2, 1, // red/green/blue masks
    3, // pixelStride
    Format.NOT_SPECIFIED, // lineStride
    Format.FALSE, // flipped
    Format.NOT_SPECIFIED); // endian
    public OverlayCodec(long[] frames)
    // force specific input format
    supportedIns = new Format[] {
    supportedRGB};
    myFrames = new long[frames.length];
    System.arraycopy(frames, 0, myFrames, 0, frames.length);
    public String getName()
    return "Capture Codec";
    public Format setInputFormat(Format format)
    if ((format != null) && (format instanceof RGBFormat)
    && format.matches(supportedRGB))
    // set up working image if valid type
    // (it should be since we insisted!)
    Dimension size = ((RGBFormat) format).getSize();
    width = size.width;
    height = size.height;
    dataLen = width * height * 3;
    if ((dataLen > 0)
    && ((work == null) || (work.getWidth() != width)
    || (work.getHeight() != height)))
    // working image - same 3-byte format as buffer
    work = new BufferedImage(width, height,
    BufferedImage.TYPE_3BYTE_BGR);
    // reference to pixel data
    workData = ((DataBufferByte) work.getRaster().getDataBuffer()).getData();
    return format;
    * Callback to access individual video frames.
    void accessFrame(Buffer in)
    try
    if (Arrays.binarySearch(myFrames, in.getSequenceNumber()) >= 0)
    BufferToImage stopBuffer = new BufferToImage((VideoFormat) in.getFormat());
    Image stopImage = stopBuffer.createImage(in);
    BufferedImage outImage = new BufferedImage(140, 96,
    BufferedImage.TYPE_INT_RGB);
    Graphics og = outImage.getGraphics();
    og.drawImage(stopImage, 0, 0, 140, 96, null);
    FileOutputStream fout = new FileOutputStream("image"
    + in.getSequenceNumber() + ".jpg");
    writeImage(outImage, fout);
    catch (Exception e)
    e.printStackTrace();
    public int process(Buffer in, Buffer out)
    try
    accessFrame(in);
    BufferToImage stopBuffer = new BufferToImage((VideoFormat) in.getFormat());
    Image stopImage = stopBuffer.createImage(in);
    ImageToBuffer outImagebuffer = new ImageToBuffer();
    out = outImagebuffer.createBuffer(stopImage, p.getRate());
    // Swap the data between the input & output.
    in.copy(out, true);
    catch (Exception e)
    e.printStackTrace();
    return BUFFER_PROCESSED_OK;
    void writeImage(BufferedImage outImage, OutputStream os) throws Exception
    Iterator writers = ImageIO.getImageWritersByFormatName("jpg");
    ImageWriter writer = (ImageWriter) writers.next();
    ImageOutputStream ios = ImageIO.createImageOutputStream(os);
    writer.setOutput(ios);
    writer.write(outImage);
    ios.close();

    Hi,
    I have a jpeg movie file 60 mins long and a text file tell me five time-lines for breaking the movie. For example, break the movie at 10:21, 16:05�
    The final output should be five small jpeg movie files. Each file contains a 90 sec (30 sec before the break time and 60 sec after the break time).
    Do you know any java library (jar) contain the library that can help me on programming this? Any existing source code? Any SDK for a movie editor can do that?
    Please help.
    Thanks
    Kenny

  • Need to take a value from the csv file and query in a OAF page.

    Hello,
    I have a requirement to take the list of employee numbers in a csv file and display its corresponding job on the page.
    I have created a item 'MessageFileupload' where the user will upload the csv file containing the employee number and a Button 'Display Jobs' which will display the corresponding jobs on the page.
    Any idea how to take the values from the csv file and query it?
    Regards,
    den123.

    Hi ,
    Check
    http://oraclearea51.com/contribute/post-a-blog-article/csv-file-upload-for-oa-framework.html
    http://www.roseindia.net/jsp/upload-insert-csv.shtml
    Below code works from above blogs.
    package xx.oracle.apps.pa.Lab.webui;
    import java.io.BufferedReader;
    import java.io.IOException;
    import java.io.InputStreamReader;
    // import java.io.*;
    import oracle.apps.fnd.common.VersionInfo;
    import oracle.apps.fnd.framework.OAApplicationModule;
    import oracle.apps.fnd.framework.OAException;
    import oracle.apps.fnd.framework.server.OAViewObjectImpl;
    import oracle.apps.fnd.framework.webui.OAControllerImpl;
    import oracle.apps.fnd.framework.webui.OAPageContext;
    import oracle.apps.fnd.framework.webui.beans.OAWebBean;
    import oracle.jbo.domain.BlobDomain;
    import oracle.cabo.ui.data.DataObject;
    import oracle.jbo.Row;
    * Controller for ...
    public class deptCsvUploadCO extends OAControllerImpl
      public static final String RCS_ID="$Header$";
      public static final boolean RCS_ID_RECORDED =
            VersionInfo.recordClassVersion(RCS_ID, "%packagename%");
       * Layout and page setup logic for a region.
       * @param pageContext the current OA page context
       * @param webBean the web bean corresponding to the region
      public void processRequest(OAPageContext pageContext, OAWebBean webBean)
        super.processRequest(pageContext, webBean);
       * Procedure to handle form submissions for form elements in
       * a region.
       * @param pageContext the current OA page context
       * @param webBean the web bean corresponding to the region
      public void processFormRequest(OAPageContext pageContext, OAWebBean webBean)
        super.processFormRequest(pageContext, webBean);
        // Code Addition Started for CSV upload
        OAApplicationModule am = (OAApplicationModule) pageContext.getApplicationModule(webBean);
        OAViewObjectImpl vo = (OAViewObjectImpl) am.findViewObject("deptCsvVO1");
          //if ("GoBtn".equals(pageContext.getParameter(EVENT_PARAM)))
           if (pageContext.getParameter("GoBtn") != null)
          System.out.println("Button Pressed");
              DataObject fileUploadData =(DataObject)pageContext.getNamedDataObject("FileUploadItem");
              String fileName = null;
              String contentType = null;
              Long fileSize = null;
              Integer fileType = new Integer(6);
              BlobDomain uploadedByteStream = null;
              BufferedReader in = null;
                      try
                      fileName = (String)fileUploadData.selectValue(null, "UPLOAD_FILE_NAME");
                      contentType =(String)fileUploadData.selectValue(null, "UPLOAD_FILE_MIME_TYPE");
                      uploadedByteStream = (BlobDomain)fileUploadData.selectValue(null, fileName);
                      in = new BufferedReader(new InputStreamReader(uploadedByteStream.getBinaryStream()));
                      fileSize = new Long(uploadedByteStream.getLength());
                      System.out.println("fileSize"+fileSize);
                      catch(NullPointerException ex)
                      throw new OAException("Please Select a File to Upload", OAException.ERROR);
                      try{ 
                      //Open the CSV file for reading 
                      String lineReader=""; 
                      long t =0;
                      String[] linetext; 
                      while (((lineReader = in.readLine()) !=null) )
                      //Split the deliminated data and
                      if (lineReader.trim().length()>0)
                      System.out.println("lineReader"+lineReader.length());
                      linetext = lineReader.split(","); 
                      t++;
                      //Print the current line being
                      if (!vo.isPreparedForExecution())
                              vo.setMaxFetchSize(0);
                              vo.executeQuery();
                        System.out.println("Trimmed "+  linetext[1].replace("\"", ""));
                      Row row = vo.createRow();
                      row.setAttribute("Deptno", linetext[0].trim());
                      row.setAttribute("Dname",linetext[1].trim().replace("\"", ""));
                      row.setAttribute("Loc",linetext[2].trim().replace("\"", ""));
                      //row.setAttribute("Column4", linetext[3].trim());
                      vo.last();
                      vo.next();
                      vo.insertRow(row);
                      catch (IOException e)
                            throw new OAException(e.getMessage(),OAException.ERROR);
              //else if (pageContext.getParameter("Upload") != null)
              am.getTransaction().commit();
              throw new OAException("Uploaded SuccessFully",OAException.CONFIRMATION);     
    }Thanks,
    Jit

  • How can i delete movies from my macboook to make space and keep them on icloud?

    How can i delete movies from my macboook to make space and keep them on icloud?

    Since iTunes Match nor iCloud supports storing video content at this time (other than music videos purchased from the iTunes Store) what you want to do is not possible. There may be other cloud storage solutions out there, but none that integrate with iTunes.
    FYI, if any of the movies are purchased from the iTunes Store the service Apple calls iTunes in the Cloud by be a partial solution for you. However it is strongly recommended that keep a local backup of all your purchased media and not depend solely on a third party (Apple) to keep your data safe.

Maybe you are looking for

  • Help deleting pirated Acrobat 9 Pro Extended and copying new 9 pro

    Hi I originally bought a copy of Adobe 9 Pro Extended on ebay for 250 USD but unfortunately it turned out to be priated. I discovered this only when I rang Adobe about there being no serial number shown in the software. Other than that I would never

  • Will i loose all my time capsule data if i upgrade to mountain lion from snow leopard

    i am thinking about upgrading from SL to Mountain Lion is there anything major i should be concerned with? will my time machine backups be availible? i mainly use Logic Pro

  • AWE32 and Windows98 doesnt wo

    Hiya, call me TG well i got a windows98 computer and i tried to install my Sound Blaster AWE32. i plugged it in my motherboard on the ISA slot and i booted up my computer.he detected the card so i tried to install it with a good driver, which i didnt

  • XI - Receiver Determination Condition not working

    I created a Condition on my Receiver Determination to stop some messages from being sent based on a field in our message. It works when using some test tools (workbench, SOAPUI, etc) but not when coming from our MDM system.  The beginning of the inpu

  • CreateQueueConnection produce null

    Hi all, I've been having trouble with my codes. The codes is like below. The purpose of this code is to established a connection with a JMS server, so I can retrieve messages in the queue. The problem is, createQueueConnection always produce null. I