<?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 : Veritabanı</title>
  <link>https://forum.clomosy.com.tr/</link>
  <description><![CDATA[XML içerik linki; Clomosy | Forum : Genel &#304;&#351;lemler : Veritabanı]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Mon, 04 May 2026 11:06:05 +0000</pubDate>
  <lastBuildDate>Mon, 22 Jul 2024 16:28:52 +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=697</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[Veritabanı : Var  MyForm:TclForm; dataListView...]]></title>
   <link>https://forum.clomosy.com.tr/forum_posts.asp?TID=697&amp;PID=1098#1098</link>
   <description>
    <![CDATA[<strong>Yazar:</strong> <a href="https://forum.clomosy.com.tr/member_profile.asp?PF=193">bekirr</a><br /><strong>Konu:</strong> 697<br /><strong>Gönderim Zamanı:</strong> 22&nbsp;Temmuz&nbsp;2024 Saat 16:28<br /><br /><div>Var&nbsp; &nbsp;</div><div>&nbsp; MyForm:TclForm;</div><div>&nbsp; dataListView : TclListView;</div><div>&nbsp; Qry : TclSqlQuery;</div><div>&nbsp;void SetListView;</div><div>&nbsp;{</div><div>&nbsp; &nbsp;dataListView = MyForm.AddNewListView(MyForm, 'dataListView');</div><div>&nbsp; &nbsp;dataListView.Align = alClient;</div><div>&nbsp; &nbsp;dataListView.Margins.Left = 5;</div><div>&nbsp; &nbsp;dataListView.Margins.Bottom = 5;</div><div>&nbsp; &nbsp;dataListView.Margins.Right = 10;</div><div>&nbsp; &nbsp;dataListView.Margins.Top = 5;</div><div>&nbsp;}</div><div>&nbsp;</div><div>&nbsp;void listViewVeriEkle;&nbsp;</div><div>&nbsp;{</div><div>&nbsp;&nbsp;</div><div>&nbsp; Qry.Connection = Clomosy.DBSQLServerConnection;&nbsp;</div><div>&nbsp; Qry.SQL.Text = 'SELECT UrunID as RECORD_GUID, UrunAD as&nbsp;</div><div>&nbsp; MAIN_TEXT, UrunFIYAT as SIDE_TEXT_BOTTOM from Urun';</div><div>&nbsp; Qry.Open;&nbsp;</div><div>&nbsp; dataListView.clLoadListViewDataFromDataset(Qry);&nbsp;</div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp;}</div><div>&nbsp;</div><div>&nbsp;void GetData;</div><div>&nbsp;{</div><div>&nbsp;&nbsp;</div><div>&nbsp; try&nbsp;</div><div>&nbsp; &nbsp; Qry.Connection = Clomosy.DBSQLServerConnection;</div><div>&nbsp; &nbsp; Qry.SQL.Text = 'SELECT UrunID as RECORD_GUID,UrunAD as MAIN_TEXT,UrunFIYAT as FOOTER_TEXT FROM Urun';</div><div>&nbsp; &nbsp; Qry.Open;</div><div>&nbsp; except</div><div>&nbsp; &nbsp; ShowMessage('Exception Class: '+LastExceptionClassName+' Exception GetData Message: '+LastExceptionMessage);</div><div>&nbsp; }</div><div>&nbsp;}</div><div><br></div><div>&nbsp; void SqLInsertData;</div><div>&nbsp; {</div><div>&nbsp; &nbsp; try</div><div>&nbsp; &nbsp; &nbsp; Clomosy.DBSQLServerQuery.Sql.Text = '</div><div>&nbsp; &nbsp; INSERT INTO Urun (UrunID, UrunAD, UrunFIYAT) VALUES (1, ''a'',10);</div><div>&nbsp; &nbsp; INSERT INTO Urun (UrunID, UrunAD, UrunFIYAT) VALUES (2, ''b'',20);</div><div>&nbsp; &nbsp; INSERT INTO Urun (UrunID, UrunAD, UrunFIYAT) VALUES (3, ''c'',35);</div><div>&nbsp; &nbsp; INSERT INTO Urun (UrunID, UrunAD, UrunFIYAT) VALUES (4, ''d'',35);</div><div>&nbsp; &nbsp; INSERT INTO Urun (UrunID, UrunAD, UrunFIYAT) VALUES (5, ''e'',40);';</div><div>&nbsp; &nbsp; &nbsp; Clomosy.DBSQLServerQuery.ExecSql;</div><div>&nbsp; &nbsp; &nbsp; ShowMessage('Veri Ekleme Başarılı');</div><div>&nbsp; &nbsp; except</div><div>&nbsp; &nbsp; &nbsp;ShowMessage('Exception Class: '+LastExceptionClassName+' Exception SqLiteInsertData Message: '+LastExceptionMessage);</div><div>&nbsp; &nbsp; }</div><div>&nbsp; }</div><div>&nbsp;</div><div>&nbsp;</div><div>&nbsp;{</div><div>&nbsp; &nbsp;</div><div>&nbsp; &nbsp; &nbsp; &nbsp;</div><div>&nbsp; &nbsp;Qry = TclSqlQuery.Create(nil);</div><div>&nbsp; &nbsp;Clomosy.DBSQLServerConnect('SQL Server','...','...','...','...',...);&nbsp;</div><div>&nbsp; &nbsp;Qry.Connection = Clomosy.DBSQLServerConnection;</div><div>&nbsp; &nbsp;</div><div>&nbsp; &nbsp;MyForm = TclForm.Create(Self);&nbsp;&nbsp;</div><div>&nbsp; &nbsp;SetListView;</div><div>&nbsp; &nbsp;GetData;</div><div>&nbsp; &nbsp;SqLInsertData;</div><div>&nbsp; &nbsp;listViewVeriEkle;&nbsp;</div><div>&nbsp; &nbsp;MyForm.Run;</div><div>&nbsp;}&nbsp;<br>bu şekilde listview yapısına görsel eklemek istiyorum yukarıda verdiğiniz base64 çevirme kodlarını kullandım ancak sürekli hata aldım karmaşık bir kod yapısı oldu yardımcı olur musunuz</div>]]>
   </description>
   <pubDate>Mon, 22 Jul 2024 16:28:52 +0000</pubDate>
   <guid isPermaLink="true">https://forum.clomosy.com.tr/forum_posts.asp?TID=697&amp;PID=1098#1098</guid>
  </item> 
  <item>
   <title><![CDATA[Veritabanı : Merhaba Bekir,A&#351;a&#287;&#305;daki kodu kontrol...]]></title>
   <link>https://forum.clomosy.com.tr/forum_posts.asp?TID=697&amp;PID=1084#1084</link>
   <description>
    <![CDATA[<strong>Yazar:</strong> <a href="https://forum.clomosy.com.tr/member_profile.asp?PF=106">Developer</a><br /><strong>Konu:</strong> 697<br /><strong>Gönderim Zamanı:</strong> 19&nbsp;Temmuz&nbsp;2024 Saat 16:39<br /><br />Merhaba Bekir,<div>Aşağıdaki kodu kontrol eder misin?</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; }&nbsp;</div>]]>
   </description>
   <pubDate>Fri, 19 Jul 2024 16:39:52 +0000</pubDate>
   <guid isPermaLink="true">https://forum.clomosy.com.tr/forum_posts.asp?TID=697&amp;PID=1084#1084</guid>
  </item> 
  <item>
   <title><![CDATA[Veritabanı : &#304;nternetten &#231;ekti&#287;imiz g&#246;rselleri...]]></title>
   <link>https://forum.clomosy.com.tr/forum_posts.asp?TID=697&amp;PID=1075#1075</link>
   <description>
    <![CDATA[<strong>Yazar:</strong> <a href="https://forum.clomosy.com.tr/member_profile.asp?PF=193">bekirr</a><br /><strong>Konu:</strong> 697<br /><strong>Gönderim Zamanı:</strong> 18&nbsp;Temmuz&nbsp;2024 Saat 16:27<br /><br />İnternetten çektiğimiz görselleri veritabanına kaydedip sonra tekrardan veritabanından bu görselleri çekip görselleri listview formatında listeleyebileceğimiz genel bir örnek var mı?]]>
   </description>
   <pubDate>Thu, 18 Jul 2024 16:27:01 +0000</pubDate>
   <guid isPermaLink="true">https://forum.clomosy.com.tr/forum_posts.asp?TID=697&amp;PID=1075#1075</guid>
  </item> 
 </channel>
</rss>