How can 1 send a mail in which the content is an image file,  by JavaMail?

I want to send a mail which has content of a gif file. I don't want an attachment. It seems that the content type "image/gif" is not supported.
Many thanks

u can do the following
the solution is on implementing the DataSource class and overwrite getInputStream method
see the following code:
public static void setGifContent(Message msg) throws MessagingException {
FileInputStream s;
          try {
               s = new FileInputStream("c:\\try.gif");
          byte b[];
               b = new byte[s.available()];
          s.read(b);
          System.out.println("byte size"+b.length);
          String x=new String(b);
          ByteArrayInputStream b1=new ByteArrayInputStream(b);
// gif DataSource is an inner class
msg.setDataHandler(new DataHandler(new GIFDataSource(b)));
          } catch (FileNotFoundException e) {
               // TODO Auto-generated catch block
               e.printStackTrace();
     catch (IOException e1) {
          // TODO Auto-generated catch block
          e1.printStackTrace();
static class GIFDataSource implements DataSource {
private byte b[];
public GIFDataSource(byte[] stream) {
this.b=stream;
// Return image stream in an InputStream.
// A new stream must be returned each time.
public InputStream getInputStream() throws IOException {
if (html == null) throw new IOException("Null HTML");
ByteArrayInputStream b1=new ByteArrayInputStream(b);
return b1;
public OutputStream getOutputStream() throws IOException {
throw new IOException("This DataHandler cannot write HTML");
public String getContentType() {
return "image/gif";
public String getName() {
Message was edited by:
[email protected]

Similar Messages

  • How to send a mail by ckicking the button using java

    hi,
    how to send a mail by clicking the button (like payroll silp in that contain one button if we click that it autometically go through the mail as a attachment) pls frd to me my gmail is [email protected]

    Hi,
    It seems we are doing the homework for you; to make you start with something; look at the sample code below and try to understand it first then put the right values
    to send an email with an attachement.
    import java.awt.BorderLayout;
    import java.awt.event.ActionEvent;
    import java.util.Date;
    import java.util.Properties;
    import javax.activation.DataHandler;
    import javax.activation.FileDataSource;
    import javax.mail.Message;
    import javax.mail.MessagingException;
    import javax.mail.Multipart;
    import javax.mail.Session;
    import javax.mail.Transport;
    import javax.mail.internet.InternetAddress;
    import javax.mail.internet.MimeBodyPart;
    import javax.mail.internet.MimeMessage;
    import javax.mail.internet.MimeMultipart;
    import javax.swing.AbstractAction;
    import javax.swing.Action;
    import javax.swing.JButton;
    import javax.swing.JComponent;
    import javax.swing.JFrame;
    import javax.swing.JTextField;
    public class Main {
          * @param args
         public static void main(String[] args) {
              // Create the frame
              String title = "Frame Title";
              JFrame frame = new JFrame(title);
              // Create a component to add to the frame
              JComponent comp = new JTextField();
              Action action = new AbstractAction("Button Label") {
                   // This method is called when the button is pressed
                   public void actionPerformed(ActionEvent evt) {
                        System.out.println("sending email with attachment");
                        sendEmail();
              // Create the button
              JButton button = new JButton(action);
              // Add the component to the frame's content pane;
              // by default, the content pane has a border layout
              frame.getContentPane().add(comp, BorderLayout.SOUTH);
              frame.getContentPane().add(button, BorderLayout.NORTH);
              // Show the frame
              int width = 300;
              int height = 300;
              frame.setSize(width, height);
              frame.setVisible(true);
         protected static void sendEmail() {
              String from = "me@localhost";
              String to = "me@localhost";
              String subject = "Important Message";
              String bodyText = "This is a important message with attachment";
              String filename = "c:\\tmp\\message.pdf";
              Properties properties = new Properties();
              properties.put("mail.stmp.host", "localhost");
              properties.put("mail.smtp.port", "25");
              Session session = Session.getDefaultInstance(properties, null);
              try {
                   MimeMessage message = new MimeMessage(session);
                   message.setFrom(new InternetAddress(from));
                   message.setRecipient(Message.RecipientType.TO, new InternetAddress(
                             to));
                   message.setSubject(subject);
                   message.setSentDate(new Date());
                   // Set the email message text.
                   MimeBodyPart messagePart = new MimeBodyPart();
                   messagePart.setText(bodyText);
                   // Set the email attachment file
                   MimeBodyPart attachmentPart = new MimeBodyPart();
                   FileDataSource fileDataSource = new FileDataSource(filename) {
                        @Override
                        public String getContentType() {
                             return "application/octet-stream";
                   attachmentPart.setDataHandler(new DataHandler(fileDataSource));
                   attachmentPart.setFileName(filename);
                   Multipart multipart = new MimeMultipart();
                   multipart.addBodyPart(messagePart);
                   multipart.addBodyPart(attachmentPart);
                   message.setContent(multipart);
                   Transport.send(message);
              } catch (MessagingException e) {
                   e.printStackTrace();
    }The sample above is not ideal so you need to go through it and start to ask me some questions if you have
    Let me know if you miss something
    Regards,
    Alan Mehio
    London,UK

  • How can I get Mail to capitalise the first letter of a sentence?

    Hello all,
    this is my first time using apple Support Community.  i am a new apple user and have just got my first MacBookPro (its wonderful).  however, i am having some difficulties. 
    How can i get Mail to capitalize the first letter of a sentence and also capitalize 'i' as 'I' automatically?
    Also, how can i get apps like Pages to do the same? and for that matter typing into internet sites like this one? look at the lack of automatic punctuation!!
    Thank you all for any advice and tips you may have. 
    Paul.

    I don't think whether it's easier or not is really an issue.  The problem is that all of these wonderful technologies are taking away our understanding of how to communicate in writing.  It's not a matter of being lazy and not "wanting" to do it, but rather getting to a point where many people "can't" do it.
    I certainly wasn't pointing any fingers.  I use a calculator (or computer if I happen to be on one at the time) to do the most basic math calculations.  I can be out to lunch with co-workers and we have to pull out a calculator to split a bill 4 ways.  I went through school at a time when calculators were not permitted.  So, at one time, I could have easily done all of that stuff in my head.  So far as math goes, my mind has turned to mush a long time ago.  I doubt I could work my way through a long division problem at this point... even if I sat there and really tried.
    Computers were not generally consumer items when I was growing up.  So I didn't grow up in a world with spell checking.  I have certainly grown to use it though and I'm sure my ability to spell properly has diminished somewhat because of it.  I tend to be less careful when typing something out.  If I'm not sure of the spelling on something, I just let my computer either fix it or give me a suggestion for the corrected spelling.  Fortunately, I grew up having to rely on my own ability to spell, so with that foundation, I tend to do fairly well when it comes to spelling.
    We're at a point now where systems can correct grammar and sentence structure.  I think all of these are great tools to help us out, but they shouldn't be used to take the place of actually knowing how to do things.  Having said that, I'm fairly sure that is exactly what will happen.  Just as today, I rely almost entirely on some form of electronics for everyday math, I'm sure people growing up today with expert systems able to correct everything will rely on those equally.

  • How can I allow a user (client) to choose a local image file (on his hard d

    How can I allow a user (client) to choose a local image file (on his hard drive) and modify it using an applet from his browser ? I am trying to develop a web page that enables the user to choose an Image file, manipulate the image using a java applet, and display the results.
    Using Java�s �JFileChooser� does not work when called from a browser, probably due to security privileges issues. On the other hand, I can choose and upload any file using a JavaScript form:
    <FORM METHOD="POST" ENCTYPE="multipart/form-data" ACTION="process.asp">
    <INPUT TYPE=FILE NAME="file1"><BR>

    It seems that I can choose an image file with a Java script form and process an image with an applet. How can I choose a file AND process it locally ?
    (I do not wish to upload the file to the server using JavaScript form and then back to the client�s applet for processing since it will be a tremendous waste of resources).
    Will appreciate any solution.
    Thanks !
    ( my email is: [email protected] )

    "Using Java�s �JFileChooser� does not work when called from a browser, probably due to security privileges issues. "
    You can do this if you sign the applet...

  • How can I possible lose my entire photo library/ referenced master image file if I have downloaded all my images directly onto Aperture?

    How can I possible lose my entire photo library/ referenced master image file if I have downloaded all my images directly onto Aperture?

    CeliaJane, you need to distinguish between the Aperture Library and the Aperture Application.
    Aperture stores your images in a database, and it is this database that we have to find and probably to repair, not the application (hopefully). And since you do not see any images, I suspect that Aperture created a new, empty Aperture Library,and you are now viewing this empty library. Usully the library sits in your Pictures fiolder.
    Look into your Pictures folder, if you see a file with a colorful icon with three pictures, called something.aplibrary, as shown above. And also enter ".applibrary" into the "Spotlight" searchfield in the upper right corner of your screen. If you have more than one Library, you should be able to find them this way.
    The largest file you find will probably be the correct library.
    When you have found the correct file called aperturexxxx.aplibrary, try to open it in "First Aid" mode.
    Select the Library and press down "command" and "option" key at the same time, while you double click the library.
    Now the First Aid dialogue should appear:
    Select: Repair Permissions" and see if you can open the Library again. If it did not help, try the other two options in turn.
    Regards
    Léonie

  • How to send a mail prior to the due date

    Hi all,
                 I would like to send a mail prior to the due date. Please let me know how to go to the previous step after the loop is executed once in workflows.
    Thanks,
    Sirisha N.

    Hi all,
                 I would like to send a mail prior to the due date. Please let me know how to go to the previous step after the loop is executed once in workflows.
    Thanks,
    Sirisha N.

  • How to send e-mail alert to the user job is successful or failed.

    Hi Experts,
    I have scheduled a job using DBMS_JOB Package; in this job I am calling a procedure.
    How can we send an e-mail(alert) to the user if the job is successful (or) job fails.
    If the job is successfully completed, then we have to send mail as “Job is completed successfully along with job name”.
    If the job fails we have to send email as “error message of the job along with job name”(why the job is failed).
    This alert should be sending automatically no manual intervention.
    Please help me.
         CREATE OR REPLACE PROCEDURE APPS_GLOBAL.arc_procedure (P_ID IN NUMBER)
         IS
         CURSOR C IS SELECT id,table_name,archive_table_name,where_condition
         FROM apps_global.control_ram
         WHERE id = p_id
         ORDER BY id, table_name;
         BEGIN
            FOR I IN C
            LOOP
               EXECUTE IMMEDIATE
                  'INSERT INTO '
               || I.ARCHIVE_TABLE_NAME
               || '
         (SELECT * FROM '
               || I.TABLE_NAME
               || ' WHERE '
               || I.WHERE_CONDITION
               || ')';
               EXECUTE IMMEDIATE
                  'DELETE FROM '
               || I.TABLE_NAME
               || ' WHERE '
               || I.WHERE_CONDITION
               || '';
               COMMIT;
            END LOOP;
         EXCEPTION
            WHEN OTHERS
            THEN
               ROLLBACK;
               DBMS_OUTPUT.PUT_LINE (
               'An error was encountered - ' || SQLCODE || ' -ERROR- ' || SQLERRM);
         END arc_procedure;
         /This is my job.
    DECLARE
      X NUMBER;
    BEGIN
      SYS.DBMS_JOB.SUBMIT
      ( job       => X
       ,what      => 'APPS.arc_procedure(1);'
       ,next_date => to_date('05/01/2013 00:00:00','dd/mm/yyyy hh24:mi:ss')
       ,interval  => 'TRUNC(SYSDATE+1)'
       ,no_parse  => FALSE
      SYS.DBMS_OUTPUT.PUT_LINE('Job Number is: ' || to_char(x));
    COMMIT;
    END;
    /Thanks in advance.

    Hi,
    I think you can do by creating mailing procedures and call it in the loop and outside the loop.
    There would be two procedure one in inside loop which will execute after successfull completion of the loop.
    Other would be in the exception block like i shown in the below code you have written;
    V_variable_1 you can use as a parameter for what is the error occured.
    like suppose your mailing procedure name is Status_email and Status_email_1.
    CREATE OR REPLACE PROCEDURE APPS_GLOBAL.arc_procedure (P_ID IN NUMBER)
         IS
         CURSOR C IS SELECT id,table_name,archive_table_name,where_condition
         FROM apps_global.control_ram
         WHERE id = p_id
         ORDER BY id, table_name;
    V_VARIABLE_1 NUMBER;
    V_VARIABLE_2 VARCHAR2(400);
         BEGIN
            FOR I IN C
            LOOP
               EXECUTE IMMEDIATE
                  'INSERT INTO '
               || I.ARCHIVE_TABLE_NAME
               || '
         (SELECT * FROM '
               || I.TABLE_NAME
               || ' WHERE '
               || I.WHERE_CONDITION
               || ')';
               EXECUTE IMMEDIATE
                  'DELETE FROM '
               || I.TABLE_NAME
               || ' WHERE '
               || I.WHERE_CONDITION
               || '';
               COMMIT;
                     STATUS_EMAIL;
            END LOOP;
         EXCEPTION OTHERS THEN
    V_VARIABLE_1 :=SQLCODE;
    V_VARIABLE_2 :=SQLERRM;
               ROLLBACK;
    STATUS_EMAIL_1(V_VARIABLE_1,V_VARIABLE_2);
         END arc_procedure;
         / You can refer to sample email procedure i have created for you.
    CREATE OR REPLACE PROCEDURE STATUS_EMAIL
    AS
       v_From       VARCHAR2(80) := 'EMAIL_ID';
       v_Recipient  VARCHAR2(80) := 'EMAIL_ID';
    --YOU CAN SEND EMAIL TO MORE THAT ONE USER SO YOU CAN USE LIKE BELOW VARIABLE....
       v_Recipienttt  VARCHAR2(80) := 'EMAIL_ID';
       v_Subject    VARCHAR2(80) := 'SUBJECT_FOR_THE_MAIL';
       v_Mail_Host  VARCHAR2(30) := 'MAIL_SERVERS_HOST_IP(SMTP_SERVER)';
       v_Mail_Conn  utl_smtp.Connection;
       crlf         VARCHAR2(2)  := chr(13)||chr(10);
    BEGIN
      v_Mail_Conn := utl_smtp.Open_Connection(v_Mail_Host);
      utl_smtp.Helo(v_Mail_Conn, v_Mail_Host);
      utl_smtp.Mail(v_Mail_Conn, v_From);
      utl_smtp.Rcpt(v_Mail_Conn, v_Recipient);
      utl_smtp.Rcpt(v_Mail_Conn, v_Recipienttt);
    --OPEN DATA CONNNECTION
      UTL_SMTP.OPEN_DATA(v_mail_conn);
    --MAIL HEADER
      utl_smtp.write_DATA(v_Mail_Conn,'Date: '   || to_char(sysdate, 'DD-MON-YYYY hh:mi:ss AM') || crlf);
      utl_smtp.write_DATA(v_Mail_Conn,'From: '   || v_From || crlf );
      utl_smtp.write_DATA(v_Mail_Conn,'Subject: '|| v_Subject || ||crlf);
      utl_smtp.write_DATA(v_Mail_Conn,'To: '     || v_Recipient || crlf);
      utl_smtp.write_DATA(v_Mail_Conn,'Cc: '       || v_Recipienttt ||','|| crlf);
    --MAIL BODY
      utl_smtp.write_DATA(v_Mail_Conn,'MIME-Version: 1.0'|| crlf );
      utl_smtp.write_DATA(v_Mail_Conn,'Content-Type: multipart/mixed;'|| crlf );
      utl_smtp.write_DATA(v_Mail_Conn,' boundary="-----SECBOUND"'|| crlf ||crlf );
      utl_smtp.write_DATA(v_Mail_Conn,'-------SECBOUND'|| crlf );
      utl_smtp.write_DATA(v_Mail_Conn,'Content-Type: text/plain;'|| crlf);
      utl_smtp.write_DATA(v_Mail_Conn,'Content-Transfer_Encoding: 7bit'|| crlf);
      utl_smtp.write_DATA(v_Mail_Conn,'Procedure is successfully complited without error'|| crlf);
      utl_smtp.write_DATA(v_Mail_Conn,null|| crlf);
      utl_smtp.write_DATA(v_Mail_Conn,null|| crlf);
    utl_smtp.write_DATA(v_Mail_Conn,null|| crlf);
      utl_smtp.write_DATA(v_Mail_Conn,'Dear All, '|| crlf);
      utl_smtp.write_DATA(v_Mail_Conn,'Procedure is successfully complited without error'||'.' ||crlf);
      utl_smtp.write_DATA(v_Mail_Conn,null|| crlf);
      utl_smtp.write_DATA(v_Mail_Conn,null|| crlf);
      utl_smtp.write_DATA(v_Mail_Conn,null|| crlf);
      utl_smtp.write_DATA(v_Mail_Conn,null|| crlf);
      utl_smtp.write_DATA(v_Mail_Conn,'Regards, '|| crlf);
      utl_smtp.write_DATA(v_Mail_Conn,null|| crlf);
      utl_smtp.write_DATA(v_Mail_Conn,'any_name '|| crlf);
      utl_smtp.write_DATA(v_Mail_Conn,null|| crlf);
      utl_smtp.write_data(v_Mail_Conn, utl_tcp.CRLF ||'This mail is auto generated.');
      --CLOSE CONNECTION
      UTL_SMTP.CLOSE_DATA(v_mail_conn);
      utl_smtp.Quit(v_mail_conn);
    EXCEPTION
      WHEN utl_smtp.Transient_Error OR utl_smtp.Permanent_Error then
        raise_application_error(-20000, 'Unable to send mail: '||sqlerrm);
    END;
    /cheers..

  • How can I get Mail to show the correct cc: address?

    Generally, I always set Apple Mail to cc: a copy of any message I send out  to me in my regular user name. For some strange reason, since I upgraded to Mavericks last year, instead of migrating my name to the cc: line in any message I send, on one of my computers some other version of my name with my college graduating class at the end of it and many spaces between my first and last name appears in the cc: line instead. What has gone wrong in this particular computer, and where is it in the preferences or other low-level files that I can fix it? I try to remove the faulty address from my list, but it keeps coming back to haunt me when next I boot up my computer. I find the file in Contacts on that computer, but for some reason I cannot delete it. Any suggestions about how to fix this problem?

    HI,
    As far as I am aware Messages marks or time stamps an iMessage at the time of receipt rather then the time you got around to reading it.
    I will admit that in most cases reading and receiving as the app opens will be near enough the same time in some conversations.
    Adding Time Stamps to Chat is what iChat has always done particularly with AIM based Chats.
    The "Sync" in Messages is "display on all devices"  and after that each iMessages is dealth with separately on each device.
    There is no syncing of deleting/dimssing an iMessages or having read it on another device.
    8:58 PM      Tuesday; April 16, 2013
      iMac 2.5Ghz 5i 2011 (Mountain Lion 10.8.3)
     G4/1GhzDual MDD (Leopard 10.5.8)
     MacBookPro 2Gb (Snow Leopard 10.6.8)
     Mac OS X (10.6.8),
     Couple of iPhones and an iPad
    "Limit the Logs to the Bits above Binary Images."  No, Seriously
    Message was edited by: Ralph Johns (UK)

  • Hi!! how can i read mails present in the sub folder from outlook inbox

    hi every one...
    i have to read a sub folder present in the inbox from outlook.
    for that i tried as
    Session session = Session.getDefaultInstance(props, null);
    store = session.getStore("pop3");
    store.connect("URL", "USERNAME","PASSWORD");
    inbox = store.getFolder("INBOX/subFolderName");but it shows an error like Folder Not Exist...
    can any one suggest me to solve this problem to read mails present in the sub folder.
    Thank you

    thank you for support guys...
    so if i am using pop3 protocal, it cant read the sub folders present in the outlook inbox ..
    is there any alternative way to achieve this ...?

  • How can i prevent mail from downloading the same messages over and over again?

    is there any way to prevent Mail from downloading the same messages over and over again? Mail has a minimum of "50 recent messages" to download, but i hate having to delete them every time i check for new mail! why doesn't the program remember if you have already downloaded a message, and suppress any subsequent downloads???

    Same issue since Mavericks.

  • How to send a mail with rich text content like using outlook

    Hi All. I have a serious problem. When we send the mail from
    outlook express or yahoo, we can send the mail with the text appearing
    in the mail with bold font , with different colors, underlined etc.
    If i type this kind of text in any word processor and mail that content through java mail then the message should be received by the recepient with all that bold,color and underlines etc as it is. Can anybody please help me in this case ASAP.

    Go to this site and download the htmlArea Javascripts. Embedd them in your HTML and it will turn your normal HTML Text Area into Rich Text Area. Your real code will include all HTML tags. For example if you select some text and make it bold , the real HTML output will look like <B>YOUR TEXT </B>. So i guess your recipient should be able to receive HTML contents.
    http://www.interactivetools.com/products/htmlarea/

  • How can I scan multiple pages from the ADF to one pdf file?

    I wirelessly scan double-sided multiple-page documents, typically 37 pages, using an ADF (Automatic Document Feeder) from my HP Officejet Pro 8600 N911g to my MacBook Pro. The scanner works fine except it tries to save the files as 37 separate files and either it or the MacBook runs out of memory as it turns it into a massive file, 300mb or so. How can I get it to just scan it as one file? I have the quality setting at 300dpi.
    Webbo51
    This question was solved.
    View Solution.

    Hello again webbo51,
    Thanks for the information I requested.
    I am going to add a screen shot of what you should be seeing when scanning with the HP software.
    You must have PDF selected to be able to scan a multiple page document into one folder.
    Once you select PDF, you will see the option to Save as one file.
    Please feel free to write me back if you have any other questions.
    Thanks again for your time.
    Cheers, 
    Click the “Kudos Thumbs Up" at the bottom of this post to say “Thanks” for helping!
    Please click “Accept as Solution ” if you feel my post solved your issue, it will help others find the solution.
    W a t e r b o y 71
    I work on behalf of HP

  • How can I set timings to increase the size of an image in a Keynote presentation?

    I know how to use inspector to bring in and fade out text boxes, but at the end of a slide I have a graphic (that is at the bottom of the slide during the rest of the slide) that I want to increase the size of to take up the entire slide.  How can I do this?
    Thanks

    Welcome to Apple Support Communities.
    The effect you're looking for is 'Scale'
    In Keynote '09, 5.1.1 select the graphic.
    Click Inspector in the tool bar, Build Inspector (3rd icon from the left), (Build In and Build Out are both set to None for this step) Effect, Action, and then Scale.
    It rescales ('zooms') the selected item (image) up or down from 0% to 200%
    Clicking on the More Options button at the bottom opens a drawer to the left, and gives you more control over how the build occurs, whether they happen automatically, timed, or when you click, and re-order build steps.
    At 200%, double the original size, resolution could be a problem. There is a workaround, because it also scales smaller, down to 0%. So I would scale the graphic down 'small' as the first step to fit at the bottom, (even hide it behind a background-colored box) as you scale it down, and then at the end, scale up to full size to fill the screen at 'normal' resolution.
    In the attached example, I use a 'scale' up to go from 100% to 130% on a map, and use arrows and a flashing line to point out the road where a specific business is located with 12 steps. Some elements in my slides have been intentionally obscured. For simplicity, I've eliminated showing any steps but the initial title and the scale.

  • If your Iphone 2 is disabled, how can you restore it without losing the contents? We know the right passcode.

    We are trying to restore a disabled Iphone 3. It does not have active phone service, but is used for apps. We know the correct passcode but my son entered it wrong too many times and it disabled. The phone says to connect to ITunes but that is not working because of the passcode. Does anyone know how to restore the phone without losing the contents?

    You will have to restore, losing anything not saved to your computer.

  • TS3276 I am unable to access mail on icloud or send mail through the icloud account.  How can I get mail routed through the icloud account.

    I am unable to access mail on icloud or send mail through the icloud

    Here is how to set up your iCloud email account:
    http://www.apple.com/support/macosx/mailassistant/

Maybe you are looking for

  • Document vs. DocumentFragment

    What is the best practice for generating fully-functional XMLDocuments from transforms using XSLProcessor? Most of the processXSL() methods generate DocumentFragments. Why? Sometimes when I append a node from a DocumentFragment to a new XMLDocument (

  • How can I group student scores into quintile using SQL Server 2008

    Can anyone help me to group student scores into quintile. I think there is a feature in SQL Server 2012, but still we are have not upgrade to it as we are using 2008R2. I tried Ntile(5) but it not generating the desired result. I need below Quintile

  • Port Translation (Non to Standard Ports)

    Hi Guys I would like some advise/ideas on the best solution for the below. I have a application server which uses non standard HTTP/HTTPS ports. What I want is a solution to translate these ports to standard ports. Client 1 accesses the site on port

  • How could i rename site name of a page?

    Shall i edit the name of the site?

  • Audio/video desynchronization

    Hi, I've been capturing fairly long clips from a DV tape, using the firewire input, and I noticed a great desynchronization in the audio. At some points of more than 10 SECONDS! It starts at a certain point of the clip, or at least it becomes apparen