APEX_MAIL and attachments / base64

Hi gurus of the APEX.

In its request for a client, we need to send as an attachment pdf forms. APEX_MAIL has done a great job for this and we used it without any problems... until users complained that it cannot open the attached pdf document. The funny thing is that we have tested and in all messages from clients (Outlook, Thunderbird) everything works perfectly the pdf can be opened without any problem.
Then users increasingly began to complain of this problem and what they had in common was their email addresses were on gmail.com.

We have created a test case and managed to reproduce the behavior. Such an email was sent to a gmail address. When you try to use the gmail interface to read the mail / download / open the attachment it didn't work (the pdf file has been corrupted), but when you use Outlook or Thunderbird to open exactly the same message that it has worked well, the attached PDF could be opened without any problem.

Looking at the source of the email, I discovered something weird, in part encoded base64 of enamel that appeared a few additional lines swamp. For example, in an email sent to APEX_MAIL we have:
----=:81A6D574025EF8080FECAD124C026523:
Content-Type: application/pdf
Content-Disposition: attachment; filename="template.pdf"
Content-Transfer-Encoding: base64

JVBERi0xLjQKJcfsj6IKNSAwIG9iago8PC9MZW5ndGggNiAwIFIvRmlsdGVyIC9G

bGF0ZURlY29kZT4+CnN0cmVhbQp4nO1cW48cRxXWxpes16s4TgIkMSZjO8EzCdOp

++UVgZAQL0SWeLB5CnfhoIT/L/Gdqu4+p3qqd3Zt1kQRRDI93XU5da7fV1X2txs1

aLNR9N/08PXLsy+/ipu//vusvN589Zvx4bu/nn17lgZL/ysv5PPXLze/fIaOeaP1

oNzm2V/O1JBzdqqOqjcu+SGGTXRhCEpvnr082252z/6BPlpzp73TfjAqbfZaDdZs

.......
While in any other email empty lines are missing:
----=:81A6D574025EF8080FECAD124C026523:
Content-Type: application/pdf
Content-Disposition: attachment; filename="template.pdf"
Content-Transfer-Encoding: base64

JVBERi0xLjQKJcfsj6IKNSAwIG9iago8PC9MZW5ndGggNiAwIFIvRmlsdGVyIC9G
bGF0ZURlY29kZT4+CnN0cmVhbQp4nO1cW48cRxXWxpes16s4TgIkMSZjO8EzCdOp
++UVgZAQL0SWeLB5CnfhoIT/L/Gdqu4+p3qqd3Zt1kQRRDI93XU5da7fV1X2txs1
aLNR9N/08PXLsy+/ipu//vusvN589Zvx4bu/nn17lgZL/ysv5PPXLze/fIaOeaP1
oNzm2V/O1JBzdqqOqjcu+SGGTXRhCEpvnr082252z/6BPlpzp73TfjAqbfZaDdZs
.......
Also, I created a unit test on apex.oracle.com, application 45187, APEX_MAIL_BASE64 page, to quickly reproduce the error.

For me, it looks like a bug, not sure in APEX_MAIL (adding extra empty lines in base64 encoding) or in GMAIL (do not properly process empty lines in base64 encoding).

SR 3-1487942871 created for this question.

Thank you
Florin

Published by: orlat84 on February 26, 2010 12:47 AM

Hi Florin,

This should be interrupted on MetaLink now. As a reminder, a prerequisite will be APEX 3.2.1.00.12.

I hope this helps.

Joel

Tags: Database

