<?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 : Category Resmi ekleme</title>
  <link>https://forum.clomosy.com.tr/</link>
  <description><![CDATA[XML içerik linki; Clomosy | Forum : Clomosy ile de&#287;i&#351;ken kullan&#305;m&#305; : Category Resmi ekleme]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Wed, 15 Apr 2026 02:57:47 +0000</pubDate>
  <lastBuildDate>Tue, 07 Oct 2025 14:48:09 +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=1203</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[Category Resmi ekleme : . Ayr&#305;ca kullan&#305;c&#305;ya ERP de kullanmak...]]></title>
   <link>https://forum.clomosy.com.tr/forum_posts.asp?TID=1203&amp;PID=2580#2580</link>
   <description>
    <![CDATA[<strong>Yazar:</strong> <a href="https://forum.clomosy.com.tr/member_profile.asp?PF=257">Emr.Erkmn</a><br /><strong>Konu:</strong> 1203<br /><strong>Gönderim Zamanı:</strong> 07&nbsp;Ekim&nbsp;2025 Saat 14:48<br /><br /><span style=": rgb251, 251, 253;">. Ayrıca kullanıcıya ERP de kullanmak üzere resim yükletirken kaç mb sınır koyulamlı max değer kaç olmalı şuanlık middleware ile kategori max 15mb ürünler max 20mb olarak kontrol ediyorum.&nbsp;<br><br>Sorunun cevabı ise;<br>Bu biraz tercih meselesi, sunucu gücü, yükü, kullanıcı sayısı vs gibi etkenler etkiler.&nbsp;<br>Genel olarak bir sınır koymak mantıklı</span>]]>
   </description>
   <pubDate>Tue, 07 Oct 2025 14:48:09 +0000</pubDate>
   <guid isPermaLink="true">https://forum.clomosy.com.tr/forum_posts.asp?TID=1203&amp;PID=2580#2580</guid>
  </item> 
  <item>
   <title><![CDATA[Category Resmi ekleme : var Form1: TCLForm; SourceImg:...]]></title>
   <link>https://forum.clomosy.com.tr/forum_posts.asp?TID=1203&amp;PID=2579#2579</link>
   <description>
    <![CDATA[<strong>Yazar:</strong> <a href="https://forum.clomosy.com.tr/member_profile.asp?PF=257">Emr.Erkmn</a><br /><strong>Konu:</strong> 1203<br /><strong>Gönderim Zamanı:</strong> 07&nbsp;Ekim&nbsp;2025 Saat 14:32<br /><br /><div>var</div><div>&nbsp; Form1: TCLForm;</div><div>&nbsp; SourceImg: TCLImage;</div><div>&nbsp; EdtCName: TclProEdit;</div><div>&nbsp; CameraBtn, SaveBtn: TclButton;</div><div>&nbsp; CameraImg: TCLImage;</div><div>&nbsp; ImageStr: String;</div><div>&nbsp; clRest: TclRest;</div><div>&nbsp; statusLabel: TclProLabel;</div><div><br></div><div>void CheckImageSize&nbsp;</div><div>&nbsp; var</div><div>&nbsp; &nbsp; MemStream: TCLMemoryStream;</div><div>&nbsp; &nbsp; fileSize: Integer;</div><div>&nbsp; &nbsp; fileSizeMB: Double;</div><div>{</div><div>&nbsp;&nbsp;</div><div>&nbsp; &nbsp; MemStream = TCLMemoryStream.Create;</div><div>&nbsp; &nbsp; CameraImg.Bitmap.SaveToStream(MemStream);</div><div>&nbsp; &nbsp; fileSize = MemStream.Size;</div><div>&nbsp; &nbsp; fileSizeMB = fileSize / 1024 / 1024;</div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; // 3MB = 3145728 bytes</div><div>&nbsp; &nbsp; if (fileSize &gt; 3145728) {</div><div>&nbsp; &nbsp; &nbsp; ShowMessage('Resim çok büyük! Maksimum 3MB olmalı.');</div><div>&nbsp; &nbsp; &nbsp; ShowMessage('Mevcut boyut: ' + FloatToStr(fileSizeMB) + 'MB');</div><div>&nbsp; &nbsp; &nbsp; MemStream.Free;</div><div>&nbsp; &nbsp; &nbsp; Exit;</div><div>&nbsp; &nbsp; }</div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; statusLabel.Text = 'Resim boyutu: ' + FloatToStr(fileSizeMB) + 'MB';</div><div>&nbsp; &nbsp; MemStream.Free;</div><div>&nbsp;&nbsp;</div><div>}</div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div>void OnRestCompleted&nbsp;</div><div>&nbsp; {</div><div>&nbsp; &nbsp; ShowMessage('İşlem tamamlandı: ' + clRest.Response);</div><div>&nbsp; }</div><div><br></div><div><br></div><div>void AddCategory&nbsp;</div><div>&nbsp; var&nbsp;</div><div>&nbsp; &nbsp; output: String;</div><div>&nbsp; &nbsp; MemStream: TCLMemoryStream;</div><div>{</div><div>&nbsp;&nbsp;</div><div>&nbsp; &nbsp; try&nbsp;</div><div>&nbsp; &nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; &nbsp; // Resim boyutunu kontrol et</div><div>&nbsp; &nbsp; &nbsp; CheckImageSize;</div><div>&nbsp; &nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; &nbsp; // REST işlemi</div><div>&nbsp; &nbsp; &nbsp; clRest.BaseURL = 'MY_ADDRESSS/addcategory';</div><div>&nbsp; &nbsp; &nbsp; clRest.Accept = 'application/json';</div><div>&nbsp; &nbsp; &nbsp; clRest.Method = rmPOST;</div><div>&nbsp; &nbsp; &nbsp; clRest.ConnectTimeOut = 30000; // 30 saniye timeout</div><div>&nbsp; &nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; &nbsp; if (EdtCName.Text == '') {</div><div>&nbsp; &nbsp; &nbsp; &nbsp; ShowMessage('Lütfen gerekli kısımları doldurun.');</div><div>&nbsp; &nbsp; &nbsp; } else {</div><div>&nbsp; &nbsp; &nbsp; &nbsp; clRest.AddBody(</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; '{"category_name" : "' + EdtCName.Text + '", "category_image" : "' + ImageStr + '"}',</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 'application/json'</div><div>&nbsp; &nbsp; &nbsp; &nbsp; );</div><div>&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; // Asenkron çalıştır</div><div>&nbsp; &nbsp; &nbsp; &nbsp; clRest.OnCompleted = 'OnRestCompleted';</div><div>&nbsp; &nbsp; &nbsp; &nbsp; clRest.ExecuteAsync;</div><div>&nbsp; &nbsp; &nbsp; }</div><div>&nbsp; &nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; &nbsp;except&nbsp;</div><div>&nbsp; &nbsp; &nbsp; ShowMessage('Exception Class: ' + LastExceptionClassName + ' Exception Message: ' + LastExceptionMessage);</div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp; }</div><div>}</div><div><br></div><div>void onbtnClick&nbsp;</div><div>&nbsp; {</div><div>&nbsp; &nbsp; try&nbsp;</div><div>&nbsp; &nbsp; &nbsp; // Resim seç</div><div>&nbsp; &nbsp; &nbsp; Clomosy.ImageChooser(Form1, CameraImg);</div><div>&nbsp; &nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; &nbsp; // Seçim sonrası hemen kontrol et</div><div>&nbsp; &nbsp; &nbsp; CheckImageSize;</div><div>&nbsp; &nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; &nbsp;except&nbsp;</div><div>&nbsp; &nbsp; &nbsp; ShowMessage('Exception Class: ' + LastExceptionClassName + ' Exception Message: ' + LastExceptionMessage);</div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp; }</div><div>}</div><div><br></div><div>// Resmi getir kontrol et</div><div>void memoBase64ToStreamClick&nbsp;</div><div>&nbsp; {</div><div>&nbsp; &nbsp; try&nbsp;</div><div>&nbsp; &nbsp; &nbsp; clRest = TCLRest.Create;&nbsp; &nbsp;</div><div>&nbsp; &nbsp; &nbsp; clRest.BaseURL = 'MY_ADDRESSS/category-image/8';</div><div>&nbsp; &nbsp; &nbsp; clRest.Accept = 'image/png';</div><div>&nbsp; &nbsp; &nbsp; clRest.Method = rmGET;</div><div>&nbsp; &nbsp; &nbsp; clRest.Execute;</div><div>&nbsp; &nbsp; &nbsp; SourceImg.Bitmap.LoadFromStream(clRest.StreamResponse);</div><div>&nbsp; &nbsp; &nbsp;except&nbsp;</div><div>&nbsp; &nbsp; &nbsp; ShowMessage('Exception Class: ' + LastExceptionClassName + ' Exception Message: ' + LastExceptionMessage);</div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp; }</div><div>}</div><div><br></div><div>{</div><div>&nbsp; Form1 = TCLForm.Create(Self);</div><div>&nbsp; Form1.SetFormColor('#085e26', '#4dcc1e', clGHorizontal);</div><div>&nbsp; Form1.clSetCaption('Kategori Ekleme');</div><div>&nbsp; Form1.clSetWindowState(fwsMaximized);</div><div><br></div><div>&nbsp; clRest = TCLRest.Create;</div><div>&nbsp;&nbsp;</div><div>&nbsp; // Status Label</div><div>&nbsp; statusLabel = Form1.AddNewProLabel(Form1, 'statusLabel', 'Resim seçiniz...');</div><div>&nbsp; statusLabel.Align = alMostTop;</div><div>&nbsp; statusLabel.Height = 30;</div><div>&nbsp; statusLabel.clProSettings.FontColor = clAlphaColor.clHexToColor('#ffffff');</div><div>&nbsp; statusLabel.clProSettings.FontSize = 16;</div><div>&nbsp; statusLabel.clProSettings.TextSettings.Font.Style = &#091;fsBold&#093;;</div><div>&nbsp; statusLabel.SetclProSettings(statusLabel.clProSettings);</div><div>&nbsp;&nbsp;</div><div>&nbsp;&nbsp;</div><div>&nbsp; // Source Image</div><div>&nbsp; SourceImg = Form1.AddNewImage(Form1, 'SourceImg');</div><div>&nbsp; SourceImg.Height = 200;</div><div>&nbsp; SourceImg.Width = 200;</div><div>&nbsp; SourceImg.Align = alTop;</div><div>&nbsp; SourceImg.Margins.Top = 10;</div><div>&nbsp; SourceImg.Margins.Left = 10;</div><div>&nbsp; SourceImg.Margins.Right = 10;</div><div>&nbsp; Form1.setImage(SourceImg, '<a href="https://clomosy.com/learn/clomosy.png" target="_blank" rel="nofollow">https://clomosy.com/learn/clomosy.png</a>');</div><div>&nbsp;&nbsp;</div><div>&nbsp; // Edit</div><div>&nbsp; EdtCName = Form1.AddNewProEdit(Form1, 'EdtCName', 'Kategori ismini giriniz..');</div><div>&nbsp; EdtCName.Align = alTop;</div><div>&nbsp; EdtCName.Width = 370;</div><div>&nbsp; EdtCName.Height = 50;</div><div>&nbsp; EdtCName.Margins.Top = 10;</div><div>&nbsp; EdtCName.Margins.Left = 10;</div><div>&nbsp; EdtCName.Margins.Right = 10;</div><div>&nbsp; EdtCName.clProSettings.FontColor = clAlphaColor.clHexToColor('#808080');</div><div>&nbsp; EdtCName.clProSettings.BackgroundColor = clAlphaColor.clHexToColor('#ebebeb');</div><div>&nbsp; EdtCName.clProSettings.BorderColor = clAlphaColor.clHexToColor('#000000');</div><div>&nbsp; EdtCName.clProSettings.BorderWidth = 2;</div><div>&nbsp; EdtCName.clProSettings.FontSize = 18;</div><div>&nbsp; EdtCName.clProSettings.FontVertAlign = palcenter;</div><div>&nbsp; EdtCName.clProSettings.FontHorzAlign = palcenter;</div><div>&nbsp; EdtCName.clProSettings.TextSettings.Font.Style = &#091;fsBold&#093;;</div><div>&nbsp; EdtCName.clProSettings.IsFill = True;&nbsp;</div><div>&nbsp; EdtCName.clProSettings.IsRound = True;</div><div>&nbsp; EdtCName.clProSettings.RoundHeight = 10;</div><div>&nbsp; EdtCName.clProSettings.RoundWidth = 10;</div><div>&nbsp; EdtCName.SetclProSettings(EdtCName.clProSettings);</div><div>&nbsp;&nbsp;</div><div>&nbsp; // Camera Button</div><div>&nbsp; CameraBtn = Form1.AddNewButton(Form1, 'CameraBtn', 'RESİM SEÇ');</div><div>&nbsp; Form1.AddNewEvent(CameraBtn, tbeOnClick, 'onbtnClick');</div><div>&nbsp; CameraBtn.Align = alBottom;</div><div>&nbsp; CameraBtn.Height = 50;</div><div>&nbsp; CameraBtn.Margins.Bottom = 10;</div><div>&nbsp; CameraBtn.Margins.Left = 10;</div><div>&nbsp; CameraBtn.Margins.Right = 10;</div><div>&nbsp;&nbsp;</div><div>&nbsp; // Save Button</div><div>&nbsp; SaveBtn = Form1.AddNewButton(Form1, 'SaveBtn', 'KAYDET');</div><div>&nbsp; Form1.AddNewEvent(SaveBtn, tbeOnClick, 'AddCategory');</div><div>&nbsp; SaveBtn.Align = alBottom;</div><div>&nbsp; SaveBtn.Height = 50;</div><div>&nbsp; SaveBtn.Margins.Bottom = 10;</div><div>&nbsp; SaveBtn.Margins.Left = 10;</div><div>&nbsp; SaveBtn.Margins.Right = 10;</div><div>&nbsp;&nbsp;</div><div>&nbsp; // Camera Image</div><div>&nbsp; CameraImg = Form1.AddNewImage(Form1, 'CameraImg');</div><div>&nbsp; CameraImg.Height = 300;</div><div>&nbsp; CameraImg.Width = 300;</div><div>&nbsp; CameraImg.Align = alCenter;</div><div>&nbsp; CameraImg.Margins.Top = 10;</div><div>&nbsp; CameraImg.Margins.Bottom = 10;</div><div>&nbsp;&nbsp;</div><div>&nbsp; Form1.Run;</div><div>}</div>]]>
   </description>
   <pubDate>Tue, 07 Oct 2025 14:32:19 +0000</pubDate>
   <guid isPermaLink="true">https://forum.clomosy.com.tr/forum_posts.asp?TID=1203&amp;PID=2579#2579</guid>
  </item> 
  <item>
   <title><![CDATA[Category Resmi ekleme : G&#252;ney kodlama da boyut kontrol&#252;...]]></title>
   <link>https://forum.clomosy.com.tr/forum_posts.asp?TID=1203&amp;PID=2578#2578</link>
   <description>
    <![CDATA[<strong>Yazar:</strong> <a href="https://forum.clomosy.com.tr/member_profile.asp?PF=257">Emr.Erkmn</a><br /><strong>Konu:</strong> 1203<br /><strong>Gönderim Zamanı:</strong> 07&nbsp;Ekim&nbsp;2025 Saat 14:24<br /><br />Güney&nbsp; kodlama da&nbsp; boyut kontrolü için;<br>Bu prosedürü kullanabilirsin;<br><div>void CheckImageSize&nbsp;</div><div>&nbsp; var</div><div>&nbsp; &nbsp; MemStream: TCLMemoryStream;</div><div>&nbsp; &nbsp; fileSize: Integer;</div><div>{</div><div>&nbsp; {</div><div>&nbsp; &nbsp; MemStream = TCLMemoryStream.Create;</div><div>&nbsp; &nbsp; CameraImg.Bitmap.SaveToStream(MemStream);</div><div>&nbsp; &nbsp; fileSize = MemStream.Size;</div><div>&nbsp; &nbsp;&nbsp;</div><div><br></div><div>&nbsp; &nbsp; if (fileSize &gt; 3145728) {</div><div>&nbsp; &nbsp; &nbsp; ShowMessage('Resim çok büyük! Maksimum 3MB olmalı.');</div><div>&nbsp; &nbsp; &nbsp; ShowMessage('Mevcut boyut: ' + IntToStr(fileSize div 1024 div 1024) + 'MB');</div><div>&nbsp; &nbsp; &nbsp; Exit;</div><div>&nbsp; &nbsp; }</div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; ImageStr = Clomosy.StreamToBase64(MemStream);</div><div>&nbsp; &nbsp; MemStream.Free;</div><div>&nbsp; }</div><div>}<br><br><br></div><span style="font-size:10px"><br /><br />Düzenleyen Emr.Erkmn - 07&nbsp;Ekim&nbsp;2025 Saat 14:25</span>]]>
   </description>
   <pubDate>Tue, 07 Oct 2025 14:24:33 +0000</pubDate>
   <guid isPermaLink="true">https://forum.clomosy.com.tr/forum_posts.asp?TID=1203&amp;PID=2578#2578</guid>
  </item> 
  <item>
   <title><![CDATA[Category Resmi ekleme : Bu &#351;ekilde yapt&#305;m fakat resmin...]]></title>
   <link>https://forum.clomosy.com.tr/forum_posts.asp?TID=1203&amp;PID=2577#2577</link>
   <description>
    <![CDATA[<strong>Yazar:</strong> <a href="https://forum.clomosy.com.tr/member_profile.asp?PF=344">M-Guney</a><br /><strong>Konu:</strong> 1203<br /><strong>Gönderim Zamanı:</strong> 07&nbsp;Ekim&nbsp;2025 Saat 13:49<br /><br /><div>Bu şekilde yaptım fakat resmin bouyutuna göre çalışma süresi max 13sn min 1sn olarak test ettim daha nasıl azaltabilirim. Ayrıca kullanıcıya ERP de kullanmak üzere resim yükletirken kaç mb sınır koyulamlı max değer kaç olmalı şuanlık middleware ile kategori max 15mb ürünler max 20mb olarak kontrol ediyorum.</div><div><br><br>var</div><div>&nbsp; Form1 : TCLForm;</div><div>&nbsp; //noteMemo : TclMemo;</div><div>&nbsp; SourceImg : TCLImage;</div><div>&nbsp; EdtCName : TclProEdit;</div><div><br></div><div>&nbsp; CameraBtn, SaveBtn:TclButton;</div><div>&nbsp; CameraImg: TCLImage;</div><div>&nbsp; ImageStr : String;</div><div>//SaveBtn</div><div>void AddCategory</div><div>var&nbsp;</div><div>&nbsp; output: String;</div><div>&nbsp; MemStream:TCLMemoryStream;</div><div>{</div><div>&nbsp; try</div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; MemStream = TCLMemoryStream.Create;</div><div>&nbsp; &nbsp; CameraImg.Bitmap.SaveToStream(MemStream);</div><div>&nbsp; &nbsp; ImageStr =&nbsp; Clomosy.StreamToBase64(MemStream);</div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; clRest.BaseURL = ''MY_ADDRESSS/addcategory';</div><div>&nbsp; &nbsp; clRest.Accept = 'application/json';</div><div>&nbsp; &nbsp; clRest.Method = rmPOST;//post</div><div>&nbsp; &nbsp; if(EdtCName.Text ==''){</div><div>&nbsp; &nbsp; &nbsp; ShowMessage('Lütfen gerekli kısımları doldurun.')</div><div>&nbsp; &nbsp; }else{</div><div>&nbsp; &nbsp; &nbsp; clRest.AddBody(</div><div>&nbsp; &nbsp; &nbsp; '{"category_name" : "'+EdtCName.Text+'", "category_image" :'+'"'+ ImageStr +'"}',</div><div>&nbsp; &nbsp; &nbsp; 'application/json');</div><div>&nbsp; &nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; &nbsp; // ÇALIŞMIYOR HEADER İS NOT WORKİNG</div><div>&nbsp; &nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; &nbsp; //clRest.AddHeader('Authorization','eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyX2lkIjo1MSwiZW1haWwiOiJtdWhhbW1lZHlhemlsaW1AZ21haWwuY29tIiwicm9sZV9pZCI6MSwiaWF0IjoxNzU5NzU4MTQ1LCJleHAiOjE3NTk3NjE3NDV9.IwjYTHC0YZo2XrYCgBrzhPYq1eDU-dzKRHZ073Bxrro');</div><div>&nbsp; &nbsp; &nbsp; clRest.Execute;</div><div>&nbsp; &nbsp; &nbsp; output = clRest.Response;</div><div>&nbsp; &nbsp; &nbsp; ShowMessage(output);</div><div>&nbsp; &nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; }&nbsp;</div><div>&nbsp; except</div><div>&nbsp; ShowMessage('Exception Class: '+LastExceptionClassName+' Exception Message: '+LastExceptionMessage);</div><div>&nbsp; }</div><div>}</div><div><br></div><div>//Choose Image</div><div>void onbtnClick; // Resim Seç&nbsp;</div><div>{</div><div>&nbsp; try</div><div>&nbsp; &nbsp; &nbsp; Clomosy.ImageChooser(Form1, CameraImg);</div><div>&nbsp; except</div><div>&nbsp; ShowMessage('Exception Class: '+LastExceptionClassName+' Exception Message: '+LastExceptionMessage);</div><div>&nbsp; }</div><div>}</div><div><br></div><div><br></div><div>// Resmi getir kontrol et</div><div>/*</div><div>&nbsp;void memoBase64ToStreamClick;</div><div>&nbsp;{</div><div>&nbsp; try&nbsp;</div><div>&nbsp; &nbsp; clRest=TCLRest.Create;&nbsp; &nbsp;</div><div>&nbsp; &nbsp; clRest.BaseURL = 'MY_ADDRESSS/category-image/8';</div><div>&nbsp; &nbsp; clRest.Accept = 'image/png'; // Eğer ki resim png değil JPEG&nbsp; olsa bile resmi getirir.</div><div>&nbsp; &nbsp; clRest.Method = rmGET;</div><div>&nbsp; &nbsp; clRest.Execute;</div><div>&nbsp; &nbsp; SourceImg.Bitmap.LoadFromStream(clRest.StreamResponse);</div><div>&nbsp; except</div><div>&nbsp; ShowMessage('Exception Class: '+LastExceptionClassName+' Exception Message: '+LastExceptionMessage);</div><div>&nbsp; }</div><div>}*/</div><div><br></div><div>&nbsp;</div><div>&nbsp;//------ Main Code ------</div><div>&nbsp;{</div><div>&nbsp; &nbsp;Form1 = TCLForm.Create(Self);</div><div><br></div><div>&nbsp; &nbsp;clRest=TCLRest.Create;</div><div>&nbsp; &nbsp;/*</div><div>&nbsp; &nbsp;noteMemo = Form1.AddNewMemo(Form1,'noteMemo','---');</div><div>&nbsp; &nbsp;noteMemo.Align = alMostTop;</div><div>&nbsp; &nbsp;noteMemo.Height = 50;</div><div>&nbsp; &nbsp;noteMemo.StyledSettings = ssFamily;</div><div>&nbsp; &nbsp;noteMemo.TextSettings.WordWrap = True;</div><div>&nbsp; &nbsp;Form1.AddNewEvent(noteMemo,tbeOnClick,'memoBase64ToStreamClick');</div><div>&nbsp; &nbsp;*/</div><div>&nbsp;</div><div>&nbsp; SourceImg = Form1.AddNewImage(Form1,'SourceImg');</div><div>&nbsp; SourceImg.Height = 300;</div><div>&nbsp; SourceImg.Width = 300;</div><div>&nbsp; SourceImg.Align = alClient;</div><div>&nbsp; Form1.setImage(SourceImg,'<a href="https://clomosy.com/learn/clomosy.png" target="_blank" rel="nofollow">https://clomosy.com/learn/clomosy.png</a>');</div><div>&nbsp; &nbsp;</div><div>&nbsp; EdtCName = Form1.AddNewProEdit(Form1,'EdtCName', 'Kategori ismini giriniz..');</div><div>&nbsp; EdtCName.Align = alTop;</div><div>&nbsp; EdtCName.Width = 370;</div><div>&nbsp; EdtCName.Height = 30;</div><div>&nbsp; EdtCName.Margins.Top = 10;</div><div>&nbsp; EdtCName.Margins.Left = 10;</div><div>&nbsp; EdtCName.Margins.Right = 10;</div><div>&nbsp; EdtCName.clProSettings.FontColor = clAlphaColor.clHexToColor('#808080');</div><div>&nbsp; EdtCName.clProSettings.BackgroundColor = clAlphaColor.clHexToColor('#ebebeb');</div><div>&nbsp; EdtCName.clProSettings.BorderColor = clAlphaColor.clHexToColor('#000000');</div><div>&nbsp; EdtCName.clProSettings.BorderWidth = 2;</div><div>&nbsp; EdtCName.clProSettings.FontSize = 40;</div><div>&nbsp; EdtCName.clProSettings.FontVertAlign = palcenter;</div><div>&nbsp; EdtCName.clProSettings.FontHorzAlign = palcenter;</div><div>&nbsp; EdtCName.clProSettings.TextSettings.Font.Style = &#091;fsBold&#093;;</div><div>&nbsp; EdtCName.clProSettings.IsFill = True;&nbsp;</div><div>&nbsp; EdtCName.clProSettings.IsRound = True;</div><div>&nbsp; EdtCName.clProSettings.RoundHeight = 10;</div><div>&nbsp; EdtCName.clProSettings.RoundWidth = 10;</div><div>&nbsp; EdtCName.SetclProSettings(EdtCName.clProSettings);</div><div>&nbsp; &nbsp;</div><div>&nbsp; CameraBtn = Form1.AddNewButton(Form1, 'CameraBtn','Resim Seç');</div><div>&nbsp; Form1.AddNewEvent(CameraBtn, tbeOnClick, 'onbtnClick');</div><div>&nbsp; CameraBtn.Align = alBottom;</div><div>&nbsp;&nbsp;</div><div>&nbsp; SaveBtn = Form1.AddNewButton(Form1, 'SaveBtn','KAYDET');</div><div>&nbsp; Form1.AddNewEvent(SaveBtn, tbeOnClick, 'AddCategory');</div><div>&nbsp; SaveBtn.Align = alBottom;</div><div>&nbsp;</div><div>&nbsp; CameraImg = Form1.AddNewImage(Form1, 'CameraImg');</div><div>&nbsp; CameraImg.Height = 300;</div><div>&nbsp; CameraImg.Width = 300;</div><div>&nbsp; CameraImg.Align = alCenter;</div><div>&nbsp; &nbsp;</div><div>&nbsp; &nbsp;Form1.Run;</div><div>&nbsp;}</div><div><br></div>]]>
   </description>
   <pubDate>Tue, 07 Oct 2025 13:49:01 +0000</pubDate>
   <guid isPermaLink="true">https://forum.clomosy.com.tr/forum_posts.asp?TID=1203&amp;PID=2577#2577</guid>
  </item> 
  <item>
   <title><![CDATA[Category Resmi ekleme : Merhaba G&#252;ney,2 farkl&#305; prosed&#252;r...]]></title>
   <link>https://forum.clomosy.com.tr/forum_posts.asp?TID=1203&amp;PID=2572#2572</link>
   <description>
    <![CDATA[<strong>Yazar:</strong> <a href="https://forum.clomosy.com.tr/member_profile.asp?PF=257">Emr.Erkmn</a><br /><strong>Konu:</strong> 1203<br /><strong>Gönderim Zamanı:</strong> 06&nbsp;Ekim&nbsp;2025 Saat 18:11<br /><br />Merhaba Güney,&nbsp;<br>2 farklı prosedür örneği göndereceğim, inceledikten sonra benzer hata alırsan tekrar bakalım.&nbsp;<br>1)&nbsp;<br><div>void gorselYuklendi;</div><div>var</div><div>&nbsp; base64Image: string;</div><div>&nbsp; apiUrl: string;</div><div>&nbsp; RequestBody: string;</div><div>&nbsp; tempPath: string;</div><div>&nbsp; FileStream: TclMemoryStream;</div><div>{</div><div>&nbsp; FileStream = TCLMemoryStream.Create;</div><div><span style="white-space: normal;"><span style="white-space:pre">	</span>CameraImg.Bitmap.SaveToStream(FileStream);&nbsp;</span></div><div>&nbsp; base64Image = Clomosy.StreamToBase64(FileStream);</div><div><br></div><div>&nbsp; apiUrl = 'kendi api keyin' + API_KEY;</div><div><br></div><div>&nbsp; RequestBody = '{</div><div>&nbsp; &nbsp; "requests": &#091;</div><div>&nbsp; &nbsp; &nbsp; {</div><div>&nbsp; &nbsp; &nbsp; &nbsp; "image": {</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; "content": "' + base64Image + '"</div><div>&nbsp; &nbsp; &nbsp; &nbsp; },</div><div>&nbsp; &nbsp; &nbsp; &nbsp; "features": &#091;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; "type": "DOCUMENT_TEXT_DETECTION",</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; "maxResults": 10</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &#093;</div><div>&nbsp; &nbsp; &nbsp; }</div><div>&nbsp; &nbsp; &#093;</div><div>&nbsp; }';</div><div><br></div><div>&nbsp; try</div><div>&nbsp; &nbsp; RestCreate(apiUrl, RequestBody);</div><div>&nbsp; except</div><div>&nbsp; &nbsp; ShowMessage('Görsel verisi hazırlanırken hata oluştu: ' + LastExceptionMessage);</div><div>&nbsp; }</div><div>}<br>*************************<br>2)&nbsp;<br><div>void Stream2Base64;</div><div>var</div><div>&nbsp; clMemoryStream:TCLMemoryStream;</div><div>{</div><div>&nbsp; // Save Img To File</div><div>&nbsp; clMemoryStream=TCLMemoryStream.Create;</div><div>&nbsp; try</div><div>&nbsp; &nbsp; CameraImg.Bitmap.SaveToStream(clMemoryStream);</div><div>&nbsp; &nbsp; base64Image = Clomosy.StreamToBase64(cLMemoryStream);</div><div>&nbsp; except</div><div>&nbsp; &nbsp; base64Image = '';</div><div>&nbsp; }</div><div>}<br>Resmi SQL'e update için;&nbsp;<br>&nbsp;&nbsp;CLQuery.FieldByName('Resim_Yolu').AsString = base64Image;<br><br></div><br></div><br>]]>
   </description>
   <pubDate>Mon, 06 Oct 2025 18:11:24 +0000</pubDate>
   <guid isPermaLink="true">https://forum.clomosy.com.tr/forum_posts.asp?TID=1203&amp;PID=2572#2572</guid>
  </item> 
  <item>
   <title><![CDATA[Category Resmi ekleme : https://resmim.net/i/jrRglK  ]]></title>
   <link>https://forum.clomosy.com.tr/forum_posts.asp?TID=1203&amp;PID=2570#2570</link>
   <description>
    <![CDATA[<strong>Yazar:</strong> <a href="https://forum.clomosy.com.tr/member_profile.asp?PF=344">M-Guney</a><br /><strong>Konu:</strong> 1203<br /><strong>Gönderim Zamanı:</strong> 06&nbsp;Ekim&nbsp;2025 Saat 15:40<br /><br /><a href="https://resmim.net/i/jrRglK%20" target="_blank" rel="nofollow">https://resmim.net/i/jrRglK</a>
<br><br>]]>
   </description>
   <pubDate>Mon, 06 Oct 2025 15:40:54 +0000</pubDate>
   <guid isPermaLink="true">https://forum.clomosy.com.tr/forum_posts.asp?TID=1203&amp;PID=2570#2570</guid>
  </item> 
  <item>
   <title><![CDATA[Category Resmi ekleme : void onbtnClick;{try  Clomosy.ImageChooser(Form1,...]]></title>
   <link>https://forum.clomosy.com.tr/forum_posts.asp?TID=1203&amp;PID=2569#2569</link>
   <description>
    <![CDATA[<strong>Yazar:</strong> <a href="https://forum.clomosy.com.tr/member_profile.asp?PF=344">M-Guney</a><br /><strong>Konu:</strong> 1203<br /><strong>Gönderim Zamanı:</strong> 06&nbsp;Ekim&nbsp;2025 Saat 15:39<br /><br /><div>void onbtnClick;</div><div>{</div><div>try</div><div>&nbsp; &nbsp; Clomosy.ImageChooser(Form1, CameraImg2);</div><div>&nbsp; &nbsp; CameraImg2.Bitmap.SaveToStream(MemStream);</div><div>&nbsp; &nbsp; noteMemo.Lines.Text = MemStream.AsBase64;</div><div>&nbsp; &nbsp; // Image içindeki resmi okuyup base 64 çevirip db ye yaz</div><div>except</div><div>ShowMessage('Exception Class: '+LastExceptionClassName+' Exception Message: '+LastExceptionMessage);</div><div>}</div>]]>
   </description>
   <pubDate>Mon, 06 Oct 2025 15:39:53 +0000</pubDate>
   <guid isPermaLink="true">https://forum.clomosy.com.tr/forum_posts.asp?TID=1203&amp;PID=2569#2569</guid>
  </item> 
  <item>
   <title><![CDATA[Category Resmi ekleme : Ben ERP projesinde kullanmak i&#231;in...]]></title>
   <link>https://forum.clomosy.com.tr/forum_posts.asp?TID=1203&amp;PID=2568#2568</link>
   <description>
    <![CDATA[<strong>Yazar:</strong> <a href="https://forum.clomosy.com.tr/member_profile.asp?PF=344">M-Guney</a><br /><strong>Konu:</strong> 1203<br /><strong>Gönderim Zamanı:</strong> 06&nbsp;Ekim&nbsp;2025 Saat 15:17<br /><br />Ben ERP projesinde kullanmak için telefondan&nbsp;ImageChooser ile eklenmiş olan fotoğrafı API aracılığıyla serverda tutup daha sonrasında kullamak istiyorum.<br><br>ImageChooser da proImage kullanımına izin vermiyor verseydi&nbsp;<br>CameraImg.clProSettings.PictureSource şeklinde almayı planlıyordum ben bu resmi nasıl api aracılığıyla veri tabanına yollayabilirim.]]>
   </description>
   <pubDate>Mon, 06 Oct 2025 15:17:37 +0000</pubDate>
   <guid isPermaLink="true">https://forum.clomosy.com.tr/forum_posts.asp?TID=1203&amp;PID=2568#2568</guid>
  </item> 
 </channel>
</rss>