<?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 : Stream to byte, byte to Stream</title>
  <link>http://forum.datakent.com/</link>
  <description>XML içerik linki; Datakent Forum : Borland Delphi : Stream to byte, byte to Stream</description>
  <pubDate>Thu, 30 Apr 2026 12:58:14 +0000</pubDate>
  <lastBuildDate>Sun, 06 Sep 2009 14:40:59 +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=1787</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>Stream to byte, byte to Stream : type TByteArray = Array of Byte;     procedure...</title>
   <link>http://forum.datakent.com/forum_posts.asp?TID=1787&amp;PID=3893#3893</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> 1787<br /><strong>Gönderim Zamanı:</strong> 06.Eylül.2009 Saat 14:40<br /><br />type<BR>&nbsp; TByteArray&nbsp; =&nbsp; Array of Byte;<BR><DIV></DIV><DIV></DIV><DIV></DIV><DIV>&nbsp;</DIV><DIV>procedure TForm1.Button1Click(Sender: TObject);<BR>var<BR>&nbsp; Stream : tmemorystream;<BR>&nbsp; Stream2: tmemorystream;</DIV><DIV>&nbsp; buf2&nbsp;&nbsp;&nbsp;&nbsp; :TByteArray;</DIV><DIV>begin<BR>&nbsp; Stream :=TMemoryStream.Create;<BR>&nbsp; Stream.LoadFromFile('C:\test.txt');<BR>&nbsp; Stream.Position := 0;</DIV><DIV>&nbsp;</DIV><DIV>&nbsp; //Stream to byte<BR>&nbsp; SetLength(buf2, Stream.Size);<BR>&nbsp; Stream.Read(buf2&#091;0&#093;, Stream.Size);<BR>&nbsp; FreeAndNil(Stream);</DIV><DIV>&nbsp;</DIV><DIV>&nbsp; //byte to Stream<BR>&nbsp; Stream2 := TMemoryStream.Create;<BR>&nbsp; Stream2.Write(buf2&#091;0&#093;,Length(buf2));<BR>&nbsp; Stream2.SaveToFile('C:\test2.txt');<BR>&nbsp; FreeAndNil(Stream2);</DIV><DIV>end;</DIV><DIV>&nbsp;</DIV><DIV>*** eğer indy10 da TCP nesnesi ile byte veri gönderecekiseniz uses 'a&nbsp; IdGlobal&nbsp; ekleyin ve buf2&nbsp;&nbsp;&nbsp;&nbsp; :TByteArray;&nbsp; değişkenini buf2&nbsp;&nbsp;&nbsp;&nbsp; :TBytes;&nbsp; olarak değiştirin.</DIV><DIV><BR>IdTCPClient1.IOHandler.WriteDirect(buf2);</DIV><span style="font-size:10px"><br /><br />Düzenleyen murat turan - 06.Eylül.2009 Saat 14:42</span>]]>
   </description>
   <pubDate>Sun, 06 Sep 2009 14:40:59 +0000</pubDate>
   <guid isPermaLink="true">http://forum.datakent.com/forum_posts.asp?TID=1787&amp;PID=3893#3893</guid>
  </item> 
 </channel>
</rss>