Similar Questions

  • Can I return to 38.0.1 2.0.0.24? Toolbars take too much space: subject bar not minimizable and attachments are a separate tool bar rather than online.

    The massive 38 version of space around the titles and toolbars; the "subject" bar takes the massive space and is therefore no longer minimizable and attachments display in a new toolbar background rather than in the bar as to, subject and SIZE.

    This makes useful reading the text or a very small image. See the image on 2 different screenshots.

    Thanks, Eddie V

    Wayne Mery said

    It seems to me that you have not yet installed https://addons.mozilla.org/en-us/thunderbird/addon/compactheader/

    THANK YOU, WAYNE. This addon got the + and - back themed bar releasing much needed content space.

    It leaves the 'bar fixing' at the bottom that is just a minor inconvenience, takes little vertical space. In the old system, it was just an element in the list of properties for incoming e-mail.

    Once again, thank you very much for your excellent help. Best for you, Eddie

  • Unable to access e-mail and attachments without being redirected.

    Unable to access e-mail and attachments without being redirected.

    Hello

    The best place to ask your question of Windows Live is inside Windows Live help forums. Experts specialize in all things, Windows Live, and would be delighted to help you with your questions. Please choose a product below to be redirected to the appropriate community:

    Windows Live Mail

    Windows Live Hotmail

    Windows Live Messenger

    Looking for a different product to Windows Live? Visit the home page Windows Live Help for the complete list of Windows Live forums at www.windowslivehelp.com.

  • How to delete photos and attachments in folders

    How to delete photos & accessories located in the folders where the Inbox, Trash, smells and spam. A few pictures are on my computer for a few years.

    Hello to copy,

    1 are. what images and attachments you referring?

    If you have pictures and attachment located in emails that are found in files, you will need to delete the e-mail before you can delete attachments in the mail.

    You will not be able to remove the images and attachments separately.

  • e-mail and attachments

    I'll have too many problems with others email and attachments, to places of unemployment, what are doing to them. What can I do? I have already sent a request to this topic at Google?

    And yet you did not bother to tell what are these "many problems."

    What to do 'what' to 'who '? A query on "what"?

    HOW TO ASK A QUESTION:
    http://support.Microsoft.com/kb/555375

  • Were there difficulties downloading documents attached to emails and attachments?

    I have problems to download the documents and attachments.  In addition, failed to open. PDF files while online that were sent to me.  Is it possible to solve these problems?

    Hi Donald,.

    1. you use any (Outlook, Windows Mail) mail client or web browser to access the emails?

    2. what browser you use to access the emails?

    3. who is the provider of mail service?

    4. doesn't this problem occurs with a particular e-mail account or with all the e-mail account?

    5. you receive an error message when you try to open the attachments?

    You can follow the steps in the below links for problems with opening the .pdf online file.

    http://kb2.Adobe.com/CPS/836/cpsid_83688.html

    http://kb2.Adobe.com/CPS/328/328233.html

    Hope it will be useful.

  • How can I print e-mail and attachments to windows 8 #.

    How can I print e-mail and attachments to windows 8 #.

    If you use the Windows 8 Mail application and then print the message:

    -By pressing Ctrl + P will open the list of printers. Select the printer you want then choose from the list of print options and finally click print (lower-right) to print.

    -Display the charms bar then select devices then select your printer (and then follow the prompts) to print from the Mail app.

    With respect to attachments, simply open the attachment (after you click on it to download) by clicking right on it and selecting open/open with. Then you should be able to print the attachment in the program that was opened.

  • Recover space by deleted emails and attachments

    My Surface has too little disk space to refresh it.  Find the problem, it's a large file of emails and attachments that have been deleted, most of the months ago.  This file is located in C:\UsersName\AppData\Local\Packages\microsoft.windowscommunicationsapps_8wekyb3d8bbwe\LocalState\LiveComm\ here is a 16 file number & letter.  Open it and then open the folder "120712-0049" and the file open the "Att".  In my case, this file uses about 4.5 GB of disk space.  Most of these files is empty, or contain a weed, often an image.  No problem on my desktop, but it is on my Surface.

    Can I delete old files from here?  Is it possible to prevent it from keeping files and attachments, especially the pictures of this file?

    My Surface is of 8.1, but I recently updated the desktop of Windows 10.  I don't think that's the problem, since this was done only a few weeks ago and most attachments are several months old.

    Hello

    Thanks for posting your query in Microsoft Community.

    From now on, I would ask to refer to the article below and the advice provided to free space on the Surface.

    Tips to free up disk space on your PC

    Do not hesitate to write to us in case you have any problems/concerns while working on your computer, we will be happy to help you.

  • How a copy cell text, supporting details and attachments from a Version to another Member?

    How a copy cell text, supporting details and attachments from a Version to another Member?

    There was a Hyperion Planning 11.1.1.3 copied cell text utility, supporting details and attachments from one (job) Version to another Version (for example Final).  At the time where we ran, data erased!

    The old version (11.1.1.3's) Administration, management, copy data doesn't copy the text in the cell, supporting details and attachments from one Version to another Version. Latest version 11.1.2.4 copy these textual data?

    Thank you.


    Yes, in 11.1.2.4 data copy copy 'annotations to account', 'support detail' and 'text in the cell. Read below for what copy can do and can't do.

    http://docs.Oracle.com/CD/E57185_01/EPM.1112/planning_admin.PDF

    Copy of data

    You can copy plans of one dimensional intersection to another, including relational data and supporting details. For example, you can copy Final of Budget, FY10, FY11, forecast, first draft.

    Notes:

    l parameters to copy selected data are kept for the current session only.

    members of dimension l copied must be present in the selected plan types.

    the data must be copied in the cells that can accept data. For example, you can not copy data in read-only or dynamic of cells.

    l , you can copy annotations of account, to support in detail and text in cells. You can't copy annotations unit planning.

    l you cannot use this feature with attributes, selecting the attributes to copy.

    data l Essbase is copied regardless of selections for the copy of data Options.

    l because it is an administrative function, planning means that you have full access to the data you are copying. You cannot copy in the planning units that are approved.

    l this feature does not calculate data. To perform calculations, including the increase in the forecast of 5%, apply the business rule after you have copied the data.

    l to copy the data to succeed, you must select at least one Member for dimensions scenario, account, entity, period, and Version.

  • Can I store and access all emails and attachments when it is offline

    I am currently using Eudora e-mail client, and so when I open the program that all emails are downloaded on my computer, even though I have not opened the so all are accessible offline, including all attachments. I need to upgrade because Eudora does not allow access to email gmail accounts where the authentication step 2 has been implemented. So I had recommended Thunderbird but everything I read suggests I won't have full access to e-mail and attachments offline, I'll only have offline access to any email I opened it, not sure how that applies to attachments. Can someone tell me what is the level of access in offline mode I would have with Thunderbird?

    Based on your description, I would say that POP-UP on the laptop would work well for you, but use the IMAP protocol on the phone, etc. Note that we can not give you the choice with the phone; the email clients on mobile devices tend to IMAP by default anyway.

    I would advise against POP on your "secondary" devices because if you download a message to one of them and you decide to keep also on the laptop, you will need to find a way to transfer to the laptop. With IMAP automatically would remain available for the laptop too. And the message will disappear eventually from the phone, after having supported by the laptop, so you will not have the additional job of removing of the phone. According to my experience, the phones stop working because they are filled to the top, and you don't want to aggravate it simply to store e-mail on the subject unnecessarily.

  • Where Thunderbird stores emails and attachments?

    Eudora is suffering from problems of certificate expired - but I know where to find all e-mail attachments and emails so that I can save them. I installed Mozilla Thunderbird, but I can't find the files that look like attachments or e-mail records all Mozilla Thunderbird. I need to know where my emails for security are stored.

    In your profile. More specifically, in the box to the letters or mboxrd format files, which have names like Inbox or sent with no extension. Note that *.msf accompanying files are just indexes and need not be saved. Messages are stored as received, Word for Word, with attachments online.

    https://support.Mozilla.org/en-us/KB/Profiles-TB
    https://en.Wikipedia.org/?title=mbox

  • How can I download my mails and attachments by Mail to store?

    Hello world!

    How can I download my emails and their attachments to my computer (with Mail) to be stored forever in case I want to access it in the future (with or without Mail), all by removing my email online account?

    Thank you very much!

    smashr says:

    Hello world!

    How can I download my emails and their attachments to my computer (with Mail) to be stored forever in case I want to access it in the future (with or without Mail), all by removing my email online account?

    Thank you very much!

    Forever? Doubtful that many would be useful.

    You can save them to RTF or export them as PDF. If there are attachments, you will need to save those separately.

  • Partially exporting mailboxes and attachments

    I have a huge amount of e-mail stored on my computer and my server of the ISP in many years IMAP accounts.

    I want to store mail that is longer than two years there are on an external hard drive + cloud can clean the mailboxes to free up space.

    I also want to travel with the stored mail attachments.

    How can I do this?

    Concerning

    Create a mailbox on the computer. Move or copy messages to this mailbox you created. Export the mailbox to your desired destination.

    If you have not done this before, export a mailbox to test. Once done, re-import in mail to test.

    If your ISP server has no limits, you should now create folders to store messages too, or archive them on the server.

  • My documents and attachments in my email are open in Notepad form vs pdf

    If I try to open an e-mail that I sent to someone who was in the form of pdf and it says pdf. It opens in Notepad and I
    cannot display it.  I don't know why it does this

    I do have Adobe and its 9 Adobe

    Save your PDF attachment to a folder of your choice.
    Go to the folder, right click on the attachment, click Open with, select Adobe 9.

    t-4-2

    Take a look at this tutorial:
    http://www.Winhelponline.com/articles/236/1/Unable-to-open-PDF-attachments-from-Windows-mail.html

    t-4-2

  • Problem with windows mail send not of pictures and attachments? Help, please!

    Hello, yesterday I continued to get an error code when you try to update some security updates, I've used the tutorial help and went and deleted some file deep into my system, as he ordered.  He has not yet fixed the error and now my windows mail will not send attachments and the police to the address info seem different?  I'm lost, please help!

    Hi Pishy,

    1. what was the error code that you received when you try updates security?

    2. what tutorial did you delete files?

    3. what happens when you try to send emails with attachments? You receive messages or error codes?

    You can try to perform a restore of the system to a prior restore point you have been affected by the issue.

    Note: When you perform the system restore to restore the computer to a previous state, programs and updates that you have installed are removed.

    To run the system restore, you can consult the following link:

    System restore

    System Restore: frequently asked questions

    For more information, you can also consult the following article:

    Solve problems with Windows Mail

    Hope this information is useful.

Maybe you are looking for

  • Time Machine - there was an error preparing the Time Machine backup drive (could not mount the drive)

    I have a new HD but cannot set up encryption with system preferences. After ten minutes, I get the following error message: "There was an error preparing the Time Machine backup disk (disc name) - could not mount drive" Apparently, I need to set up t

  • Not found driver software CD.

    I'm unable to copy or burn CDs more. My I Tunes tells me not found driver CD. What should I do?

  • Missing films that were bought on iTunes

    I bought a package of film awhile back and only 2 of the 4 movies in the bundle appear in my movies purchased in iTunes and on my Apple TV. How can I fix? When I go into my iTunes library it is there but not non-purchased content.

  • DROID X 2 keeps restarting (cannot use the phone)

    My Droid X 2 guard restarts and crashes again and again. When I'm in front of the lock screen, he said. com Motorola.service.main has stopped responding or something similar to that, and then it runs all applications saying all crashed and the phone,

  • Windows 7 update causes computer to freeze randomly

    I have a Lenovo T500. It's a computer refurbished who came to me with the firmware of a Lenovo. I am a student and I bought the edition of window 7 students. Since I installed it, the computer crashes on me at very random times. At first, I thought i