<?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="https://syndication.webwiz.net/rss_namespace/">
 <channel>
  <title>Clomosy | Forum : base64 formantından veri çekmek</title>
  <link>https://forum.clomosy.com.tr/</link>
  <description><![CDATA[XML içerik linki; Clomosy | Forum : Genel &#304;&#351;lemler : base64 formantından veri çekmek]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Mon, 04 May 2026 10:54:49 +0000</pubDate>
  <lastBuildDate>Wed, 17 Jul 2024 17:46:55 +0000</lastBuildDate>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Web Wiz Forums 12.07</generator>
  <ttl>360</ttl>
  <WebWizForums:feedURL>https://forum.clomosy.com.tr/RSS_post_feed.asp?TID=692</WebWizForums:feedURL>
  <image>
   <title><![CDATA[Clomosy | Forum]]></title>
   <url>https://forum.clomosy.com.tr/forum_images/logo.png</url>
   <link>https://forum.clomosy.com.tr/</link>
  </image>
  <item>
   <title><![CDATA[base64 formantından veri çekmek : Merhaba Ahmet,A&#351;a&#287;&#305;daki kodu inceler...]]></title>
   <link>https://forum.clomosy.com.tr/forum_posts.asp?TID=692&amp;PID=1058#1058</link>
   <description>
    <![CDATA[<strong>Yazar:</strong> <a href="https://forum.clomosy.com.tr/member_profile.asp?PF=106">Developer</a><br /><strong>Konu:</strong> 692<br /><strong>Gönderim Zamanı:</strong> 17&nbsp;Temmuz&nbsp;2024 Saat 17:46<br /><br />Merhaba Ahmet,<div>Aşağıdaki kodu inceler misin?</div><div><div>var</div><div>&nbsp; &nbsp;Port: Integer;</div><div>&nbsp; &nbsp;Form1:TCLForm;</div><div>&nbsp; &nbsp;qry : TClSQLiteQuery;</div><div>&nbsp; &nbsp;MemStream: TclMemoryStream;</div><div>&nbsp; &nbsp;BlobField: TBlobField;</div><div>&nbsp; &nbsp;Img1 : TclImage;</div><div>&nbsp; &nbsp;Base64String: string;</div><div>&nbsp; &nbsp;BinaryData: TBytes;</div><div><br></div><div><br></div><div>&nbsp;void OnGuideQryClick;&nbsp;</div><div>&nbsp;{</div><div>&nbsp; &nbsp; &nbsp;try&nbsp;</div><div>&nbsp; &nbsp; &nbsp; &nbsp;Qry = Clomosy.DBSQLiteQueryWith('SELECT imgUrl FROM TBLDocs WHERE id = 23');</div><div>&nbsp; &nbsp; &nbsp; &nbsp;qry.OpenOrExecute;</div><div>&nbsp; &nbsp; &nbsp; &nbsp;if (qry.Found)</div><div>&nbsp; &nbsp; &nbsp; &nbsp;{</div><div>&nbsp; &nbsp; &nbsp; &nbsp;ShowMessage(qry.FieldByName('imgUrl').AsString);</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;BlobField = qry.FieldByName('imgUrl') as TBlobField;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;//MemStream = TclMemoryStream.Create;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;BlobField.SaveToStream(MemStream); // Load BLOB data into the stream</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;MemStream.Position = 0;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;//Base64String = Clomosy.StreamToBase64(MemStream);</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;//Clomosy.setClipBoard(Base64String);//FOR TEST PURPOSE COPIES BASE6</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;//Img1.Bitmap.LoadFromStream(MemStream); // Load the image from the stream</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Img1.Bitmap.LoadFromStream(MemStream);</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;MemStream.Free;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;</div><div>&nbsp; &nbsp; &nbsp; &nbsp;}</div><div>&nbsp; &nbsp; &nbsp;except</div><div>&nbsp; &nbsp; &nbsp; &nbsp;ShowMessage('&#091;019&#093; Exception Class: '+LastExceptionClassName+' Exception Message: '+LastExceptionMessage);</div><div>&nbsp; &nbsp; &nbsp;}</div><div>}</div><div><br></div><div>&nbsp; &nbsp;void SqLiteInsertData;</div><div>&nbsp; {</div><div>&nbsp; &nbsp; try</div><div><br></div><div>&nbsp; &nbsp; &nbsp; Base64String = Clomosy.FileToBase64(clPathCombine('1Top.png',Clomosy.AppFilesPath));</div><div>&nbsp; &nbsp; &nbsp; MemStream = TclMemoryStream.Create();</div><div>&nbsp; &nbsp; &nbsp; MemStream = Clomosy.Base64ToStream(Base64String);</div><div>&nbsp; &nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; &nbsp; //BinaryData := TNetEncoding.Base64.DecodeStringToBytes(Base64String);</div><div>&nbsp; &nbsp; //&nbsp; Clomosy.DBSQLiteQuery.Sql.Text = '</div><div>&nbsp; &nbsp; //INSERT INTO TBLDocs (id, imgName,imgUrl) VALUES (1,''Image 1'','''+Clomosy.FileToBase64(clPathCombine('1Top.png',Clomosy.AppFilesPath))+''');'; //addassetfromurl ile dosyaları indir</div><div>&nbsp; &nbsp; &nbsp; //Clomosy.DBSQLiteQuery.</div><div>&nbsp; &nbsp; &nbsp; &nbsp; ShowMessage(Clomosy.AppFilesPath);</div><div>&nbsp; &nbsp; &nbsp; &nbsp; base64String = Clomosy.FileToBase64(clPathCombine('1Top.png',Clomosy.AppFilesPath));</div><div>&nbsp; &nbsp; &nbsp; &nbsp; Clomosy.DBSQLiteQuery.SQL.Text = 'INSERT INTO TBLDocs (id, imgName, imgUrl) VALUES (23, ''test'', :imgUrl)';</div><div>&nbsp; &nbsp; &nbsp; &nbsp; //Clomosy.DBSQLiteQuery.ParamByName('imgName').AsString = 'Image from Base64';</div><div>&nbsp; &nbsp; &nbsp; &nbsp; Clomosy.DBSQLiteQuery.ParamByName('imgUrl').value = MemStream;</div><div>&nbsp; &nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; &nbsp; Clomosy.DBSQLiteQuery.OpenOrExecute;</div><div>&nbsp; &nbsp; &nbsp; //<a href="https://clomosy.com/learn/1Top.png" target="_blank" rel="nofollow">https://clomosy.com/learn/1Top.png</a></div><div>&nbsp; &nbsp; &nbsp; ShowMessage('Adding data to the table was successful!');</div><div>&nbsp; &nbsp; except</div><div>&nbsp; &nbsp; &nbsp;ShowMessage('Exception Class: '+LastExceptionClassName+' Exception Message: '+LastExceptionMessage);</div><div>&nbsp; &nbsp; }</div><div>&nbsp; }</div><div>&nbsp;&nbsp;</div><div>&nbsp; void SqLiteConnectionCreateTable;</div><div>&nbsp; var</div><div>&nbsp; &nbsp; TableExists: Boolean;</div><div>&nbsp; {</div><div>&nbsp; &nbsp; try</div><div>&nbsp; &nbsp; &nbsp; Clomosy.DBSQLiteConnect(Clomosy.AppFilesPath + 'DBDocsFile.db3', '');</div><div>&nbsp;</div><div>&nbsp; &nbsp; &nbsp; // Check if the table exists</div><div>&nbsp; &nbsp; &nbsp; Clomosy.DBSQLiteQuery.Sql.Text = 'SELECT name FROM sqlite_master WHERE type="table" AND name="TBLDocs";';</div><div>&nbsp; &nbsp; &nbsp; Clomosy.DBSQLiteQuery.OpenOrExecute;</div><div>&nbsp; &nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; &nbsp; // Check the results</div><div>&nbsp; &nbsp; &nbsp; TableExists = not Clomosy.DBSQLiteQuery.Eof;</div><div>&nbsp; &nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; &nbsp; // Create the table if it does not exist</div><div>&nbsp; &nbsp; &nbsp; if not (TableExists)</div><div>&nbsp; &nbsp; &nbsp; {</div><div>&nbsp; &nbsp; &nbsp; &nbsp; Clomosy.DBSQLiteQuery.Sql.Text = 'CREATE TABLE TBLDocs (</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; id INTEGER PRIMARY KEY,</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; imgName TEXT NOT NULL,</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; imgUrl BLOB NOT NULL</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; );';</div><div>&nbsp; &nbsp; &nbsp; &nbsp; Clomosy.DBSQLiteQuery.OpenOrExecute;</div><div>&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; ShowMessage('Table successfully added to the database!');</div><div>&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; &nbsp; } else</div><div>&nbsp; &nbsp; &nbsp; {</div><div>&nbsp; &nbsp; &nbsp; &nbsp; ShowMessage('The Products table already exists.');</div><div>&nbsp; &nbsp; &nbsp; }</div><div><br></div><div>&nbsp; &nbsp; except</div><div>&nbsp; &nbsp; &nbsp;ShowMessage('Exception Class: '+LastExceptionClassName+' Exception Message: '+LastExceptionMessage);</div><div>&nbsp; &nbsp; }</div><div>&nbsp; }</div><div><br></div><div>&nbsp; {</div><div>&nbsp; &nbsp; Form1 = TclForm.Create(Self);</div><div>&nbsp; &nbsp; &nbsp; &nbsp; ShowMessage(Clomosy.AppFilesPath);</div><div>&nbsp; &nbsp; Img1 = Form1.AddNewImage(Form1,'Img1');</div><div>&nbsp; &nbsp; Img1.Align = alClient;</div><div>&nbsp; &nbsp; SqLiteConnectionCreateTable;</div><div>&nbsp; &nbsp; SqLiteInsertData;</div><div>&nbsp; &nbsp; OnGuideQryClick;</div><div>&nbsp; &nbsp; Form1.Run;</div><div>&nbsp; }</div></div>]]>
   </description>
   <pubDate>Wed, 17 Jul 2024 17:46:55 +0000</pubDate>
   <guid isPermaLink="true">https://forum.clomosy.com.tr/forum_posts.asp?TID=692&amp;PID=1058#1058</guid>
  </item> 
  <item>
   <title><![CDATA[base64 formantından veri çekmek : veritaban&#305;nda base64 format&#305;nda...]]></title>
   <link>https://forum.clomosy.com.tr/forum_posts.asp?TID=692&amp;PID=1050#1050</link>
   <description>
    <![CDATA[<strong>Yazar:</strong> <a href="https://forum.clomosy.com.tr/member_profile.asp?PF=195">ahmet</a><br /><strong>Konu:</strong> 692<br /><strong>Gönderim Zamanı:</strong> 17&nbsp;Temmuz&nbsp;2024 Saat 17:22<br /><br />veritabanında base64 formatında tuttuğum veriyi tekrar kullanmak istiyorum nasıl kullanabilirim&nbsp;]]>
   </description>
   <pubDate>Wed, 17 Jul 2024 17:22:31 +0000</pubDate>
   <guid isPermaLink="true">https://forum.clomosy.com.tr/forum_posts.asp?TID=692&amp;PID=1050#1050</guid>
  </item> 
 </channel>
</rss>