"Insufficient Data" or "File damaged and could not be repaired"

I have two clients who send PDFs on a regular basis. Every time, I get one of two error messages:
"Insufficient data for an image" or "There was an error opening the document. The file is damaged and could not be repaired."
Several other people in the office also running Windows XP can open the PDFs from these two clients. I have followed all the trouble suggested by Adobe, and still have the same issue on my computer. I have uninstalled Reader 9 and tried installing Reader 8 and Reader 7, and Adobe Acrobat 7.0 - all have the same issue from these two clients on my computer. Everything else opens fine from other clients.
** Help with any Suggestions to fix this!

Hi Graffiti, Here is the link together with the secutiry details and procedure.
https://www.introducers.abbey.com/secureindex.asp
?LaunchPage=/content/info/HomePages/welcome.asp
When you get into page, click on 'logon'. A box will appear requesting security info. Enter as follows:
[login info deleted]
Then click on LOGON in bottom right hand corner. This takes you to new page - click on ' products and calculators' on right hand list. Then click 'Mortgage Guide' on drop down list. It is this pdf/HTML file that won't open.
Steve

Similar Messages

  • CS2 File Damaged and Could Not Be Repaired

    We are a Windows XP shop that receives Illustrator files from customers and vendors. About a month or so ago we started getting a File Damaged and Could not be Repaired errors message when we would try and open Illustrator files received via email If the same file is sent via FTP we can open it.
    If we forward the file to someone who has Illustrator 10 installed to open the file it works.
    Any ideas?

    Illustrator file corruption during transfer as an e-mail attachment can usually be avoided by placing files in a Zip or StuffIt archive before transmission.
    As to corrupted files being readable in earlier versions of Illustrator, a possible explanation is stricter format standards checking in more recent versions.

  • When I attempt to open a PDF file I saved from a website, I get the message "There was an error opening this document. The file is damaged and could not be repaired." Is there any way to correct this problem?

    When I attempt to open a PDF file I saved from a website using Safari, I get the message "There was an error opening this document. The file is damaged and could not be repaired." When I save the same PDF file using FireFox it opens up immediately. Is there any way to correct this problem with Safari?

    Back up all data.
    Triple-click the line of text below to select it, the copy the selected text to the Clipboard (command-C):
    /Library/Internet Plug-ins
    In the Finder, select
    Go ▹ Go to Folder
    from the menu bar, or press the key combination shift-command-G. Paste into the text box that opens (command-V), then press return.
    From the folder that opens, remove any items that have the letters “PDF” in the name. You may be prompted for your login password. Then quit and relaunch Safari, and test.
    The "Silverlight" web plugin distributed by Microsoft can also interfere with PDF display in Safari, so you may need to remove it as well, if it's present.
    If you still have the issue, repeat with this line:
    ~/Library/Internet Plug-ins
    If you don’t like the results of this procedure, restore the items from the backup you made before you started. Relaunch Safari again.

  • With OSX10.7.5 and Adobe Reader 11.0.02 when I try to open a PDF downloaded from the web I get 'There was an error opening this document. This file is damaged and could not be repaired. Preview will not open either. Older PDFs OK.

    I am running OS X 10.7.5 and Adobe Reader 11.0.02. In the last few days I have been unable to open PDF's downloaded from the web. Reader gives the error message 'There was an error opening this document. The file is damaged and could not be repaired'. Removing Reader and trying to use Preview to open these files give the error 'Preview cannot open this file. It may be damaged or use a file format that Preview doesn't recognise' (or something like that). Downloading the same files with Reader removed from my Mac Preview opens the files OK.
    I was recently prompted to update Adobe software but did not note exactly what the update was nor when it was done.
    Reader and Preview will both open PDFs I downloaded a week ago. Reader will also open files downloaded on another Mac running OS X 10.0.0 and copied to my Mac. Any ideas?

    Back up all data.
    Triple-click the line of text below to select it, the copy the selected text to the Clipboard (command-C):
    /Library/Internet Plug-ins
    In the Finder, select
    Go ▹ Go to Folder
    from the menu bar, or press the key combination shift-command-G. Paste into the text box that opens (command-V), then press return.
    From the folder that opens, remove any items that have the letters “PDF” in the name. You may be prompted for your login password. Then quit and relaunch Safari, and test.
    The "Silverlight" web plugin distributed by Microsoft can also interfere with PDF display in Safari, so you may need to remove it as well, if it's present.
    If you still have the issue, repeat with this line:
    ~/Library/Internet Plug-ins
    If you don’t like the results of this procedure, restore the items from the backup you made before you started. Relaunch Safari again.

  • Cannot open PDF - "file is damaged and could not be repaired"

    We created a signable, saveable, Reader Extended PDF in Acrobat X 10.1.4, with a Submit button that exports it using the "PDF The complete document" format to a .php page on our website using the url: http://www.todayscihld.us/pdfscript/fdf.php?form_name=WebForm 
    This is the .php page that's supposed to receive the export via the submit button and email it as an attachment:
    <?php
    // $form_name is provided in the url that calls this page, allowing this page
    // to be called from different PDF's, yet customized for each one
    $date = (date ("m/d/y"));
    $time = (date ("H:i:s T"));
    $tmpname = (date ("mdy-His"));
    $message = '
    This is a multi-part message in MIME format.
    ------=_NextPart_000_0007_01C37EC6.3F062EA0
    Content-Type: text/plain;
        charset="iso-8859-1"
    Content-Transfer-Encoding: 7bit
    A '.$form_name.' was submitted from the Website at '.$time.' on '.$date.'.
    (attachment: '.$form_name.')
    ------=_NextPart_000_0007_01C37EC6.3F062EA0
    Content-Type: application/vnd.fdf;
        name="PDF-'.$tmpname.'.pdf"
    Content-Transfer-Encoding: base64
    Content-Disposition: attachment;
        filename="PDF-'.$tmpname.'.pdf"
    '.base64_encode(file_get_contents('php://input')).'
    ------=_NextPart_000_0007_01C37EC6.3F062EA0--
    $recip = "[email protected]";
    $subject = $form_name;
    $headers = "From: Website <[email protected]>\n";
    $headers .= "Return-Path: <[email protected]>\n";
    //use the following line for bcc:
    //$headers .= "bcc: [email][email protected][/email]\n";
    $headers .= "Content-Type: multipart/mixed; boundary=\"----=_NextPart_000_0007_01C37EC6.3F062EA0\"\n";
    $status = mail($recip, $subject, $message, $headers);
    Header("Location: http://www.todayschild.us/page.php?3");
    ?>
    Most of the time this works, however some of the time we get blank PDF files (<10KB), and sometimes we get filled PDF files that we cannot open in Adobe Reader X 10.1.4 - we get the "file is damaged and could not be repaired" error.  However, I can view this "damaged" pdf just fine in the Chrome built-in PDF viewer, and I can open it using Foxit Reader and Nitro Reader.  And if I open it in one of those programs and then save it under a new name, I can open the newly saved file in Adobe Reader.  So why is it that everything except Adobe Reader can open this file?
    Here's one of these problem PDF files: https://dl.dropbox.com/u/65535781/PDF-112612-162749.pdf
    Can anyone help me figure out what's going wrong, and what we can do to fix it? 

    Back up all data.
    Triple-click the line of text below to select it, the copy the selected text to the Clipboard (command-C):
    /Library/Internet Plug-ins
    In the Finder, select
    Go ▹ Go to Folder
    from the menu bar, or press the key combination shift-command-G. Paste into the text box that opens (command-V), then press return.
    From the folder that opens, remove any items that have the letters “PDF” in the name. You may be prompted for your login password. Then quit and relaunch Safari, and test.
    The "Silverlight" web plugin distributed by Microsoft can also interfere with PDF display in Safari, so you may need to remove it as well, if it's present.
    If you still have the issue, repeat with this line:
    ~/Library/Internet Plug-ins
    If you don’t like the results of this procedure, restore the items from the backup you made before you started. Relaunch Safari again.

  • Trouble opening pdf's - I have received several pdf's from a friend via e-mail (Thunderbird). Some of them open just fine but others give me the message: "There was an error opening this document. The file is damaged and could not be repaired."

    Trouble opening pdf's - I have received several pdf's from a friend via e-mail (Thunderbird). Some of them open just fine but others give me the message: "There was an error opening this document. The file is damaged and could not be repaired." My friend made sure that the files in question opened without issue on his computer (a PC). Further, I was able to open one of these "damaged" files on my Android phone, but I cannot open them on the Macbook Air. Any help would be greatly appreciated.

    Back up all data.
    Triple-click the line of text below to select it, the copy the selected text to the Clipboard (command-C):
    /Library/Internet Plug-ins
    In the Finder, select
    Go ▹ Go to Folder
    from the menu bar, or press the key combination shift-command-G. Paste into the text box that opens (command-V), then press return.
    From the folder that opens, remove any items that have the letters “PDF” in the name. You may be prompted for your login password. Then quit and relaunch Safari, and test.
    The "Silverlight" web plugin distributed by Microsoft can also interfere with PDF display in Safari, so you may need to remove it as well, if it's present.
    If you still have the issue, repeat with this line:
    ~/Library/Internet Plug-ins
    If you don’t like the results of this procedure, restore the items from the backup you made before you started. Relaunch Safari again.

  • SSRS PDF Export. There was an error opening this document. This file is damaged and could not be repaired

    Hello,
    I just experienced this problem, and was able to successfully mitigate.  I wanted to share my experience and Solution. 
    The problem started with the following error after succesfully exporting a PDF Document.  "There was an error opening this document. This file is damaged and could not be repaired."
    This is only applicable if you can still export and open SSRS Reports to other formats. Go to the Log files of the SQL Instance. In my particular case I used the Default MSSQL instance:   C:\ Program Files\Microsoft SQL Server\MSRS10_50.MSSQLSERVER\Reporting
    Services\LogFiles  
    The Folder will begin with MSRS (SRS is for SQL Reporting Services)
    Sort the files by date modified and check for the most recent log file: ex.  SQLDmpr0000.log  The 0000 will be the incremental amount of errors you have experienced in SRS. Check for the following error:
    "System.DllNotFoundException: Unable to load DLL 'T2Embed': Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))"
    Below is a sample from the log. 
    reportrendering!ReportServer_0-1!1b78!02/07/2012-11:56:03:: e ERROR: Throwing Microsoft.ReportingServices.ReportProcessing.UnhandledReportRenderingException: , Microsoft.ReportingServices.ReportProcessing.UnhandledReportRenderingException:
    An error occurred during rendering of the report. ---> Microsoft.ReportingServices.OnDemandReportRendering.ReportRenderingException: An error occurred during rendering of the report. ---> System.DllNotFoundException: Unable to load DLL 'T2Embed': Access
    is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))
       at Microsoft.ReportingServices.Rendering.ImageRenderer.FontPackage.TTGetEmbeddingType(Win32DCSafeHandle hdc, UInt32& status)
       at Microsoft.ReportingServices.Rendering.ImageRenderer.FontPackage.CheckEmbeddingRights(Win32DCSafeHandle hdc)
       at Microsoft.ReportingServices.Rendering.ImageRenderer.PDFWriter.ProcessFontForFontEmbedding(PDFFont pdfFont, Dictionary`2 embeddedFonts)
       at Microsoft.ReportingServices.Rendering.ImageRenderer.PDFWriter.EndReport()
       at Microsoft.ReportingServices.Rendering.ImageRenderer.PDFRenderer.Render(Report report, NameValueCollection deviceInfo, Hashtable renderProperties, CreateAndRegisterStream
    createAndRegisterStream)
       at Microsoft.ReportingServices.Rendering.ImageRenderer.RendererBase.Render(Report report, NameValueCollection reportServerParameters, NameValueCollection deviceInfo,
    NameValueCollection clientCapabilities, Hashtable& renderProperties, CreateAndRegisterStream createAndRegisterStream)
       --- End of inner exception stack trace ---
       at Microsoft.ReportingServices.Rendering.ImageRenderer.RendererBase.Render(Report report, NameValueCollection reportServerParameters, NameValueCollection deviceInfo,
    NameValueCollection clientCapabilities, Hashtable& renderProperties, CreateAndRegisterStream createAndRegisterStream)
       at Microsoft.ReportingServices.ReportProcessing.ReportProcessing.RenderFromOdpSnapshot(IRenderingExtension newRenderer, String streamName, ProcessingContext
    pc, RenderingContext rc)
       --- End of inner exception stack trace ---;
    If you notice the error states that T2Embed.dll access is denied. In my case this due to a hotfix installed by Microsoft: 
     MS11-087: Vulnerability in Windows kernel-mode drivers could allow remote code execution: December 13, 2011
    Be advised, in order to fix your problem and render pdf's, a vulnerability shall be created.
     To fix this issue and allow the export to PDF work correctly, you must give the system Read/Execute Permissions, and Built-in\Administrators Full Control. 
    Go to Windows\System32 and find the T2Embed.dll Go to Security and modify the permissions as listed above. Do the same to the T2Embed.dll in the SysWow64 folder.
    Restart Reporting Services and you will be able to export to PDF. 
    Best Wishes! 
    Mariano
    www.lucontech.com 

    I'm not convinced this is the exact cause of the issue.  I will check my log files to see if I find anything like what you described.  However, I get this error when a particular user tries to do a "print preview" from a custom button.  The
    code builds a ReportViewer object, sets the ReportPath, etc.
    The reason I'm not convinced is because we have a separate reports page that has the report viewer embedded into it.  If the user generates the report that way and exports to PDF, Word, etc...the user can generate the file and be on their way.  As
    soon as the user clicks our "Print" button on the page without the ReportViewer embedded, the above mentioned error occurs.  
    UPDATE: Perhaps we have a different problem since my issue is from a custom button.  I found the solution
    here and confirmed the solution with the customer.  It had to do with the code using Response.Flush() instead of Response.End().
    One thing I noticed before I implemented the change: When you would close the PDF, it would ask you to save changes to the PDF.  After implementing Response.End() instead, that prompt went away.  No doubt it has to do with the differences between
    how Response.Flush() and Response.End() handle the stream returned.
    Anyway, posting in case someone has the same issue.

  • Exporting PDF files from SSRS 2012 - "There was an error opening this document. The file is damaged and could not be repaired"

    Good day
    I have the situation where we are exporting PDF files from reporting services in our website. 
    When dividing the data into sections, the report exports perfectly, but when exporting the entire set and trying to open the file, we get the following error in Adobe Reader:
    "There was an error opening this document.  The file is damaged and could not be repaired"
    We tried to repair the file, no luck.  We tried to use different PDF readers, no luck
    We then checked the file sizes.  When exporting the subsections, each section exports a file of about 2mb. 
    When exporting the entire set, the file is about 1.3mb. 
    Adding all the sections together gives me a rough estimate of 40mb.
    Exporting to TIFF works beautifully and returns a file of 41.5mb. Word and Excel formats also work well, only issue there is the page numbering and formatting.
     The problem we have is the clients are adamant about having it in PDF format.
    Any advice please?

    This was one of the temporary suggestions I gave the client...
    Unfortunately they do not like this as the page numbering and formatting in Word does not appear right.  We are talking about over 1300 pages.  I can't expect them to change the formatting with each export.  Additionally,  the data is
    constantly changing and each client has their own data.  The clients export the reports randomly.  I therefore can't post the reports back onto the server.
    Thanks for the speedy response though

  • My PDFs with form fields get "There was an error opening this document. The file is damaged and could not be repaired." on anothers computer, PC and MAC

    Im creating PDFs through InDesign and using Acrobat Pro 9 to add fields.  I save them to allow ADobe Reader people to use them.  Everything works fine on Pro and Reader on my end with a PC as well as someone elses PC.  But one person using Mac said some forms work and some dont.  Those that dont get the error "There was an error opening this document. The file is damaged and could not be repaired."  Ive resaved them and made sure they work and same problem.  There is nothing overly coplex about the PDFs either, a date field at the most.  They are using Reader 9.1.
    I found out the other day that one person who can open them adds info to them saves them and send over to that other person and cannot open any of them after they have been edited, same error.  He even tried on a PC and still gets it.
    I dont know what to do.  I know it has to be on his end and not mine.  What else can I suggest to him??

    It sounds like they are using an earlier version of Acrobat or Reader, though you said Reader 9.1. If you add some features in AA9 that are new, it appears that earlier versions see the new features as damaged files. At least that is my guess. Try using Reduce File Size or PDF Optimize to save to an earlier version and see if that helps. The other option is that you are getting them messed up in e-mail because many client look at PDF files as ascii and do not encrypt them. In that case force the encryption. You can also send them in ZIP form.

  • The file is damaged and could not be repaired.

    Hi, I'm debugging an Adobe Drive CC connector and seeking advice on the following problem:
    After I check-in an Illustrator file, the local copy becomes corrupt.
    If I make a change and try to save it, I receive a message stating "The file is damaged and could not be repaired."  If I close the file instead, I can't re-open it (same error message).
    However, if I Empty Cache in the Adobe Drive Settings that fixes everything and I'm able to open/save the file without any error.  (When I check it in, the same problem repeats itself until I empty cache again).
    Where does this message come from and what conditions can trigger it?  It's difficult to debug without Adobe's sourcecode to step through the event, but I wonder if it has to do with Etag data?
    I've confirmed the stream data downloaded by the open & read handlers is not actually corrupt (by setting a breakpoint after the tempfile is written and checking it's md5).
    The problem occurs after every checkin of Illustrator files, but never with Photoshop files.
    Any advice?  Thanks

    I wish I had an answer, but I at least wanted to post in solidaridity and bump this thread. I've been experimenting with Adobe Drive CC (5.0.1.28) and am also suffering from the "file is damaged" issue.
    I am using the CMIS connector and after almost every check in or out the file becomes corrupt -- but only in the Drive cache. If I clear the Adobe Drive cache the file is perfectly fine. I have watched the CMIS traffic in Wireshark and it appears to me that this error is entirely within Drive: it does not get a new copy of the file that's corrupted en route, it just corrupts its own copy in the cache.
    I experience this with all file types.
    Out of frustration I tried Alfresco 4.2.e, which is supposedly the software Adobe worked with to "polish" the CMIS connector, and the problem is entirely different. Every check in failes with "The operation could no be completed because of an unexpected error. Error Code: -1" and a RemoteIOException in the Drive log.
    Drive then announces the file "has changed since I opened it, and it will be updated to the newest version" -- which DOES bring new bytes over the wire and avoids the corrupted local cache. Is that somehow the answer the Alfresco has discovered, to break the transaction and force Drive to refresh the file?
    Please, anyone, chime in you've experienced either of these issues. I have yet to see a successful use case for Adobe Drive over CMIS, but surely someone is using this product?
    Thanks.

  • "The file is damaged and could not be repaired" error when trying to open a PDF in Reader

    A few of our employess (only 3 out of over 100 so far) have been getting the error, "The file is damaged and could not be repaired" when trying to open some PDFs. Other people are able to open the same PDF files with no error. It's happening on about 10% of the time. I've read a bunch of threads here with this isue and tried some suggested fixes and nothing has resolved the issue. Here is what I have found works and does not work and the info on their computers:
    Computers:
    1 Dell Vostro desktop running WIndows 7
    1 Toshiba Satellite C55 runnign Windows 8
    1 Samsung ATIV Book 4 running Windows 8
    All using Adobe Reader XI but we did uninstall that version and tried previous versions and still got the error.
    Did Not Work:
    As suggested by the company that we use online for claims adjustments where this error is occuring, we tried using a different PDF creator since the files were created using a free PDF creator by the employees. PDF995 and PDFcreator (pdfforge) did not resolve the issue. I then created the PDFs with my Adobe Acrobat, uploaded from my computer to the online program, and that did not resolve the issue.
    Saving the file to hard drive and then opening in Adobe did not work.
    Turning off Protected Mode and Enhanced Security did not work.
    Compatibility View settings enabled in Internet Explorer 10 did not resolve the issue. The previously mentioned claims adjustment software company we use online was code for IE so is not fully compatible with other browsers.
    That being said I did try to open the PDF files in Chrome and it also did not work. Same error message.
    Does work:
    I download the file they cannot open onto my hard drive, open in Adobe Acrobat, Save as a pdf, then email it to them and they can open it via email attachment.
    If they close the error and continue trying to open the file over and over sometimes it will eventually open.
    Is there a setting in Windows that is preventing them from opening a small % of files some of the time? Thanks in advance for any help!
    James

    If anyone is reading this still looking for what caused the issue and how to fix it here is what I discovered.
    The antivirus program our company uses, Bitdefender Antivirus Plus, was causing some of the PDF files not to open. After troubleshooting the different modules and settings the culprit was..
    Scan SSL in Privacy Control Settings. Turning it OFF solved the problem and all the PDF files that previously would not open now open just fine. This issue has been sent to Bitdefender for them to review. If you use a different antivirus program and are having this issue try locating the Scan SSL setting and see if turning it off solves the problem.

  • I keep getting the message, "the file is damaged and could not be repaired"

    I have a newer Gateway PC equipped with Windows Vista Ultimate, and recently downloaded the free Adobe Reader 8.1.1 version to it.
    I'm not very computer literate, so I'm not sure which terminology to use all the time...sorry.
    When I attempt to open (view, read, download?) a pdf file, it starts the download process, showing the progress at the bottom of the page....for example, it might say, "downloading (16.2kb out of 543.5kb)"
    Usually, about a minute or so into the download, the word "downloading" changes to "downloaded", the action stops, and shortly after (on the window with the gray Adobe Reader background), a smaller message window pops up, declaring, "the file is damaged and could not be repaired".
    A friend suggested that there was probably a problem with the original downloading of Reader and recommended that I completely remove it from my system, then re-install it. Reluctantly, with a very slow dial-up connection network, I did as he suggested, then painfully sat through about a two-hour download AGAIN of Reader 8.1.1
    After the download was completed again, I successfully opened a few of the pdf files which I was previously having the problems with. Problem solved??? NOT QUITE!!! After about three or four successful file downloads (openings/readings of the files), it again started to do the same thing, where it would not complete the downloading/opening process and again leaving the message, "the file is damaged and could not be repaired."
    I am very confident that the files are not the problem, as many of my friends have viewed/opened those same pdf files repeatedly with no issues, BUT WHAT IS CAUSING THIS??? As I said before, I'm not very computer savvy as it is, and adding the newer Windows Vista Ultimate OS probably hasn't helped any.
    1. Is the problem with Windows Vista?
    2. Is the problem with Adobe Reader 8.1.1 (or the downloading of it)?
    3. Is the problem related to the security settings of my computer?
    4. Is the problem likely virus related (I use the purchased McAfee protection)?
    I just don't know where or how to start looking for the solution, other than thru this forum, and I simply can't afford the time to remove and re-install Adobe Reader 8.1.1 each time I need the use of my computer.
    Any assistance would be greatly appreciated, and you can e-mail me with suggestions to [email protected], or else call me on my cell
    THANK YOU,
    Don Maycumber
    Republic, WA
    509-570-8114 Verizon mobile

    I'm having the same problem but with high speed access.
    Anyone know the answer?
    ~Chris

  • There was an error opening this document.  The file is damaged and could not be repaired.

    Good Day all
    When busy doing internet banking on www.absa.co.za and I try to print a confirmation, I get the following error message: "C:\Documents and Settings\%user profile%\Local Settings\Temporary Internet Files\Content.IE5\%folder name%\%file name%.pdf
    Could not open file.
    File not found."
    I've managed to locate the actual file that it's looking for, but when I try and open the file using either Adobe or Foxit Reader, I get the following error message: "There was an error opening this document. The file is damaged and could not be repaired."
    I've un-installed Adobe and installed version 9.1 for this particular user. This happened a while ago and then an un-installation and re-installation of Adobe solved the issue. This time, unfortunately, it didn't. I then un-installed Adobe and tried again, UNSUCCESSFULLY. So I loaded Foxit Reader, also without any success.
    If there's anyone out there who could possibly help, please do so... It's extremely urgent.
    Please find the errors attached as well.
    Regards,
    ME

    I contacted the company and they asked me to try using another browser, which I did... and using FireFox worked
    thanks for the help ʇɐb ɹəuəllıʍ
    cheers!

  • When I try to open a pdf file I get an error message stating "There was an error opening the document.  The file is damaged and could not be repaired."  Other pdf files open fine.

    When I try to open a pdf file I get an error message stating "There was an error opening the document.  The file is damaged and could not be repaired."  Other pdf files open fine.

    You need to get a new copy of the PDF.

  • File is damaged and could not be repaired, when emailed the PDF Document

    Hi i have the same problem , that what you have resolved, but it doesn't work for me...
    i.e, when i sent a mail from the below code , mail sent but when open it shows "**There was an error in opening this document. the file is damaged and could not be repaired."**
    can u please suggest to over come this problem.. and i m using IBM Websphere 8.
    please advice ....
    thanks alot in advance...
    here is the code :
    AstLogger logger = AstLogger.getInstance();
    logger.info(this.getClass(),"ReportBuilderUtils.sendMail Start....");
    boolean flag = false;
    try {
    javax.naming.InitialContext ctx = new javax.naming.InitialContext();
    javax.mail.Session session = (javax.mail.Session) ctx.lookup(AstProps.getInstance().getWebCollectLoginMailSession());
    Message msg = new MimeMessage(session);
    InternetAddress addressFrom = new InternetAddress(from);
    logger.info(this.getClass(), "Report Builder Utils - Email From :" + from);
    msg.setFrom(addressFrom);
    String log = "";
    double tempFilesize=0;
    for(String emailId : recipients) {
    InternetAddress addressTo = new InternetAddress(emailId);
    msg.addRecipient(Message.RecipientType.TO, addressTo);
    log += emailId + ",";
    logger.info(this.getClass(), "Report Builder Utils - Email Recipients :" + log);
    // Setting the Subject and Content Type
    msg.setSubject(subject);
    logger.info(this.getClass(), "Report Builder Utils - Email Subject :" + subject);
    msg.setContent(message, "text/plain");
    msg.setHeader("Content-Type", "multipart/mixed");
    MimeBodyPart mbp1 = new MimeBodyPart();
    mbp1.setText(message);
    logger.info(this.getClass(), "Report Builder Utils - Email Message :" + message);
    mbp1.setDataHandler(new DataHandler(new HTMLDataSource(message)));
    Multipart mp = new MimeMultipart();
    mp.addBodyPart(mbp1);
    // constants to handle the large files
    if(tempFile.exists()){
    tempFilesize = tempFile.length();
    logger.info(this.getClass(), "Report Builder Utils - File Size :" +((tempFilesize/(1024*1024))) +"MB.");
    System.out.println("ATTACHMENT_SIZE ==>" +ATTACHMENT_SIZE);
    if(tempFilesize > ATTACHMENT_SIZE){
    flag = false;
    return flag;
    MimeBodyPart mbp_file = new MimeBodyPart();
    mbp_file.setHeader("Content-Type", "application/pdf");
    mbp_file.setHeader("Content-Transfer-Encoding", "Base64");
    mbp_file.setFileName(fileName);
    mbp_file.setDisposition(Part.ATTACHMENT);
    mbp_file.setDataHandler(new DataHandler(new FileDataSource(tempFile)));
    mp.addBodyPart(mbp_file);
    System.out.println("Mail Successfully sent to :"+recipients);
    msg.saveChanges();
    msg.setContent(mp);
    // even tried by placing here
    // mbp_file.setHeader("Content-Transfer-Encoding", "base64"); base64 is not case-sensitive i hope , i read out on some books
    Transport.send(msg);
    logger.info(this.getClass(), "Report Builder Utils - Email Send successfully...");
    flag = true;
    }catch (Exception e) {
    StringWriter sw = new StringWriter();
    PrintWriter pw = new PrintWriter(sw);
    e.printStackTrace(pw);
    logger.error(this.getClass(), sw.toString());
    AstLogger.getInstance().info(this.getClass(),"ReportBuilderUtils.sendMailAsAttachment End.");
    return flag;
    Edited by: 992445 on Mar 7, 2013 4:05 AM

    You need to get a new copy of the PDF.

Maybe you are looking for

  • Wont open a new project

    When you open garageband it comes up with usually a list of what you want to do new music project new podcast and so on. For some reason it wont let me click any of those icons listed. I cant even click the help sign. Well then i tried to click new u

  • Frequeny resolution

    Hello everybody, I have an agilent 53181A , I use it to count frequency. When I measure a frequency it displays all digits (example 14628.67 Hz) and since I communicate it via GPIB it change the reading and it displays only 14,62 kHz . And I need to

  • Why didn't Apple update it's 15-inch MacBook Pro Retina line up?

    I plan to buy a new MacBook Pro Retina to replace my MacBook Air, I've been waiting for months to see if Apple update it's 15-inch MacBook Pro Retina line up, but on Spring Forward Apple did not update it, does any body know why and when will apple u

  • Lighter line passing from left to right

    Hi! What is the term which describe the white line coming from left to right in the windows 8.1 start icon from the bottom-left corner of the screen and how I can add this effect to an image, if it's possible? Thank you!

  • Align numbers on decimal in tables...

    does anyone know how to align numbers on the decimal point in tables? positive numbers line up fine, but once I introduce negative numbers wrapped in parentheses (standard business format) the alignment is all messed up. I'm really hoping there's som