<?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: Uploading Binary files or Images using LINQ to SQL</title>
	<atom:link href="http://www.aneef.net/2009/01/16/uploading-binary-files-or-images-using-linq-to-sql/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.aneef.net/2009/01/16/uploading-binary-files-or-images-using-linq-to-sql/</link>
	<description>Do it in .Net way &#124; Blogging about C#,ASP.Net, LINQ,WPF and .Net Technologies</description>
	<lastBuildDate>Wed, 17 Feb 2010 13:44:05 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: kingofswing</title>
		<link>http://www.aneef.net/2009/01/16/uploading-binary-files-or-images-using-linq-to-sql/comment-page-1/#comment-267</link>
		<dc:creator>kingofswing</dc:creator>
		<pubDate>Fri, 30 Oct 2009 06:34:32 +0000</pubDate>
		<guid isPermaLink="false">http://www.aneef.net/2009/01/16/uploading-binary-files-or-images-using-linq-to-sql/#comment-267</guid>
		<description>Also new to linq2sql, does MyData direct to call stored_procedure ADDFILE in the database? or do we need to drag the ADDFILE sp into the O/R designer？ 
another question is how to read from database, and display it on page in asp.net? anyway, thanks a lot !</description>
		<content:encoded><![CDATA[<p>Also new to linq2sql, does MyData direct to call stored_procedure ADDFILE in the database? or do we need to drag the ADDFILE sp into the O/R designer？<br />
another question is how to read from database, and display it on page in asp.net? anyway, thanks a lot !</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: DoYouKnow.IN</title>
		<link>http://www.aneef.net/2009/01/16/uploading-binary-files-or-images-using-linq-to-sql/comment-page-1/#comment-247</link>
		<dc:creator>DoYouKnow.IN</dc:creator>
		<pubDate>Fri, 09 Oct 2009 11:01:05 +0000</pubDate>
		<guid isPermaLink="false">http://www.aneef.net/2009/01/16/uploading-binary-files-or-images-using-linq-to-sql/#comment-247</guid>
		<description>But how to get back image from database and display in HTML Image tag?</description>
		<content:encoded><![CDATA[<p>But how to get back image from database and display in HTML Image tag?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nuwan</title>
		<link>http://www.aneef.net/2009/01/16/uploading-binary-files-or-images-using-linq-to-sql/comment-page-1/#comment-211</link>
		<dc:creator>Nuwan</dc:creator>
		<pubDate>Tue, 01 Sep 2009 10:47:41 +0000</pubDate>
		<guid isPermaLink="false">http://www.aneef.net/2009/01/16/uploading-binary-files-or-images-using-linq-to-sql/#comment-211</guid>
		<description>How do you diasplay the content of the uploaded file in ASP.net.</description>
		<content:encoded><![CDATA[<p>How do you diasplay the content of the uploaded file in ASP.net.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Linq to Sql: Upload binary file &#171; R in Random</title>
		<link>http://www.aneef.net/2009/01/16/uploading-binary-files-or-images-using-linq-to-sql/comment-page-1/#comment-101</link>
		<dc:creator>Linq to Sql: Upload binary file &#171; R in Random</dc:creator>
		<pubDate>Fri, 20 Feb 2009 19:34:26 +0000</pubDate>
		<guid isPermaLink="false">http://www.aneef.net/2009/01/16/uploading-binary-files-or-images-using-linq-to-sql/#comment-101</guid>
		<description>[...] Linq to Sql: Upload binary&#160;file By hengrr  Aneef has a great tutorial on uploading binary files to the db using Linq.  http://www.aneef.net/2009/01/16/uploading-binary-files-or-images-using-linq-to-sql/comment-page-1/#c... [...]</description>
		<content:encoded><![CDATA[<p>[...] Linq to Sql: Upload binary&nbsp;file By hengrr  Aneef has a great tutorial on uploading binary files to the db using Linq.  <a href="http://www.aneef.net/2009/01/16/uploading-binary-files-or-images-using-linq-to-sql/comment-page-1/#c.." rel="nofollow">http://www.aneef.net/2009/01/16/uploading-binary-files-or-images-using-linq-to-sql/comment-page-1/#c..</a>. [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Richie</title>
		<link>http://www.aneef.net/2009/01/16/uploading-binary-files-or-images-using-linq-to-sql/comment-page-1/#comment-100</link>
		<dc:creator>Richie</dc:creator>
		<pubDate>Fri, 20 Feb 2009 18:08:56 +0000</pubDate>
		<guid isPermaLink="false">http://www.aneef.net/2009/01/16/uploading-binary-files-or-images-using-linq-to-sql/#comment-100</guid>
		<description>Great work Aneef,

I have a table in the DB called Documents.  Instead of creating the stored proc, I just let LINQ do everything for me...  Your &quot;byte[] filebyte = FileUploader.FileBytes;&quot; is just what I needed.

                Document d = new Document
                {
                    guid=Guid.NewGuid(),
                    file_ext=ext.Replace(&quot;.&quot;,&quot;&quot;).Substring(0,3),
                    file_nm=file_name,
                    file_bin=file_binary,
                    is_active=true,
                    upload_page_type=rblLocation.SelectedValue,
                    upload_dt=DateTime.Now,
                    upload_by=Common.CurrentUserLogin
                };

                db.ControlDocuments.InsertOnSubmit(d);
                db.SubmitChanges();</description>
		<content:encoded><![CDATA[<p>Great work Aneef,</p>
<p>I have a table in the DB called Documents.  Instead of creating the stored proc, I just let LINQ do everything for me&#8230;  Your &#8220;byte[] filebyte = FileUploader.FileBytes;&#8221; is just what I needed.</p>
<p>                Document d = new Document<br />
                {<br />
                    guid=Guid.NewGuid(),<br />
                    file_ext=ext.Replace(&#8220;.&#8221;,&#8221;").Substring(0,3),<br />
                    file_nm=file_name,<br />
                    file_bin=file_binary,<br />
                    is_active=true,<br />
                    upload_page_type=rblLocation.SelectedValue,<br />
                    upload_dt=DateTime.Now,<br />
                    upload_by=Common.CurrentUserLogin<br />
                };</p>
<p>                db.ControlDocuments.InsertOnSubmit(d);<br />
                db.SubmitChanges();</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Aneef Fashir</title>
		<link>http://www.aneef.net/2009/01/16/uploading-binary-files-or-images-using-linq-to-sql/comment-page-1/#comment-98</link>
		<dc:creator>Aneef Fashir</dc:creator>
		<pubDate>Thu, 29 Jan 2009 17:41:55 +0000</pubDate>
		<guid isPermaLink="false">http://www.aneef.net/2009/01/16/uploading-binary-files-or-images-using-linq-to-sql/#comment-98</guid>
		<description>Hi Shyam,

LINQ Namespace is enough for this. you have to add a LINQ to SQL Class and Name it as MyData, this will create your MyDataDataContext Class for your use.</description>
		<content:encoded><![CDATA[<p>Hi Shyam,</p>
<p>LINQ Namespace is enough for this. you have to add a LINQ to SQL Class and Name it as MyData, this will create your MyDataDataContext Class for your use.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Shyam</title>
		<link>http://www.aneef.net/2009/01/16/uploading-binary-files-or-images-using-linq-to-sql/comment-page-1/#comment-97</link>
		<dc:creator>Shyam</dc:creator>
		<pubDate>Thu, 29 Jan 2009 17:16:28 +0000</pubDate>
		<guid isPermaLink="false">http://www.aneef.net/2009/01/16/uploading-binary-files-or-images-using-linq-to-sql/#comment-97</guid>
		<description>i&#039;m new to linq. can you please tell if there is any namespace needed for the use of 

MyDataDataContext MyData = new MyDataDataContext();</description>
		<content:encoded><![CDATA[<p>i&#8217;m new to linq. can you please tell if there is any namespace needed for the use of </p>
<p>MyDataDataContext MyData = new MyDataDataContext();</p>
]]></content:encoded>
	</item>
</channel>
</rss>
