<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Sametime Business Cards: Where&#8217;s that Picture Coming From?</title>
	<atom:link href="http://www.thenewdominoadmin.com/blog/?feed=rss2&#038;p=828" rel="self" type="application/rss+xml" />
	<link>http://www.thenewdominoadmin.com/blog/?p=828</link>
	<description>Got Notes? Need Help?</description>
	<lastBuildDate>Fri, 03 Sep 2010 15:57:04 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
	<item>
		<title>By: The New Domino Admin &#187; Blog Archive &#187; Sametime Business Cards: Enable Employees to Upload Their Picture using a Action Menu Agent</title>
		<link>http://www.thenewdominoadmin.com/blog/?p=828&#038;cpage=1#comment-6275</link>
		<dc:creator>The New Domino Admin &#187; Blog Archive &#187; Sametime Business Cards: Enable Employees to Upload Their Picture using a Action Menu Agent</dc:creator>
		<pubDate>Sun, 18 Apr 2010 19:16:26 +0000</pubDate>
		<guid isPermaLink="false">http://www.thenewdominoadmin.com/blog/?p=828#comment-6275</guid>
		<description>[...] a post I wrote a few weeks ago about Sametime Pictures and another here about a security issue with the [...]</description>
		<content:encoded><![CDATA[<p>[...] a post I wrote a few weeks ago about Sametime Pictures and another here about a security issue with the [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Marc Champoux</title>
		<link>http://www.thenewdominoadmin.com/blog/?p=828&#038;cpage=1#comment-810</link>
		<dc:creator>Marc Champoux</dc:creator>
		<pubDate>Wed, 10 Mar 2010 00:45:18 +0000</pubDate>
		<guid isPermaLink="false">http://www.thenewdominoadmin.com/blog/?p=828#comment-810</guid>
		<description>Hi Keith,
   
Mmmm ... the application I wrote is custom made for our own internal HR database and I&#039;m not authorized to share that particular software.
    
Anyway, it&#039;s so &quot;specific&quot; to us that I&#039;d be really surprised if it would work in any other company.
   
But ... I&#039;ll probably write another article later with snippets of code to help out if you feel like coding something for your own environment.
   
In the meantime, here&#039;s the &quot;overall&quot; logic ...
  
1. Get a hold of the selected document (in LotusScript of course).
2. Check for an attachment in the rich-text field for the employee picture.
3. Create a DXLExporter object and make it export all the pictures out of the selected documents to a folder on the hard drive.
4. Verify that there is a picture that was exported in the folder of the hard drive.
5. Launch a command to call IrfanView from the command line and resize the picture to a 100xwhatever picture (i.e. keep the aspect ratio).
6. Wait 5 seconds (to give IrfanView enough time to resize the evil 10 megapixel that was attached in the rich-text field).
7. Check to make sure that the resized file exists.
8. Check if it&#039;s under 32k.
9. If it&#039;s under 32k, find the person doc of the employee in the Domino Directory.
10. Once I have the person doc of the employee in the Domino Directory, check for a jpgPhoto field ... delete it if it exists.
11. Load the file with the resized picture byte-by-byte in an array with a NotesStream object.
12. Use the &quot;ReplaceItemValueCustomDataBytes&quot; method of the NotesDocument class to write the array of bytes into the jpgPhoto field.
13. That&#039;s it ... that&#039;s all folks ... do some house cleaning (like removing the 2 files from the folder on the hard drive).
   

I hope it helps you ...</description>
		<content:encoded><![CDATA[<p>Hi Keith,</p>
<p>Mmmm &#8230; the application I wrote is custom made for our own internal HR database and I&#8217;m not authorized to share that particular software.</p>
<p>Anyway, it&#8217;s so &#8220;specific&#8221; to us that I&#8217;d be really surprised if it would work in any other company.</p>
<p>But &#8230; I&#8217;ll probably write another article later with snippets of code to help out if you feel like coding something for your own environment.</p>
<p>In the meantime, here&#8217;s the &#8220;overall&#8221; logic &#8230;</p>
<p>1. Get a hold of the selected document (in LotusScript of course).<br />
2. Check for an attachment in the rich-text field for the employee picture.<br />
3. Create a DXLExporter object and make it export all the pictures out of the selected documents to a folder on the hard drive.<br />
4. Verify that there is a picture that was exported in the folder of the hard drive.<br />
5. Launch a command to call IrfanView from the command line and resize the picture to a 100xwhatever picture (i.e. keep the aspect ratio).<br />
6. Wait 5 seconds (to give IrfanView enough time to resize the evil 10 megapixel that was attached in the rich-text field).<br />
7. Check to make sure that the resized file exists.<br />
8. Check if it&#8217;s under 32k.<br />
9. If it&#8217;s under 32k, find the person doc of the employee in the Domino Directory.<br />
10. Once I have the person doc of the employee in the Domino Directory, check for a jpgPhoto field &#8230; delete it if it exists.<br />
11. Load the file with the resized picture byte-by-byte in an array with a NotesStream object.<br />
12. Use the &#8220;ReplaceItemValueCustomDataBytes&#8221; method of the NotesDocument class to write the array of bytes into the jpgPhoto field.<br />
13. That&#8217;s it &#8230; that&#8217;s all folks &#8230; do some house cleaning (like removing the 2 files from the folder on the hard drive).</p>
<p>I hope it helps you &#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Marc Champoux</title>
		<link>http://www.thenewdominoadmin.com/blog/?p=828&#038;cpage=1#comment-809</link>
		<dc:creator>Marc Champoux</dc:creator>
		<pubDate>Wed, 10 Mar 2010 00:34:05 +0000</pubDate>
		<guid isPermaLink="false">http://www.thenewdominoadmin.com/blog/?p=828#comment-809</guid>
		<description>Hi Scott,
   
The picture got into his address book because he&#039;s a roaming user ... so it syncs up with his BlackBerry automatically.
    
I guess the other sales rep at the sales meeting thought it would be funny to add a picture of the other guy to his very own entry. It&#039;s too bad I had to remove the picture of the sales rep because he had one of those &quot;don&#039;t you dare take my picture&quot; expression ... he was actually probably saying exactly that when the picture was taken ... but after talking with Patrick about it, he asked me to make sure our sales rep picture wasn&#039;t on this blog. Oh well.
   
Anyhow ...Thanks for your comment!</description>
		<content:encoded><![CDATA[<p>Hi Scott,</p>
<p>The picture got into his address book because he&#8217;s a roaming user &#8230; so it syncs up with his BlackBerry automatically.</p>
<p>I guess the other sales rep at the sales meeting thought it would be funny to add a picture of the other guy to his very own entry. It&#8217;s too bad I had to remove the picture of the sales rep because he had one of those &#8220;don&#8217;t you dare take my picture&#8221; expression &#8230; he was actually probably saying exactly that when the picture was taken &#8230; but after talking with Patrick about it, he asked me to make sure our sales rep picture wasn&#8217;t on this blog. Oh well.</p>
<p>Anyhow &#8230;Thanks for your comment!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Scott P</title>
		<link>http://www.thenewdominoadmin.com/blog/?p=828&#038;cpage=1#comment-808</link>
		<dc:creator>Scott P</dc:creator>
		<pubDate>Tue, 09 Mar 2010 15:53:59 +0000</pubDate>
		<guid isPermaLink="false">http://www.thenewdominoadmin.com/blog/?p=828#comment-808</guid>
		<description>Question is, how did the picture get into his entry in his local address book?</description>
		<content:encoded><![CDATA[<p>Question is, how did the picture get into his entry in his local address book?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Keith Taylor</title>
		<link>http://www.thenewdominoadmin.com/blog/?p=828&#038;cpage=1#comment-807</link>
		<dc:creator>Keith Taylor</dc:creator>
		<pubDate>Tue, 09 Mar 2010 15:34:54 +0000</pubDate>
		<guid isPermaLink="false">http://www.thenewdominoadmin.com/blog/?p=828#comment-807</guid>
		<description>Any chance you might share your agent and maybe an entry on how you were able to get it working?</description>
		<content:encoded><![CDATA[<p>Any chance you might share your agent and maybe an entry on how you were able to get it working?</p>
]]></content:encoded>
	</item>
</channel>
</rss>
