<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.2" -->
<rss version="2.0" 
	xmlns:content="http://purl.org/rss/1.0/modules/content/">
<channel>
	<title>Comments on: Dude, where&#8217;s my class?</title>
	<link>http://blogs.sanmathi.org/ashwin/2007/02/09/dude-wheres-my-class/</link>
	<description>Ashwin's musings on technology, music and just about anything else...</description>
	<pubDate>Fri, 16 May 2008 03:09:24 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.2</generator>

	<item>
		<title>By: ashwin</title>
		<link>http://blogs.sanmathi.org/ashwin/2007/02/09/dude-wheres-my-class/#comment-157</link>
		<author>ashwin</author>
		<pubDate>Fri, 09 Feb 2007 16:32:46 +0000</pubDate>
		<guid>http://blogs.sanmathi.org/ashwin/2007/02/09/dude-wheres-my-class/#comment-157</guid>
		<description>Thanks for pointing this out, Dan - call it a case of too much Scorpio code of late, but I guess I didn't fully absorb what Robi was saying. It did, though, force a blog post out of me, which is not a bad thing! I've updated the post.</description>
		<content:encoded><![CDATA[<p>Thanks for pointing this out, Dan - call it a case of too much Scorpio code of late, but I guess I didn&#8217;t fully absorb what Robi was saying. It did, though, force a blog post out of me, which is not a bad thing! I&#8217;ve updated the post.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dan G. Switzer, II</title>
		<link>http://blogs.sanmathi.org/ashwin/2007/02/09/dude-wheres-my-class/#comment-156</link>
		<author>Dan G. Switzer, II</author>
		<pubDate>Fri, 09 Feb 2007 15:54:40 +0000</pubDate>
		<guid>http://blogs.sanmathi.org/ashwin/2007/02/09/dude-wheres-my-class/#comment-156</guid>
		<description>As Robi's blog stated, I was the one that asked him for the code. The problem I had was that I was trying to use the JavaMail API to send an attachment from a binary object already loaded in to memory.

The JavaMail API requires some kind of class derived from the DataSource class in order to generate the attachment in the e-mail. JavaMail v1.3.1 (which is what CFMX uses) only comes with a FileDataSource class--which requires the binary data be written to disk.

So, I was trying to find a quick method to search ColdFusion to see what classes I had access to. I could have written a ByteArrayDataSource (which is what most sites recommended for using w/JavaMail and binary data already loaded into memory,) but I didn't want to introduce an outside dependency.

So, by searching through the JARs in the CFMX directory, I was able to find the OctetStreamDataSource in the axis.jar which I was able to leverage.

You can read more at:
http://blog.pengoworks.com/blogger/index.cfm?action=blog:584</description>
		<content:encoded><![CDATA[<p>As Robi&#8217;s blog stated, I was the one that asked him for the code. The problem I had was that I was trying to use the JavaMail API to send an attachment from a binary object already loaded in to memory.</p>
<p>The JavaMail API requires some kind of class derived from the DataSource class in order to generate the attachment in the e-mail. JavaMail v1.3.1 (which is what CFMX uses) only comes with a FileDataSource class&#8211;which requires the binary data be written to disk.</p>
<p>So, I was trying to find a quick method to search ColdFusion to see what classes I had access to. I could have written a ByteArrayDataSource (which is what most sites recommended for using w/JavaMail and binary data already loaded into memory,) but I didn&#8217;t want to introduce an outside dependency.</p>
<p>So, by searching through the JARs in the CFMX directory, I was able to find the OctetStreamDataSource in the axis.jar which I was able to leverage.</p>
<p>You can read more at:<br />
<a href="http://blog.pengoworks.com/blogger/index.cfm?action=blog:584" rel="nofollow">http://blog.pengoworks.com/blogger/index.cfm?action=blog:584</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ben Nadel</title>
		<link>http://blogs.sanmathi.org/ashwin/2007/02/09/dude-wheres-my-class/#comment-155</link>
		<author>Ben Nadel</author>
		<pubDate>Fri, 09 Feb 2007 14:28:03 +0000</pubDate>
		<guid>http://blogs.sanmathi.org/ashwin/2007/02/09/dude-wheres-my-class/#comment-155</guid>
		<description>Nice tip! I just tested it on jExcel JAR file and it found it quite well. This will be excellent for debugging.</description>
		<content:encoded><![CDATA[<p>Nice tip! I just tested it on jExcel JAR file and it found it quite well. This will be excellent for debugging.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
