Skip navigation
Currently Being Moderated

cfcontent and MIME types for MS outlook .MSG format

Nov 25, 2010 1:00 AM



I am using a web service that returns the contents of a MSG file as a binary string.

I was hoping to use <cfcontent> to then be able to render the document on demand when the user required.



<cfcontent type="application/"><cfoutput>#tostring(structDocument. filecontent)#</cfoutput><cfabort /> 


However whenever I try to do this a dialogue box appears asking me to save or open the .cfm file instead of rendering the document like it would for the other file types.  Opening the .cfm file, I can see that the content is pretty much intact. 



<cfcontent type="application/pdf"><cfoutput>#tostring(structDocument.filecontent )#</cfoutput><cfabort /> 



Does anyone have any ideas? 



  • Currently Being Moderated
    Nov 25, 2010 1:07 AM   in reply to mrmichael1981

    It's nothing to do with the MIME type, you just need to specify the name of the file.


    Have a look @ <cfheader>




    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points