<?xml version="1.0" encoding="iso-8859-9" ?>
<?xml-stylesheet type="text/xsl" href="RSS_xslt_style.asp" version="1.0" ?>
<rss version="2.0" xmlns:WebWizForums="http://syndication.webwizguide.com/rss_namespace/">
 <channel>
  <title>Datakent Forum : Asp.Net C# İle VeriTabanına Resim Yazmak ve Okumak</title>
  <link>http://forum.datakent.com/</link>
  <description>XML içerik linki; Datakent Forum : C# &amp; ASP.NET : Asp.Net C# İle VeriTabanına Resim Yazmak ve Okumak</description>
  <pubDate>Sat, 16 May 2026 08:16:53 +0000</pubDate>
  <lastBuildDate>Fri, 06 Apr 2012 00:36:26 +0000</lastBuildDate>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Web Wiz Forums 9.54</generator>
  <ttl>360</ttl>
  <WebWizForums:feedURL>forum.datakent.com/RSS_post_feed.asp?TID=1797</WebWizForums:feedURL>
  <image>
   <title>Datakent Forum</title>
   <url>http://forum.datakent.com/forum_images/datakent.com_forums.png</url>
   <link>http://forum.datakent.com/</link>
  </image>
  <item>
   <title>Asp.Net C# İle VeriTabanına Resim Yazmak ve Okumak : sayfadaki resimleri ve linki yenileyebilir...</title>
   <link>http://forum.datakent.com/forum_posts.asp?TID=1797&amp;PID=4987#4987</link>
   <description>
    <![CDATA[<strong>Yazar:</strong> <a href="http://forum.datakent.com/member_profile.asp?PF=4136" rel="nofollow">kozkan645</a><br /><strong>Konu:</strong> 1797<br /><strong>Gönderim Zamanı:</strong> 06.Nisan.2012 Saat 00:36<br /><br />sayfadaki resimleri ve linki yenileyebilir misiniz lütfen çok lazım bu örnek bana da&nbsp;<img src="http://forum.datakent.com/smileys/smiley37.gif" border="0" alt="Exclamati&#111;n" title="Exclamati&#111;n" />]]>
   </description>
   <pubDate>Fri, 06 Apr 2012 00:36:26 +0000</pubDate>
   <guid isPermaLink="true">http://forum.datakent.com/forum_posts.asp?TID=1797&amp;PID=4987#4987</guid>
  </item> 
  <item>
   <title>Asp.Net C# İle VeriTabanına Resim Yazmak ve Okumak : te&#351;ekk&#252;r ederim, oldu.   </title>
   <link>http://forum.datakent.com/forum_posts.asp?TID=1797&amp;PID=4605#4605</link>
   <description>
    <![CDATA[<strong>Yazar:</strong> <a href="http://forum.datakent.com/member_profile.asp?PF=3979" rel="nofollow">devrekli</a><br /><strong>Konu:</strong> 1797<br /><strong>Gönderim Zamanı:</strong> 11.Mayis.2011 Saat 20:08<br /><br />teşekkür ederim, oldu.]]>
   </description>
   <pubDate>Wed, 11 May 2011 20:08:09 +0000</pubDate>
   <guid isPermaLink="true">http://forum.datakent.com/forum_posts.asp?TID=1797&amp;PID=4605#4605</guid>
  </item> 
  <item>
   <title>Asp.Net C# İle VeriTabanına Resim Yazmak ve Okumak : dostum benim SQLConnection &amp;#039;&#305;...</title>
   <link>http://forum.datakent.com/forum_posts.asp?TID=1797&amp;PID=4602#4602</link>
   <description>
    <![CDATA[<strong>Yazar:</strong> <a href="http://forum.datakent.com/member_profile.asp?PF=1" rel="nofollow">murat turan</a><br /><strong>Konu:</strong> 1797<br /><strong>Gönderim Zamanı:</strong> 11.Mayis.2011 Saat 10:12<br /><br />dostum benim SQLConnection 'ı açmamışsın. ExecuteNonQuery&nbsp; den önce con.Open(); yap<DIV>&nbsp;</DIV><DIV><strong>"ExecuteNonQuery request an open and avaible Connection"</strong></DIV><span style="font-size:10px"><br /><br />Düzenleyen murat turan - 11.Mayis.2011 Saat 10:12</span>]]>
   </description>
   <pubDate>Wed, 11 May 2011 10:12:17 +0000</pubDate>
   <guid isPermaLink="true">http://forum.datakent.com/forum_posts.asp?TID=1797&amp;PID=4602#4602</guid>
  </item> 
  <item>
   <title>Asp.Net C# İle VeriTabanına Resim Yazmak ve Okumak : son durum olarak &#351;u hatay&#305; nas&#305;l...</title>
   <link>http://forum.datakent.com/forum_posts.asp?TID=1797&amp;PID=4601#4601</link>
   <description>
    <![CDATA[<strong>Yazar:</strong> <a href="http://forum.datakent.com/member_profile.asp?PF=3979" rel="nofollow">devrekli</a><br /><strong>Konu:</strong> 1797<br /><strong>Gönderim Zamanı:</strong> 10.Mayis.2011 Saat 20:58<br /><br />son durum olarak şu hatayı nasıl düzeltirim?<br><br>http://tinypaste.com/1019d<br><br>http://img284.imagevenue.com/img.php?image=45752_Noname_122_427lo.jpg<br>]]>
   </description>
   <pubDate>Tue, 10 May 2011 20:58:24 +0000</pubDate>
   <guid isPermaLink="true">http://forum.datakent.com/forum_posts.asp?TID=1797&amp;PID=4601#4601</guid>
  </item> 
  <item>
   <title>Asp.Net C# İle VeriTabanına Resim Yazmak ve Okumak :   link silinmi&#351; hocam, yenileyebilirmisin?...</title>
   <link>http://forum.datakent.com/forum_posts.asp?TID=1797&amp;PID=4596#4596</link>
   <description>
    <![CDATA[<strong>Yazar:</strong> <a href="http://forum.datakent.com/member_profile.asp?PF=3979" rel="nofollow">devrekli</a><br /><strong>Konu:</strong> 1797<br /><strong>Gönderim Zamanı:</strong> 08.Mayis.2011 Saat 01:49<br /><br />link silinmiş hocam, yenileyebilirmisin? ben yaptım ama hata verdi :(<br><br>http://img183.imagevenue.com/img.php?image=07919_33333_122_150lo.jpg<br><br>bağlantıda hata varmış gibi görünüyor ama tüm ayarları tamam :(<br><br>http://img295.imagevenue.com/img.php?image=09201_AAAAAAAAAAAAA_122_366lo.jpg<br><br>veritabanında; kimlik (numeric, birincil key) adsoyad(varchar) resmi (image) şeklinde oluşturdum. veritabanı ismi de resim zaten resimde de herşeyin normal olduğu görüyor ama bağlantı hatası veriyor sürekli. ilkez mssql kullanıyorum. acaba öncesinden bir ayar mı yapmak gerek? teşekkürler<br><br><br>----------<br><br> .\\SQLEXPRESS yaptığımda da şu hatayı veriyor.<br><br><br>http://img181.imagevenue.com/img.php?image=64512_Noname_122_499lo.jpg<br><span style="font-size:10px"><br /><br />Düzenleyen devrekli - 08.Mayis.2011 Saat 17:44</span>]]>
   </description>
   <pubDate>Sun, 08 May 2011 01:49:08 +0000</pubDate>
   <guid isPermaLink="true">http://forum.datakent.com/forum_posts.asp?TID=1797&amp;PID=4596#4596</guid>
  </item> 
  <item>
   <title>Asp.Net C# İle VeriTabanına Resim Yazmak ve Okumak : &#214;nemli de&#287;il abi.Senden &#231;ok &#351;ey...</title>
   <link>http://forum.datakent.com/forum_posts.asp?TID=1797&amp;PID=3928#3928</link>
   <description>
    <![CDATA[<strong>Yazar:</strong> <a href="http://forum.datakent.com/member_profile.asp?PF=3122" rel="nofollow">turknetyazilim</a><br /><strong>Konu:</strong> 1797<br /><strong>Gönderim Zamanı:</strong> 11.Ekim.2009 Saat 16:59<br /><br /><P>Önemli değil abi.Senden çok şey öğrendim.</P>]]>
   </description>
   <pubDate>Sun, 11 Oct 2009 16:59:35 +0000</pubDate>
   <guid isPermaLink="true">http://forum.datakent.com/forum_posts.asp?TID=1797&amp;PID=3928#3928</guid>
  </item> 
  <item>
   <title>Asp.Net C# İle VeriTabanına Resim Yazmak ve Okumak : ismail 2010&amp;#039;a ge&#231;mi&#351;sin :)...</title>
   <link>http://forum.datakent.com/forum_posts.asp?TID=1797&amp;PID=3920#3920</link>
   <description>
    <![CDATA[<strong>Yazar:</strong> <a href="http://forum.datakent.com/member_profile.asp?PF=1" rel="nofollow">murat turan</a><br /><strong>Konu:</strong> 1797<br /><strong>Gönderim Zamanı:</strong> 09.Ekim.2009 Saat 21:58<br /><br />ismail 2010'a geçmişsin :) sağol örnek için]]>
   </description>
   <pubDate>Fri, 09 Oct 2009 21:58:30 +0000</pubDate>
   <guid isPermaLink="true">http://forum.datakent.com/forum_posts.asp?TID=1797&amp;PID=3920#3920</guid>
  </item> 
  <item>
   <title>Asp.Net C# İle VeriTabanına Resim Yazmak ve Okumak : Merhaba Arkada&#351;lar ;  Bu makalemde...</title>
   <link>http://forum.datakent.com/forum_posts.asp?TID=1797&amp;PID=3915#3915</link>
   <description>
    <![CDATA[<strong>Yazar:</strong> <a href="http://forum.datakent.com/member_profile.asp?PF=3122" rel="nofollow">turknetyazilim</a><br /><strong>Konu:</strong> 1797<br /><strong>Gönderim Zamanı:</strong> 05.Ekim.2009 Saat 18:13<br /><br /><P><SPAN style="FONT-SIZE: 9pt; FONT-FAMILY: 'Lucida Sans Unicode'">Merhaba Arkadaşlar ;</SPAN></P><DIV>&nbsp;</DIV><DIV><SPAN style="FONT-SIZE: 9pt; FONT-FAMILY: 'Lucida Sans Unicode'">Bu makalemde sizlere Asp.Net uygulamaları ile VeriTabanına resim dosyalarını <B>Binary</B> olarak nasıl yazıp okuyabileceğimizden bahsedicem.Daha Önce Bu işlemleri Windows Form uygulamaları ile nasıl yapılabileceğini anlatmıştım.(Delphi,C#) Şimdi ise bu işi Web Formda yapıcaz.Yine kullanacağımız veriTabanı <B>msSQL</B> server olucak.Bu uygulamayı diğer veriTabanlarındada kullanıp Tecrübe edinebilirsiniz.</SPAN></DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV><SPAN style="FONT-SIZE: 9pt; FONT-FAMILY: 'Lucida Sans Unicode'">Ben veriTabanına dosyayı değilde, yolunu yazıyorum, ordan çağırıyorum diyebilirsiniz.Ne gerek var ! yok dosya yazmaymış bilmem neymiş diye.Bende derim ki ozaman ;Tuttu bi gün veriTabanına yazmak veya okumak zorunda kaldınız(Tabi binary olarak) veya nebileyim mevcut bir veriTabanı var ve veriTabanındaki tabloda adam resmin yolunu değilde resmin kendisininin tutulacağı şekilde tabloyu tasarlamıştır.Ve yine düşünün ki siz o veriTabanı ile çalışmak zorunda kalmışsınızdır.Şimdi ne olacak ? </SPAN><SPAN style="FONT-SIZE: 9pt; FONT-FAMILY: Wingdings">J</SPAN></DIV><DIV>&nbsp;</DIV><DIV><SPAN style="FONT-SIZE: 9pt; FONT-FAMILY: 'Lucida Sans Unicode'">Evet kendi geliştirdiğiniz uygulamalarınızda dosyanın yolunu yazıp ordan çağırıp uygulamalar geliştirebilirsiniz.Ama Mevcut bir sistemle çalışma zorunluğu olduğunda bu tip bilgilere ihtiyacınız olacaktır.Tabi benim bir başkasının veriTabanı ile çalışmak zorunda olduğum filan yok.Acaba VeriTabanına nasıl resim dosyası yazarım ve okurum diye aklıma takılan bir soruydu.Aklımdaki sorunun çözümünü geliştirdim.Ve sizlerle de paylaşmak istedim.</SPAN></DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV><SPAN style="FONT-SIZE: 9pt; FONT-FAMILY: 'Lucida Sans Unicode'">Olurya bi gün gerçekten yukarıdaki bahsettiğim durumlarla gerçekten karşılaşırsanız.Ve Kara kara düşünürsünüz nasıl yaparım diye.İşte Ozaman anlarsınız bu işin önemini.</SPAN></DIV><DIV><SPAN style="FONT-SIZE: 9pt; FONT-FAMILY: 'Lucida Sans Unicode'">Neyse Bu kadar hikaye yeter diyerek Uygulamaya Başlayalım. </SPAN><SPAN style="FONT-SIZE: 9pt; FONT-FAMILY: Wingdings">J</SPAN></DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV><SPAN style="FONT-SIZE: 9pt; FONT-FAMILY: 'Lucida Sans Unicode'">Öncelikle <B>Test</B> VeriTabanı içersine aşağıdaki gibi <B>resimler</B> isminde bir tablo oluşturun.<BR><img src="http://ismailkocacan.com/dosyalar/Web_&#070;orm%20VeriTabani%20Binary_Resim/tbl.jpg" border="0" /><BR><DIV><SPAN style="FONT-SIZE: 9pt; FONT-FAMILY: 'Lucida Sans Unicode'">Sanırım Tablo alanlarında ne tutulacağı hakkında bir şey söylemeye gerek yok.</SPAN></DIV><DIV><SPAN style="FONT-SIZE: 9pt; FONT-FAMILY: 'Lucida Sans Unicode'">Evet Tablo Tasarımımız bu kadar Şimdi <B>File</B> -&gt;<B>New Project </B>deyip <B>C#</B> -&gt; <B>Web</B> -&gt;<B>Asp.Net Web Application</B> adımlarını izleyerek bir uygulama başlatın.</SPAN></DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV><SPAN style="FONT-SIZE: 9pt; FONT-FAMILY: 'Lucida Sans Unicode'">Varsayılan olarak <B>Default.aspx </B>isminde Sayfamız Gelecektir.Biz bu Sayfada resmimizi göstericez.</SPAN></DIV><DIV><SPAN style="FONT-SIZE: 9pt; FONT-FAMILY: 'Lucida Sans Unicode'">Resmimizi <B>Image</B> Nesnesi üzerinde göstereceğimiz için ToolBoxtan bir tane <B>Image</B> nesnesi ekliyoruz <B>Default.aspx</B> Sayfamıza.<B>Image</B> Nesnesinin isminde herhangi bir değişiklik yapmadım.Aşağıdaki gibi.<BR><img src="http://ismailkocacan.com/dosyalar/Web_&#070;orm%20VeriTabani%20Binary_Resim/d1.jpg" border="0" /><BR><DIV><B><U><SPAN style="FONT-SIZE: 11pt; COLOR: green; FONT-FAMILY: 'Lucida Sans Unicode'">Default.aspx Sayfasına Ad kod bloğu aşağıdaki gibidir.</SPAN></U></B></DIV><DIV><SPAN style="FONT-SIZE: 9.5pt; COLOR: blue; FONT-FAMILY: 'Lucida C&#111;nsole'">using</SPAN><SPAN style="FONT-SIZE: 9.5pt; FONT-FAMILY: 'Lucida C&#111;nsole'"> System;</SPAN></DIV><DIV><SPAN style="FONT-SIZE: 9.5pt; COLOR: blue; FONT-FAMILY: 'Lucida C&#111;nsole'">using</SPAN><SPAN style="FONT-SIZE: 9.5pt; FONT-FAMILY: 'Lucida C&#111;nsole'"> System.Collections.Generic;</SPAN></DIV><DIV><SPAN style="FONT-SIZE: 9.5pt; COLOR: blue; FONT-FAMILY: 'Lucida C&#111;nsole'">using</SPAN><SPAN style="FONT-SIZE: 9.5pt; FONT-FAMILY: 'Lucida C&#111;nsole'"> System.Web;</SPAN></DIV><DIV><SPAN style="FONT-SIZE: 9.5pt; COLOR: blue; FONT-FAMILY: 'Lucida C&#111;nsole'">using</SPAN><SPAN style="FONT-SIZE: 9.5pt; FONT-FAMILY: 'Lucida C&#111;nsole'"> System.Web.UI;</SPAN></DIV><DIV><SPAN style="FONT-SIZE: 9.5pt; COLOR: blue; FONT-FAMILY: 'Lucida C&#111;nsole'">using</SPAN><SPAN style="FONT-SIZE: 9.5pt; FONT-FAMILY: 'Lucida C&#111;nsole'"> System.Web.UI.WebControls;</SPAN></DIV><DIV>&nbsp;</DIV><DIV><SPAN style="FONT-SIZE: 9.5pt; COLOR: blue; FONT-FAMILY: 'Lucida C&#111;nsole'">namespace</SPAN><SPAN style="FONT-SIZE: 9.5pt; FONT-FAMILY: 'Lucida C&#111;nsole'"> ismailkocacancomBinaryProject</SPAN></DIV><DIV><SPAN style="FONT-SIZE: 9.5pt; FONT-FAMILY: 'Lucida C&#111;nsole'">{</SPAN></DIV><DIV><SPAN style="FONT-SIZE: 9.5pt; FONT-FAMILY: 'Lucida C&#111;nsole'">&nbsp;&nbsp;&nbsp; <SPAN style="COLOR: blue">public</SPAN> <SPAN style="COLOR: blue">partial</SPAN> <SPAN style="COLOR: blue">class</SPAN> <SPAN style="COLOR: #2b91af">_Default</SPAN> : System.Web.UI.<SPAN style="COLOR: #2b91af">Page</SPAN></SPAN></DIV><DIV><SPAN style="FONT-SIZE: 9.5pt; FONT-FAMILY: 'Lucida C&#111;nsole'">&nbsp;&nbsp;&nbsp; {</SPAN></DIV><DIV><SPAN style="FONT-SIZE: 9.5pt; FONT-FAMILY: 'Lucida C&#111;nsole'">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <SPAN style="COLOR: blue">protected</SPAN> <SPAN style="COLOR: blue">void</SPAN> Page_Load(<SPAN style="COLOR: blue">object</SPAN> sender, <SPAN style="COLOR: #2b91af">EventArgs</SPAN> e)</SPAN></DIV><DIV><SPAN style="FONT-SIZE: 9.5pt; FONT-FAMILY: 'Lucida C&#111;nsole'">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {</SPAN></DIV><DIV><SPAN style="FONT-SIZE: 9.5pt; FONT-FAMILY: 'Lucida C&#111;nsole'">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Image1.BorderWidth = 2; <SPAN style="COLOR: green">//Çizgi Kalınlığı</SPAN></SPAN></DIV><DIV><SPAN style="FONT-SIZE: 9.5pt; FONT-FAMILY: 'Lucida C&#111;nsole'">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Image1.BorderStyle = <SPAN style="COLOR: #2b91af">BorderStyle</SPAN>.Solid; <SPAN style="COLOR: green">//Çizgili olsun</SPAN></SPAN></DIV><DIV><SPAN style="FONT-SIZE: 9.5pt; FONT-FAMILY: 'Lucida C&#111;nsole'">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Image1.ImageUrl = <SPAN style="COLOR: #a31515">"Oku.aspx"</SPAN>; <SPAN style="COLOR: green">// gösterilcek resim adresi</SPAN></SPAN></DIV><DIV><SPAN style="FONT-SIZE: 9.5pt; FONT-FAMILY: 'Lucida C&#111;nsole'">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }</SPAN></DIV><DIV><SPAN style="FONT-SIZE: 9.5pt; FONT-FAMILY: 'Lucida C&#111;nsole'">&nbsp;&nbsp;&nbsp; }</SPAN></DIV><DIV><SPAN style="FONT-SIZE: 9.5pt; FONT-FAMILY: 'Lucida C&#111;nsole'">}</SPAN></DIV><DIV>&nbsp;</DIV><DIV><B><SPAN style="FONT-SIZE: 9pt; FONT-FAMILY: 'Lucida Sans Unicode'">Burda </SPAN></B><B><SPAN style="FONT-SIZE: 9.5pt; FONT-FAMILY: C&#111;nsolas">Image1.ImageUrl = <SPAN style="COLOR: #a31515">"Oku.aspx"</SPAN>; </SPAN></B><B><SPAN style="FONT-SIZE: 9pt; FONT-FAMILY: 'Lucida Sans Unicode'">koduna dikkat ederseniz. İsmail.jpg veya ismail.gif gibi bir resim dosyası değilde Oku.aspx yazdık.Biraz sonra göreceksiniz. Oku.aspx sayfasının çıkış formatı image olarak olucak.</SPAN></B></DIV><DIV>&nbsp;</DIV><DIV><SPAN style="FONT-SIZE: 9pt; FONT-FAMILY: 'Lucida Sans Unicode'">Daha sonra iki Tane daha sayfa Ekliycez.Bunlar <B>Ekle.aspx</B> ve <B>oku.aspx</B> isminde olucak.Sayfaları eklemek için <B>Project</B> -&gt; <B>Add New Item</B> Menüsünü kullanabilirsiniz.</SPAN></DIV><DIV><SPAN style="FONT-SIZE: 9pt; FONT-FAMILY: 'Lucida Sans Unicode'">Şimdi ise <B>Ekle.aspx</B> Sayfamızı Aşağıdaki gibi Tasarlayalım.<BR><img src="http://ismailkocacan.com/dosyalar/Web_&#070;orm%20VeriTabani%20Binary_Resim/e1.jpg" border="0" /><BR><DIV><SPAN style="FONT-SIZE: 9pt; FONT-FAMILY: 'Lucida Sans Unicode'">Bu Sayfadan Veri girişi yapıcaz. <B>Adı Soyad</B> girip <B>FileUpload</B> Nesnesi ile seçtiğimiz resim dosyasını Tabloya&nbsp;Ekliycez.</SPAN></DIV><DIV><B><U><SPAN style="FONT-SIZE: 11pt; COLOR: green; FONT-FAMILY: 'Lucida Sans Unicode'">Ekle.aspx Sayfasına ait Tüm Kod bloğu ise aşağıdaki gibidir.</SPAN></U></B></DIV><DIV><SPAN style="FONT-SIZE: 9.5pt; COLOR: blue; FONT-FAMILY: 'Lucida C&#111;nsole'">using</SPAN><SPAN style="FONT-SIZE: 9.5pt; FONT-FAMILY: 'Lucida C&#111;nsole'"> System;</SPAN></DIV><DIV><SPAN style="FONT-SIZE: 9.5pt; COLOR: blue; FONT-FAMILY: 'Lucida C&#111;nsole'">using</SPAN><SPAN style="FONT-SIZE: 9.5pt; FONT-FAMILY: 'Lucida C&#111;nsole'"> System.Collections.Generic;</SPAN></DIV><DIV><SPAN style="FONT-SIZE: 9.5pt; COLOR: blue; FONT-FAMILY: 'Lucida C&#111;nsole'">using</SPAN><SPAN style="FONT-SIZE: 9.5pt; FONT-FAMILY: 'Lucida C&#111;nsole'"> System.Web;</SPAN></DIV><DIV><SPAN style="FONT-SIZE: 9.5pt; COLOR: blue; FONT-FAMILY: 'Lucida C&#111;nsole'">using</SPAN><SPAN style="FONT-SIZE: 9.5pt; FONT-FAMILY: 'Lucida C&#111;nsole'"> System.Web.UI;</SPAN></DIV><DIV><SPAN style="FONT-SIZE: 9.5pt; COLOR: blue; FONT-FAMILY: 'Lucida C&#111;nsole'">using</SPAN><SPAN style="FONT-SIZE: 9.5pt; FONT-FAMILY: 'Lucida C&#111;nsole'"> System.Web.UI.WebControls;</SPAN></DIV><DIV>&nbsp;</DIV><DIV><SPAN style="FONT-SIZE: 9.5pt; COLOR: blue; FONT-FAMILY: 'Lucida C&#111;nsole'">using</SPAN><SPAN style="FONT-SIZE: 9.5pt; FONT-FAMILY: 'Lucida C&#111;nsole'"> System.Data; <SPAN style="COLOR: green">// ekleyin</SPAN></SPAN></DIV><DIV><SPAN style="FONT-SIZE: 9.5pt; COLOR: blue; FONT-FAMILY: 'Lucida C&#111;nsole'">using</SPAN><SPAN style="FONT-SIZE: 9.5pt; FONT-FAMILY: 'Lucida C&#111;nsole'"> System.Data.SqlClient; <SPAN style="COLOR: green">// ekleyin</SPAN></SPAN></DIV><DIV><SPAN style="FONT-SIZE: 9.5pt; COLOR: blue; FONT-FAMILY: 'Lucida C&#111;nsole'">using</SPAN><SPAN style="FONT-SIZE: 9.5pt; FONT-FAMILY: 'Lucida C&#111;nsole'"> System.Data.SqlTypes;<SPAN style="COLOR: green">// ekleyin</SPAN></SPAN></DIV><DIV><SPAN style="FONT-SIZE: 9.5pt; COLOR: blue; FONT-FAMILY: 'Lucida C&#111;nsole'">using</SPAN><SPAN style="FONT-SIZE: 9.5pt; FONT-FAMILY: 'Lucida C&#111;nsole'"> System.Drawing;<SPAN style="COLOR: green">// ekleyin</SPAN></SPAN></DIV><DIV><SPAN style="FONT-SIZE: 9.5pt; COLOR: blue; FONT-FAMILY: 'Lucida C&#111;nsole'">using</SPAN><SPAN style="FONT-SIZE: 9.5pt; FONT-FAMILY: 'Lucida C&#111;nsole'"> System.IO;<SPAN style="COLOR: green">// ekleyin</SPAN></SPAN></DIV><DIV>&nbsp;</DIV><DIV><SPAN style="FONT-SIZE: 9.5pt; COLOR: blue; FONT-FAMILY: 'Lucida C&#111;nsole'">namespace</SPAN><SPAN style="FONT-SIZE: 9.5pt; FONT-FAMILY: 'Lucida C&#111;nsole'"> ismailkocacancomBinaryProject</SPAN></DIV><DIV><SPAN style="FONT-SIZE: 9.5pt; FONT-FAMILY: 'Lucida C&#111;nsole'">{</SPAN></DIV><DIV><SPAN style="FONT-SIZE: 9.5pt; FONT-FAMILY: 'Lucida C&#111;nsole'">&nbsp;&nbsp;&nbsp; <SPAN style="COLOR: blue">public</SPAN> <SPAN style="COLOR: blue">partial</SPAN> <SPAN style="COLOR: blue">class</SPAN> <SPAN style="COLOR: #2b91af">Ekle</SPAN> : System.Web.UI.<SPAN style="COLOR: #2b91af">Page</SPAN></SPAN></DIV><DIV><SPAN style="FONT-SIZE: 9.5pt; FONT-FAMILY: 'Lucida C&#111;nsole'">&nbsp;&nbsp;&nbsp; {</SPAN></DIV><DIV><SPAN style="FONT-SIZE: 9.5pt; FONT-FAMILY: 'Lucida C&#111;nsole'">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <SPAN style="COLOR: blue">protected</SPAN> <SPAN style="COLOR: blue">void</SPAN> Page_Load(<SPAN style="COLOR: blue">object</SPAN> sender, <SPAN style="COLOR: #2b91af">EventArgs</SPAN> e)</SPAN></DIV><DIV><SPAN style="FONT-SIZE: 9.5pt; FONT-FAMILY: 'Lucida C&#111;nsole'">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {</SPAN></DIV><DIV>&nbsp;</DIV><DIV><SPAN style="FONT-SIZE: 9.5pt; FONT-FAMILY: 'Lucida C&#111;nsole'">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }</SPAN></DIV><DIV>&nbsp;</DIV><DIV><SPAN style="FONT-SIZE: 9.5pt; FONT-FAMILY: 'Lucida C&#111;nsole'">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <SPAN style="COLOR: green">// Kaydet Butonu</SPAN></SPAN></DIV><DIV><SPAN style="FONT-SIZE: 9.5pt; FONT-FAMILY: 'Lucida C&#111;nsole'">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <SPAN style="COLOR: blue">protected</SPAN> <SPAN style="COLOR: blue">void</SPAN> Button1_Click(<SPAN style="COLOR: blue">object</SPAN> sender, <SPAN style="COLOR: #2b91af">EventArgs</SPAN> e)</SPAN></DIV><DIV><SPAN style="FONT-SIZE: 9.5pt; FONT-FAMILY: 'Lucida C&#111;nsole'">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {</SPAN></DIV><DIV><SPAN style="FONT-SIZE: 9.5pt; FONT-FAMILY: 'Lucida C&#111;nsole'">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <SPAN style="COLOR: blue">if</SPAN> (FileUpload1.HasFile)</SPAN></DIV><DIV><SPAN style="FONT-SIZE: 9.5pt; FONT-FAMILY: 'Lucida C&#111;nsole'">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {</SPAN></DIV><DIV><SPAN style="FONT-SIZE: 9.5pt; FONT-FAMILY: 'Lucida C&#111;nsole'">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <SPAN style="COLOR: #2b91af">Byte</SPAN>&#091;&#093; bytDizi = FileUpload1.FileBytes; <SPAN style="COLOR: green">// diziye aktar</SPAN></SPAN></DIV><DIV><SPAN style="FONT-SIZE: 9.5pt; FONT-FAMILY: 'Lucida C&#111;nsole'">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <SPAN style="COLOR: #2b91af">MemoryStream</SPAN> ms = <SPAN style="COLOR: blue">new</SPAN> <SPAN style="COLOR: #2b91af">MemoryStream</SPAN>(bytDizi);</SPAN></DIV><DIV><SPAN style="FONT-SIZE: 9.5pt; FONT-FAMILY: 'Lucida C&#111;nsole'">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ms.Read(bytDizi, 0, bytDizi.Length);</SPAN></DIV><DIV><SPAN style="FONT-SIZE: 9.5pt; FONT-FAMILY: 'Lucida C&#111;nsole'">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ms.Close();</SPAN></DIV><DIV>&nbsp;</DIV><DIV><SPAN style="FONT-SIZE: 9.5pt; FONT-FAMILY: 'Lucida C&#111;nsole'">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <SPAN style="COLOR: #2b91af">SqlParameter</SPAN> parametreDosya = <SPAN style="COLOR: blue">new</SPAN> <SPAN style="COLOR: #2b91af">SqlParameter</SPAN>(<SPAN style="COLOR: #a31515">"@resmi"</SPAN>, <SPAN style="COLOR: #2b91af">SqlDbType</SPAN>.VarBinary, bytDizi.Length, <SPAN style="COLOR: #2b91af">ParameterDirection</SPAN>.Input, <SPAN style="COLOR: blue">false</SPAN>,</SPAN></DIV><DIV><SPAN style="FONT-SIZE: 9.5pt; FONT-FAMILY: 'Lucida C&#111;nsole'">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0, 0, <SPAN style="COLOR: blue">null</SPAN>, <SPAN style="COLOR: #2b91af">DataRowVersion</SPAN>.Current, bytDizi);</SPAN></DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV><SPAN style="FONT-SIZE: 9.5pt; FONT-FAMILY: 'Lucida C&#111;nsole'">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <SPAN style="COLOR: #2b91af">SqlConnection</SPAN> baglantiNesnesi = <SPAN style="COLOR: blue">new</SPAN> <SPAN style="COLOR: #2b91af">SqlConnection</SPAN>(<SPAN style="COLOR: #a31515">"server=ISMAILCOMP\\SQLEXPRESS; database=Test; integrated security=true"</SPAN>);</SPAN></DIV><DIV><SPAN style="FONT-SIZE: 9.5pt; FONT-FAMILY: 'Lucida C&#111;nsole'">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; baglantiNesnesi.Open();</SPAN></DIV><DIV><SPAN style="FONT-SIZE: 9.5pt; FONT-FAMILY: 'Lucida C&#111;nsole'">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <SPAN style="COLOR: #2b91af">SqlCommand</SPAN> komutNesnesi = <SPAN style="COLOR: blue">new</SPAN> <SPAN style="COLOR: #2b91af">SqlCommand</SPAN>(<SPAN style="COLOR: #a31515">"insert into resimler (adsoyad,resmi) values (@adsoyad,@resmi)"</SPAN>, baglantiNesnesi);</SPAN></DIV><DIV><SPAN style="FONT-SIZE: 9.5pt; FONT-FAMILY: 'Lucida C&#111;nsole'">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; komutNesnesi.Parameters.Add(parametreDosya);</SPAN></DIV><DIV><SPAN style="FONT-SIZE: 9.5pt; FONT-FAMILY: 'Lucida C&#111;nsole'">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; komutNesnesi.Parameters.AddWithValue(<SPAN style="COLOR: #a31515">"@adsoyad"</SPAN>, TextBox1.Text); <SPAN style="COLOR: green">// parametre ve değeri ekleniyor</SPAN></SPAN></DIV><DIV><SPAN style="FONT-SIZE: 9.5pt; FONT-FAMILY: 'Lucida C&#111;nsole'">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; komutNesnesi.ExecuteNonQuery(); <SPAN style="COLOR: green">// sorguyu çalıştır</SPAN></SPAN></DIV><DIV><SPAN style="FONT-SIZE: 9.5pt; FONT-FAMILY: 'Lucida C&#111;nsole'">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; baglantiNesnesi.Close();</SPAN></DIV><DIV><SPAN style="FONT-SIZE: 9.5pt; FONT-FAMILY: 'Lucida C&#111;nsole'">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; komutNesnesi.Dispose();</SPAN></DIV><DIV>&nbsp;</DIV><DIV><SPAN style="FONT-SIZE: 9.5pt; FONT-FAMILY: 'Lucida C&#111;nsole'">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Label1.Text = <SPAN style="COLOR: #a31515">"İşlem Tamamlandı"</SPAN>;</SPAN></DIV><DIV><SPAN style="FONT-SIZE: 9.5pt; FONT-FAMILY: 'Lucida C&#111;nsole'">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }</SPAN></DIV><DIV><SPAN style="FONT-SIZE: 9.5pt; FONT-FAMILY: 'Lucida C&#111;nsole'">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }</SPAN></DIV><DIV><SPAN style="FONT-SIZE: 9.5pt; FONT-FAMILY: 'Lucida C&#111;nsole'">&nbsp;&nbsp;&nbsp; }</SPAN></DIV><DIV><SPAN style="FONT-SIZE: 9.5pt; FONT-FAMILY: 'Lucida C&#111;nsole'">}</SPAN></DIV><DIV><B><U><SPAN style="FONT-SIZE: 11pt; COLOR: green; FONT-FAMILY: 'Lucida Sans Unicode'">Oku.aspx Sayfasına ait kod bloğu ise aşağıdaki gibidir.</SPAN></U></B></DIV><DIV><SPAN style="FONT-SIZE: 9pt; FONT-FAMILY: 'Lucida Sans Unicode'">Bu Sayfanın Context&#8217;ine Tablodaki resim dosyası okunacak.</SPAN></DIV><DIV><SPAN style="FONT-SIZE: 9.5pt; COLOR: blue; FONT-FAMILY: 'Lucida C&#111;nsole'">using</SPAN><SPAN style="FONT-SIZE: 9.5pt; FONT-FAMILY: 'Lucida C&#111;nsole'"> System;</SPAN></DIV><DIV><SPAN style="FONT-SIZE: 9.5pt; COLOR: blue; FONT-FAMILY: 'Lucida C&#111;nsole'">using</SPAN><SPAN style="FONT-SIZE: 9.5pt; FONT-FAMILY: 'Lucida C&#111;nsole'"> System.Collections.Generic;</SPAN></DIV><DIV><SPAN style="FONT-SIZE: 9.5pt; COLOR: blue; FONT-FAMILY: 'Lucida C&#111;nsole'">using</SPAN><SPAN style="FONT-SIZE: 9.5pt; FONT-FAMILY: 'Lucida C&#111;nsole'"> System.Web;</SPAN></DIV><DIV><SPAN style="FONT-SIZE: 9.5pt; COLOR: blue; FONT-FAMILY: 'Lucida C&#111;nsole'">using</SPAN><SPAN style="FONT-SIZE: 9.5pt; FONT-FAMILY: 'Lucida C&#111;nsole'"> System.Web.UI;</SPAN></DIV><DIV><SPAN style="FONT-SIZE: 9.5pt; COLOR: blue; FONT-FAMILY: 'Lucida C&#111;nsole'">using</SPAN><SPAN style="FONT-SIZE: 9.5pt; FONT-FAMILY: 'Lucida C&#111;nsole'"> System.Web.UI.WebControls;</SPAN></DIV><DIV>&nbsp;</DIV><DIV><SPAN style="FONT-SIZE: 9.5pt; COLOR: blue; FONT-FAMILY: 'Lucida C&#111;nsole'">using</SPAN><SPAN style="FONT-SIZE: 9.5pt; FONT-FAMILY: 'Lucida C&#111;nsole'"> System.Data; <SPAN style="COLOR: green">//veri kütüphanesi</SPAN></SPAN></DIV><DIV><SPAN style="FONT-SIZE: 9.5pt; COLOR: blue; FONT-FAMILY: 'Lucida C&#111;nsole'">using</SPAN><SPAN style="FONT-SIZE: 9.5pt; FONT-FAMILY: 'Lucida C&#111;nsole'"> System.Data.SqlClient; <SPAN style="COLOR: green">//SQListemci kütüphanesi</SPAN></SPAN></DIV><DIV><SPAN style="FONT-SIZE: 9.5pt; COLOR: blue; FONT-FAMILY: 'Lucida C&#111;nsole'">using</SPAN><SPAN style="FONT-SIZE: 9.5pt; FONT-FAMILY: 'Lucida C&#111;nsole'"> System.Data.SqlTypes; <SPAN style="COLOR: green">//sql server tiplerini barındıran kütüphane</SPAN></SPAN></DIV><DIV><SPAN style="FONT-SIZE: 9.5pt; COLOR: blue; FONT-FAMILY: 'Lucida C&#111;nsole'">using</SPAN><SPAN style="FONT-SIZE: 9.5pt; FONT-FAMILY: 'Lucida C&#111;nsole'"> System.Drawing; <SPAN style="COLOR: green">//Çizim kütüphanesi</SPAN></SPAN></DIV><DIV><SPAN style="FONT-SIZE: 9.5pt; COLOR: blue; FONT-FAMILY: 'Lucida C&#111;nsole'">using</SPAN><SPAN style="FONT-SIZE: 9.5pt; FONT-FAMILY: 'Lucida C&#111;nsole'"> System.IO; <SPAN style="COLOR: green">// giriş-çıkış kütüphansi</SPAN></SPAN></DIV><DIV><SPAN style="FONT-SIZE: 9.5pt; COLOR: blue; FONT-FAMILY: 'Lucida C&#111;nsole'">namespace</SPAN><SPAN style="FONT-SIZE: 9.5pt; FONT-FAMILY: 'Lucida C&#111;nsole'"> ismailkocacancomBinaryProject</SPAN></DIV><DIV><SPAN style="FONT-SIZE: 9.5pt; FONT-FAMILY: 'Lucida C&#111;nsole'">{</SPAN></DIV><DIV><SPAN style="FONT-SIZE: 9.5pt; FONT-FAMILY: 'Lucida C&#111;nsole'">&nbsp;&nbsp;&nbsp; <SPAN style="COLOR: blue">public</SPAN> <SPAN style="COLOR: blue">partial</SPAN> <SPAN style="COLOR: blue">class</SPAN> <SPAN style="COLOR: #2b91af">Oku</SPAN> : System.Web.UI.<SPAN style="COLOR: #2b91af">Page</SPAN></SPAN></DIV><DIV><SPAN style="FONT-SIZE: 9.5pt; FONT-FAMILY: 'Lucida C&#111;nsole'">&nbsp;&nbsp;&nbsp; {</SPAN></DIV><DIV><SPAN style="FONT-SIZE: 9.5pt; FONT-FAMILY: 'Lucida C&#111;nsole'">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <SPAN style="COLOR: blue">protected</SPAN> <SPAN style="COLOR: blue">void</SPAN> Page_Load(<SPAN style="COLOR: blue">object</SPAN> sender, <SPAN style="COLOR: #2b91af">EventArgs</SPAN> e)</SPAN></DIV><DIV><SPAN style="FONT-SIZE: 9.5pt; FONT-FAMILY: 'Lucida C&#111;nsole'">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {</SPAN></DIV><DIV><SPAN style="FONT-SIZE: 9.5pt; FONT-FAMILY: 'Lucida C&#111;nsole'">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <SPAN style="COLOR: #2b91af">SqlConnection</SPAN> baglantiNesnesi = <SPAN style="COLOR: blue">new</SPAN> <SPAN style="COLOR: #2b91af">SqlConnection</SPAN>(<SPAN style="COLOR: #a31515">"server=ISMAILCOMP\\SQLEXPRESS; database=Test; integrated security=true"</SPAN>);</SPAN></DIV><DIV><SPAN style="FONT-SIZE: 9.5pt; FONT-FAMILY: 'Lucida C&#111;nsole'">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; baglantiNesnesi.Open();</SPAN></DIV><DIV>&nbsp;</DIV><DIV><SPAN style="FONT-SIZE: 9.5pt; FONT-FAMILY: 'Lucida C&#111;nsole'">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <SPAN style="COLOR: green">//kimlik numarası 1 olan kaydın bilgileri çekiliyor.</SPAN></SPAN></DIV><DIV><SPAN style="FONT-SIZE: 9.5pt; FONT-FAMILY: 'Lucida C&#111;nsole'">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <SPAN style="COLOR: #2b91af">SqlDataAdapter</SPAN> islem = <SPAN style="COLOR: blue">new</SPAN> <SPAN style="COLOR: #2b91af">SqlDataAdapter</SPAN>(<SPAN style="COLOR: #a31515">"SELECT * FROM resimler where kimlik=1"</SPAN>, baglantiNesnesi);</SPAN></DIV><DIV><SPAN style="FONT-SIZE: 9.5pt; FONT-FAMILY: 'Lucida C&#111;nsole'">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <SPAN style="COLOR: #2b91af">DataSet</SPAN> veriKumesi = <SPAN style="COLOR: blue">new</SPAN> <SPAN style="COLOR: #2b91af">DataSet</SPAN>();</SPAN></DIV><DIV><SPAN style="FONT-SIZE: 9.5pt; FONT-FAMILY: 'Lucida C&#111;nsole'">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; islem.Fill(veriKumesi, <SPAN style="COLOR: #a31515">"resimler"</SPAN>); </SPAN></DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV><SPAN style="FONT-SIZE: 9.5pt; FONT-FAMILY: 'Lucida C&#111;nsole'">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <SPAN style="COLOR: #2b91af">Byte</SPAN>&#091;&#093; bytdizi = <SPAN style="COLOR: blue">new</SPAN> <SPAN style="COLOR: #2b91af">Byte</SPAN>&#091;0&#093;; <SPAN style="COLOR: green">// dizi tanımlanıp boyutlandırılıyor.</SPAN></SPAN></DIV><DIV><SPAN style="FONT-SIZE: 9.5pt; FONT-FAMILY: 'Lucida C&#111;nsole'">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; bytdizi = (<SPAN style="COLOR: #2b91af">Byte</SPAN>&#091;&#093;)(veriKumesi.Tables&#091;<SPAN style="COLOR: #a31515">"resimler"</SPAN>&#093;.Rows&#091;0&#093;&#091;<SPAN style="COLOR: #a31515">"resmi"</SPAN>&#093;); <SPAN style="COLOR: green">// Byte olarak aktar</SPAN></SPAN></DIV><DIV><SPAN style="FONT-SIZE: 9.5pt; FONT-FAMILY: 'Lucida C&#111;nsole'">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <SPAN style="COLOR: #2b91af">MemoryStream</SPAN> bellekAkisNesnesi = <SPAN style="COLOR: blue">new</SPAN> <SPAN style="COLOR: #2b91af">MemoryStream</SPAN>(bytdizi);</SPAN></DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV><SPAN style="FONT-SIZE: 9.5pt; FONT-FAMILY: 'Lucida C&#111;nsole'">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Response.OutputStream.Write(bytdizi, 0, bytdizi.Length); <SPAN style="COLOR: green">// ekran yazdırılıyor</SPAN></SPAN></DIV><DIV>&nbsp;</DIV><DIV><SPAN style="FONT-SIZE: 9.5pt; FONT-FAMILY: 'Lucida C&#111;nsole'">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; baglantiNesnesi.Dispose(); <SPAN style="COLOR: green">// nesneyi yok et</SPAN></SPAN></DIV><DIV><SPAN style="FONT-SIZE: 9.5pt; FONT-FAMILY: 'Lucida C&#111;nsole'">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; islem.Dispose();</SPAN></DIV><DIV><SPAN style="FONT-SIZE: 9.5pt; FONT-FAMILY: 'Lucida C&#111;nsole'">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; veriKumesi.Dispose();</SPAN></DIV><DIV><SPAN style="FONT-SIZE: 9.5pt; FONT-FAMILY: 'Lucida C&#111;nsole'">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }</SPAN></DIV><DIV><SPAN style="FONT-SIZE: 9.5pt; FONT-FAMILY: 'Lucida C&#111;nsole'">&nbsp;&nbsp;&nbsp; }</SPAN></DIV><DIV><SPAN style="FONT-SIZE: 9.5pt; FONT-FAMILY: 'Lucida C&#111;nsole'">}</SPAN></DIV><DIV>&nbsp;</DIV><SPAN style="FONT-SIZE: 9pt; FONT-FAMILY: 'Lucida Sans Unicode'">Artık uygulamamızı çalıştırıp sonucu görebiliriz.Ben <B>Ekle.aspx&nbsp;</B>Sayfası üzerindeyken sağ tıklayıp <B>View</B> <B>in Browser </B>komutu ile Sayfayı çalıştırıp iki tane kayıt ekledim. <BR><img src="http://ismailkocacan.com/dosyalar/Web_&#070;orm%20VeriTabani%20Binary_Resim/e2.jpg" border="0" /><BR><DIV><SPAN style="FONT-SIZE: 9pt; FONT-FAMILY: 'Lucida Sans Unicode'">Şimdi <B>Default.aspx</B> Sayfamızda resimler nasıl görünüyor ona bakalım.<B>Oku.aspx</B> Sayfasındaki Sql sorgusunda&nbsp;kimlik şartına 1 değerini aktararak 1 numaralı kaydın resimini okudum.Aşağıda görüldüğü gibi.</SPAN></DIV><img src="http://ismailkocacan.com/dosyalar/Web_&#070;orm%20VeriTabani%20Binary_Resim/kimlik1.jpg" border="0" /><BR><DIV><SPAN style="FONT-SIZE: 9pt; FONT-FAMILY: 'Lucida Sans Unicode'">Yine <B>Oku.aspx</B> Sayfasındaki sql &nbsp;sorgusundaki kimlik şartına 2 değerini aktararak. Kimlik değeri 2 olan kaydın resim bilgisini çekmiş oldum</SPAN></DIV><img src="http://ismailkocacan.com/dosyalar/Web_&#070;orm%20VeriTabani%20Binary_Resim/kimlik2.jpg" border="0" /><BR><DIV><SPAN style="FONT-SIZE: 9pt; FONT-FAMILY: 'Lucida Sans Unicode'">Şimdilik benim bu konuda anlatmak istediklerim bu kadar.</SPAN></DIV><DIV><SPAN style="FONT-SIZE: 9pt; FONT-FAMILY: 'Lucida Sans Unicode'">Bu olay da bu kadar.</SPAN></DIV><DIV><SPAN style="FONT-SIZE: 9pt; FONT-FAMILY: 'Lucida Sans Unicode'">Kaynak Kodları <a href="http://ismailkocacan.com/dosyalar/Web_&#070;orm%20VeriTabani%20Binary_Resim/kaynak.rar" target="_blank"><U><FONT face="Lucida Sans Unicode">burdan</FONT></U></A> indirebilirsiniz.</SPAN></DIV><DIV><SPAN style="FONT-SIZE: 9pt; FONT-FAMILY: 'Lucida Sans Unicode'"><a href="mailto:ismil.bilisim.molla@hotmail.com" target="_blank"><U><FONT face="Lucida Sans Unicode">İsmailkocacan</FONT></U></A></SPAN></DIV></SPAN></SPAN></DIV></SPAN></DIV></SPAN></DIV>]]>
   </description>
   <pubDate>Mon, 05 Oct 2009 18:13:39 +0000</pubDate>
   <guid isPermaLink="true">http://forum.datakent.com/forum_posts.asp?TID=1797&amp;PID=3915#3915</guid>
  </item> 
 </channel>
</rss>