Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Not formatting text file while downloading  RSS feed

 
Naresh Talluri
Ranch Hand
Posts: 115
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hifolks
I have faced some problem while downloading the text file using JSP
Using JavaMail iam getting data as an attachment as .txt format
If i download that file iam getting content as not formatted ,
can you please let me know how to do this one
Appriciate for quick response..

Thanks & Regards
Naresh
[ February 07, 2008: Message edited by: Naresh. Talluri's ]
 
David O'Meara
Rancher
Posts: 13459
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It sounds like the mime type for the file is being sent as text/html rather than text/plain. This would case the formatting to be removed when the email client tries to display it.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!