HTML content is shown in the downloaded attachment when it is a .txt file

Before deploying in Jdev, files can be downloaded for all filetypes (xls, ppt, doc, txt),
and all can be viewed correctly.
But after deploying (ct is on 11.5.10.2 RUP5), all files can be downloaded and viewed correctly
for filetypes (xls, ppt, doc). But for .txt files, it can be downloaded but when viewed,
it is appended with html contents after the original text.
eg. The original text in abc.txt is "test".
Then the file downloaded and opened will contain:
"+test+
+<!-- METADATA_SOURCE - JRAD --><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01+
Transitional//EN"><html dir="ltr" lang="en-US-ORACLE9I"><head><title>Oracle
Applications</title>..."
Found a similar bug6313329 which has html contents appended to wf notification mail
and is fixed with patch 6313329.
Anyone encountered such issue? Any advise is greatly appreciated.
Thanks.

User,
There is a specific forum for OA Framework - you should probably be asking there; when you do, you should probably provide a bit more information (e.g., are you talking about attachments on a workflow notification or something else).
Best,
John

Similar Messages

  • HTML content is shown in the downloaded attachment file when it is a .txt

    Before deploying, in Jdeveloper, files can be downloaded for all filetypes (xls, ppt, doc, txt),
    and all can be viewed correctly.
    But after deploying (ct is on 11.5.10.2 RUP5), when we are on this xxxx.jsp page with
    file download button links and we click on the download button, all files can be downloaded
    and viewed correctly for filetypes (xls, ppt, doc) except for .txt files. .txt file can be
    downloaded but when viewed, the text inside is appended with html contents after the original text.
    eg. The original text in abc.txt is "test".
    Then the file downloaded and opened will contain:
    +"test+
    +<!-- METADATA_SOURCE - JRAD --><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01+
    Transitional//EN"><html dir="ltr" lang="en-US-ORACLE9I"><head><title>Oracle
    Applications</title>..."
    Found a similar bug6313329 which has html contents appended to wf notification mail
    and is fixed with patch 6313329 but since our customers issue is on OAF pages after delploying
    on 11.5.10.2 ATG_PF.H RUP5 env, not sure whether this patch will work.
    Anyone encountered such issue? Any advise is greatly appreciated.
    Thanks.

    I'm trying this to download files , txt file can be downloaded .
    but , the text inside is appended with html contents after the original text .
    try{
    BlobDomain bdata = (BlobDomain)(vo.getCurrentRow().getAttribute("FileData"));
    int chunk = bdata.getBufferSize();
    DataObject sessionDictionary = (DataObject)pageContext.getNamedDataObject("_SessionParameters");
    HttpServletResponse response = (HttpServletResponse)sessionDictionary. selectValue(null,"HttpServletResponse");
    BufferedOutputStream out = new BufferedOutputStream(response.getOutputStream());
    if((filename.substring(filename.lastIndexOf("."),filename.length())).equals(".txt")){
    response.setContentType("application/x-txt; charset=Shift-JIS");
    response.setHeader("Content-disposition","attachment; filename=\""+filename+"\"");
    InputStream instream = bdata.getBinaryStream();
    byte'[] buffer = new byte[chunk];
    int length = -1;
    while ((length = instream.read(buffer)) != -1) {
    out.write(buffer,0,length);
    instream.close();
    out.flush();
    } catch(Exception e1) {
    e1.printStackTrace();
    Please suggest. its urgent.
    Thanks & Regards
    Edited by: user10679811 on 2009/11/25 6:55
    Edited by: user10679811 on 2009/11/25 6:56

  • Where can I see the downloads LIST when downloading podcasts, like in the older version of iTunes?  I find it frustrating that I see only one at a time now !  Any suggestions please?

    Where can I see the downloads LIST when downloading podcasts,
    like in the older version of iTunes?  I find it frustrating that I see only one
    download at a time now !  Any suggestions please?

    Thanks for taking a stab at it: that didn't prove to be the problem. That option in the settings for tabbed browsing was not checked.
    I may be a bit behind the times: I am used to tabbed browsing showing all the tabs it possibly can, instead of just the last one. Sometimes it won't even show the last tab: I can have 15 tabs open, and not see a single tab. I've been confused by this into closing a window with lots of tabs open, because it looks like a single page-window.
    My main problem with the tab-bar flashing to the end of the row is that it means a great deal more mouse-clicking around to browse.
    I haven't tried installing the latest beta. Maybe that would fix the problem.
    Toddo

  • I am running 4.0.1 and when I download something the Download box stays blank-even though I have selected in General Preferences 'Show the downloads window when downloading a file' AND selected 'Save files to Downloads'....???

    I am running 4.0.1 and when I download something the Download box stays blank-even though I have selected in General Preferences 'Show the downloads window when downloading a file' AND selected 'Save files to Downloads'....???

    In Firefox Options / Privacy be sure "Remember download history" is checked. To see all of the options on that panel, "Firefox will" must be set to "Use custom settings for history".
    To find your OS information, on your Windows desktop, right-click the My Computer icon, choose Properties, under System on that small window is info about your OS.
    '''If this reply solves your problem, please click "Solved It" next to this reply when <u>signed-in</u> to the forum.'''

  • I don't have the download icon when i open safari

    I don't have the download icon when i open safari?

    Steven,
    Go to Safari>Preferences...>General> and set "Remove download list items: to "Manually."
    If that setting is "Upon Successful Download" the Downloads icon only appears during the download.

  • I have uninstalled and reinstalled the most current edition of Adobe Reader, including the patch. When I open a PDF file, the screen is first grey, then viewable, but the message "Adobe Reader has stopped working" comes up. How do I remedy this?

    I have uninstalled and reinstalled the most current edition of Adobe Reader (11.9), including the patch. When I open a PDF file, the screen is first grey, then viewable, but then the message "Adobe Reader has stopped working" comes up. How do I remedy this?

    RR,
    One thing often tried first is to create a new document and File>Place the corrupted one to see how much may be rescued that way (remember to tick Paste remembers Layers in the Layer palette flyout/dropdown first, and to untick it afterwards).
    Here is a website where you can see whether it can rescue the file, and if it can, you may pay for a subscription to have it done,
    http://www.recoverytoolbox.com/buy_illustrator.html
    and another similar website,
    http://markzware.com/adobe-software/fix-illustrator-file-unknown-error-occurred-pdf2dtp-fi le-recovery/
    As far as I remember, the former is for Win and the latter for Mac.
    Here are a few pages about struggling with it yourself:
    http://daxxter.wordpress.com/2009/04/16/how-to-recover-a-corrupted-illustrator-ai-file/
    http://helpx.adobe.com/illustrator/kb/troubleshoot-damaged-illustrator-files.html
    http://kb2.adobe.com/cps/500/cpsid_50032.html
    http://kb2.adobe.com/cps/500/cpsid_50031.html
    http://helpx.adobe.com/illustrator/kb/enable-content-recovery-mode-illustrator.html
    Failing a full recovery, hopefully you have one or more earlier versions and/or bits of artwork saved before it happened.

  • What is the best way to export a .csv/.txt file to a MS Windows shared folder via a scheduled job?

    What is the best way to export a .csv/.txt file to a MS Windows shared folder, when the export process is a scheduled job?

    You can't directly, as scheduled jobs can only export to server-side data stores, which can only write to the landing area. You'll need to use an external script (e.g. batch file) to move the file from the landingarea after export. You can use an external task in the scheduled job to invoke the script.
    regards,
    Nick

  • What is the smallest data structure record in a .TXT file record to be recognized as an Apple Address Book "Data Card"?

    Hello! This is my first time in this discussion group. The question posed is the subject line itself:
    What is the smallest data structure record in a .TXT file record to be recognized as an Apple Address Book "Data Card"?
    I'm lazy! As a math instructor with 40+ students per class per semester (pCpS), I would rather not have to create 40 data cards pCpS by hand, only to expunge that info at semester's end. My college's IS department can easily supply me with First name, Last name, and eMail address info, along with a myriad of other fields. I can manipulate those data on my end to create the necessary .TXT file, but I don't know the essential structure of that file.
    Can you help me?
    Thank you in advance.
    Bill

    Hello Bill, & welcome aboard!
    No idea what  pCpS is, sorry.
    To import a text file into Address Book, it needs to be a comma delimited .csv file, like...
    Customer Name,Company,Address1,Address2,City,State,Zip
    Customer 1,Company 1,2233 W Seventh Street,Unit 543,Seattle,WA,99099
    Customer 2,Company 2,1 Park Avenue,,New York,NY,10001
    Customer 3,Company 3,65 Loma Linda Parkway,,San Jose,CA,94321
    Customer 4,Company 4,89988 E 23rd Street,B720,Oakland,CA,99899
    Customer 5,Company 5,432 1st Avenue,,Seattle,WA,99876
    Customer 6,Company 6,76765 NE 92nd Street,,Seattle,WA,98009
    Customer 7,Company 7,8976 Poplar Street,,Coupeville,WA,98976
    Customer 8,Company 8,7677 4th Ave North,,Seattle,WA ,89876
    Customer 9,Company 9,4556 Fauntleroy Avenue,,West Seattle,WA,98987
    Customer 10,Company 10,4 Bell Street,,Cincinnati,OH,89987
    Customer 11,Company 11,4001 Beacon Ave North,,Seattle,WA,90887
    Customer 12,Company 12,63 Dehli Street,,Noida,India,898877-8879
    Customer 13,Company 13,63 Dehli Street,,Noida,India,898877-8879
    Customer 14,Company 14,63 Dehli Street,,Noida,India,898877-8879
    Customer 15,Company 15,4847 Spirit Lake Drive,,Bellevue,WA,98006
    Customer 16,Company 16,444 Clark Avenue,,West Seattle,WA,88989
    Customer 17,Company 17,6601 E Stallion,,Scottsdale,AZ,85254
    Customer 18,Company 18,801 N 34th Street,,Seattle,WA,98103
    Customer 19,Company 19,15925 SE 92nd,,Newcastle,WA,99898
    Customer 20,Company 20,3335 NW 220th,2nd Floor,Edmonds,WA,99890
    Customer 21,Company 21,444 E Greenway,,Scottsdale,AZ,85654
    Customer 22,Company 22,4 Railroad Drive,,Moclips,WA,98988
    Customer 23,Company 23,89887 E 64th,,Scottsdale,AZ,87877
    Customer 24,Company 24,15620 SE 43rd Street,,Bellevue,WA,98006
    Customer 25,Company 25,123 Smalltown,,Redmond,WA,98998
    Try Address Book Importer...
    http://www.sillybit.com/abee/

  • Why is the text garbled when I convert a pdf file to  microsoft word ?

    Why is the text garbled when I convert a pdf file to  microsoft word ?

    Hi amedah,
    Could you please try converting any other PDF file with same fonts and then check.
    It might also happen due to use of some poor fonts which result in garbled text.
    Is the PDF scanned?
    Let me know.
    Regards,
    Anubha

  • My Bluetooth has disappeared and I have tried just about everything on the internet. When I click on Bluetooth file exchange it says hardware not found. I tried resetting everything as well nothing is working for me please help because now my facetim

    My Bluetooth has disappeared and I have tried just about everything on the internet. When I click on Bluetooth file exchange it says hardware not found. I tried resetting everything as well nothing is working for me please help because now my facetime doesn’t work neither does photo booth and now I cannot text people off my laptop unless they have iMessage.

    If you followed the instructions in the support article exactly (leaving the machine off for two minutes), then it has a hardware fault. Take it to an Apple Store or other authorized service provider for repair.

  • What is the system doing when I empty a large file from the trash?

    I am in the process of deleting my old iPhoto library. When I installed OS X 10.10.3 it created a new Photos Library.photoslibrary and left the old iPhotos library as an archive. The old library is 249 gigabytes. I don't have "Empty Trash securely" on, and yet it is taking hours for the Finder to empty the trash with the 249 gigabyte iPhotos library in it. What is odd is that for a time, the amount of free space on my MacBook was increasing. It went from 77 GB to 88 GB, and then it started dropping all the way to 70 GB free. Now it is back up to 83.61 GB free.
    What is the Finder doing when it deletes a huge file? I realize that the iPhotos Library is not a single file, but contains hundreds of folders and thousands of files. Still I find it odd that it is taking it so many hours to delete, and that the amount of free space on my Mac goes up and down and up. Can someone explain this?
    It has been deleting for 4 hours and based on the "Emptying the Trash …" progress bar, it should take another two to three hours.

    Yes, but why would the space available go up and down and up as the files are deleted? If the Finder is deleting the files, shouldn't the free space on the drive be steadily increasing as the Trash is emptied?

  • I keep getting the same message when I try to open files on Internet.  Before viewing doc must agree

    I keep getting the same message when I try to open files on Internet.  Before viewing doc must agree to end license agreement & Quit & relauch browser. I've done this.over & over.  Now what?

    Test Screen Name wrote:
    When you launch Adobe Reader you should get the license agreement.
    - Do you get the license agreement?
    When you launch Adobe Reader you should NEVER get a message that it is already installed. That would mean you were trying to install it. NOT launch it.
    I agree.
    Installer:
    Application:
    If you're launching the first one... you're trying to reinstall it.

  • When I send an email with an attachment, the paper clip shows up as if there is an attachment, but I can't open it, or find the "download" attachment option?

    I am using Firefox and have used Firefox in the past.  This just started to occur extremely recently.  I have never had a problem with this in the past.  When I attach a document in an email, it seems fine, even after I send it.  However, the person doesnt get the option to download or view the attachment.  It shows the paper clip as if there was an attachment, but there is no way to open it.  Has this happened to anyone else or if you have some advice I would greatly appreciate some of your help.

    Please do not type in all caps, that is considered shouting and we can hear   you just fine.
    This is a MS Office issue, I'd suggest taking it up with Microsoft or a MS Office forum.

  • Naming of the PDF attachment when mailing from Bursting engine

    Hi,
    We have a xml publisher report for which we have implemented Bursting Engine to archive the and burst the PDF output.
    We have a requirement now to send the PDF output as attachment to external email ids(to suppliers).I am trying to test using e the below control file to send the PDFs as attachments but the name of the PDF attachment in the mail is numeric '3','6','9' etc...
    I would like to know how do we name the PDF output attachment of the bursting engine.
    -------------------------Burst Control File------------------------------------------
    <xapi:requestset xmlns:xapi="http://xmlns.oracle.com/oxp/xapi" type="bursting">
    <xapi:globalData location="stream">
    </xapi:globalData >
    <xapi:request select="/XXX_XMLPUB_ARINV/LIST_G_INVOICES/G_INVOICES">
    <xapi:delivery>
    <xapi:email server="127.0.0.1"
    port="25"
    from="[email protected]"
    reply-to="[email protected]"
    >
    <xapi:message id="123"
    to="${PURCHASE_ORDER_NUM}"
    bcc=""[email protected]""
    attachment="true"
    subject="${TRX_NUMBER}"
    >
    <html><body>test</body></html>
    </xapi:message>
    </xapi:email>
    </xapi:delivery>
    <xapi:document output-type="pdf" delivery="123">
    <xapi:template type="rtf" location="${XMLPUB_RTF_TEMPLATE}" filter=".//G_INVOICES[PRINTING_COUNT='0']">
    </xapi:template>
    </xapi:document>
    </xapi:request>
    </xapi:requestset>
    Thanks,
    Krishnan
    Edited by: Krishnan-Apps on Dec 23, 2009 2:30 AM

    Hi,
    I seriously doubt your control file is a working one. Can you upload your working/correctly formatted file?
    Or check this working sample below. Hope this helps.
    <?xml version="1.0" encoding="UTF-8"?>
    <xapi:requestset xmlns:xapi="http://xmlns.oracle.com/oxp/xapi">
    <xapi:request select="/">
         <xapi:delivery>
           <xapi:email server="xxmail.mail.com" port="25" from="[email protected]" reply-to ="[email protected]">
             <xapi:message id="${TRX_NUMBER}" to="[email protected]" cc="" bcc=""
              attachment="true" content-type="text/html" subject="${TRX_TYPE_NAME} Number ${TRX_NUMBER}">
           </xapi:message>
           </xapi:email>
         </xapi:delivery>
         <xapi:document output="Invoice_Number_${TRX_NUMBER}" output-type="pdf" delivery="${TRX_NUMBER}">
           <xapi:template type="rtf" location="xdo://AR.XXRAXINV_SEL.en.US/?getSource=true" filter="">
           </xapi:template>
         </xapi:document>
    </xapi:request>
    </xapi:requestset>regards,
    Rownald

  • I am trying to download and install adobe reader, but it is not working. Everytime I try, I get the download but when I try to install it, it goes somewhere but not on my screen for me to install. If I try to install again, it says only one copy can be in

    I am trying to download Adobe Reader, I have Windows 7 on my PC. Every time I get the download, I click on it to install the program, and I get the usual messages but I never get the install message. When I try the download again, I get a message telling me only one copy of the program can go on the computer. When I check the program list, it is not there. I have to restore my computer before I can attempt the download and install again. I have tried this at least 6 times but cannot install Adobe Reader. Please help me out with this. I really like this product and prefer to use it. I had o originally delete the program, due to an update conflict.
    Linda Eaton

    You can try using this tool to first remove all traces of Reader from your computer:
    http://labs.adobe.com/downloads/acrobatcleaner.html
    Then, you can download the full offline Reader installer from
    http://get.adobe.com/reader/enterprise/
    After downloading, restart your computer and run the installer before doing anything else.

Maybe you are looking for

  • Wireless printer offline when it isn't offline

    I set up an HP all in one printer and when I try to print from my macbook pro the printer is "offline." I also have an ipad and it prints just fine to the same printer. Why?

  • How to increase or Decrease Budget for a Particular Period

    Hello All, Can some tell me how to increase/decrease fund for a particular period.

  • Move vacation pix from laptop to iM

    I found a couple threads that were close but none matched my exact query. Thanks for any help. Mike Questions: 1) How do I move 400 pix from my son's macbook pro (in an aperture project called "Disney") to my iMac aperture library? (I want the raw fi

  • Community Template; Save as Template Results in Several Errors

    I customized a Community Site.  I saved that site as a template.  I used that template to create another site.  Resulting errors\things I don't like. 1) When I click on Categories, the Featured Dicussion app and the Discussion app show correlation ID

  • WRT160N v2

    This router just does not work.  It refuses to maintain a wireless connection on any pc in my network, 2 of which run XP and 1 runs Vista.  If that wasn't bad enough it only works sporadically when wired.  I have been trying to get this to work for o