<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[FTP (Webcam)]]></title><description><![CDATA[<p>Ich habe ein Programm geschrieben, welches Bilder von meiner WebCam abholt und dann auf meine Homepage läd (ftp).</p>
<p>Beim Upload mit dem Kompo &quot;NMFTP&quot; bekomme die Fehlermeldung: <strong>Im Projekt Project1.exe ist eine Exception der Klasse EIdConnClosedGracefully aufgetreten.<br />
Meldung: 'Connection Closed Gracefully.'.</strong></p>
<p>Was bedeutet dies? Was kann ich tun?</p>
<p>Danke!</p>
<p>hier die Source:</p>
<pre><code class="language-cpp">TMemoryStream *file2 = new TMemoryStream();

bool Status=false;
bool Status2=false;
//---------------------------------------------------------------------------
__fastcall TForm1::TForm1(TComponent* Owner)
        : TForm(Owner)
{

}
//---------------------------------------------------------------------------
void __fastcall TForm1::Button1Click(TObject *Sender)
{
Status=!Status;
if(!Status)
{
NMFTP1-&gt;Disconnect();
Button1-&gt;Caption=&quot;Verbinden&quot;;
}
if(Status)
{
NMFTP1-&gt;Host=&quot;janikboehm.ja.funpic.de&quot;;
NMFTP1-&gt;UserID=&quot;janikboehm&quot;;
NMFTP1-&gt;Password=&quot;****&quot;;
NMFTP1-&gt;Connect();
Button1-&gt;Caption=&quot;Trennen&quot;;
Button2-&gt;Click();
}
}
//---------------------------------------------------------------------------
void __fastcall TForm1::NMFTP1ConnectionFailed(TObject *Sender)
{
Application-&gt;MessageBox(&quot;Fehler!&quot;,&quot;&quot;,0);        
}
//---------------------------------------------------------------------------
void __fastcall TForm1::NMFTP1Failure(bool &amp;Handled, TCmdType Trans_Type)
{
Application-&gt;MessageBox(&quot;Fehler!&quot;,&quot;&quot;,0);        
}
//---------------------------------------------------------------------------
void __fastcall TForm1::NMFTP1InvalidHost(bool &amp;Handled)
{
Application-&gt;MessageBox(&quot;Falscher Host Name!&quot;,&quot;&quot;,0);        
}
//---------------------------------------------------------------------------
void __fastcall TForm1::NMFTP1Connect(TObject *Sender)
{
Label6-&gt;Caption=&quot;Aktiv&quot;;
Label6-&gt;Font-&gt;Color=clGreen;
Button2-&gt;Enabled=true;        
}
//---------------------------------------------------------------------------
void __fastcall TForm1::NMFTP1Disconnect(TObject *Sender)
{
Label6-&gt;Caption=&quot;Inaktiv&quot;;
Label6-&gt;Font-&gt;Color=clRed;
Button2-&gt;Enabled=false;        
}
//---------------------------------------------------------------------------
void __fastcall TForm1::Button2Click(TObject *Sender)
{
String url = &quot;http://192.168.1.20/IMAGE.JPG&quot;;
IdHTTP1-&gt;Get(url,file2);
file2-&gt;SaveToFile(&quot;test.jpg&quot;);
NMFTP1-&gt;Upload(&quot;test.jpg&quot;,&quot;image.jpg&quot;);

delete file2;
}
//---------------------------------------------------------------------------
</code></pre>
<p>gruß Fredi <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f609.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--winking_face"
      title=";)"
      alt="😉"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/topic/101857/ftp-webcam</link><generator>RSS for Node</generator><lastBuildDate>Tue, 14 Jul 2026 03:27:05 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/101857.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 20 Feb 2005 13:16:38 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to FTP (Webcam) on Sun, 20 Feb 2005 13:16:38 GMT]]></title><description><![CDATA[<p>Ich habe ein Programm geschrieben, welches Bilder von meiner WebCam abholt und dann auf meine Homepage läd (ftp).</p>
<p>Beim Upload mit dem Kompo &quot;NMFTP&quot; bekomme die Fehlermeldung: <strong>Im Projekt Project1.exe ist eine Exception der Klasse EIdConnClosedGracefully aufgetreten.<br />
Meldung: 'Connection Closed Gracefully.'.</strong></p>
<p>Was bedeutet dies? Was kann ich tun?</p>
<p>Danke!</p>
<p>hier die Source:</p>
<pre><code class="language-cpp">TMemoryStream *file2 = new TMemoryStream();

bool Status=false;
bool Status2=false;
//---------------------------------------------------------------------------
__fastcall TForm1::TForm1(TComponent* Owner)
        : TForm(Owner)
{

}
//---------------------------------------------------------------------------
void __fastcall TForm1::Button1Click(TObject *Sender)
{
Status=!Status;
if(!Status)
{
NMFTP1-&gt;Disconnect();
Button1-&gt;Caption=&quot;Verbinden&quot;;
}
if(Status)
{
NMFTP1-&gt;Host=&quot;janikboehm.ja.funpic.de&quot;;
NMFTP1-&gt;UserID=&quot;janikboehm&quot;;
NMFTP1-&gt;Password=&quot;****&quot;;
NMFTP1-&gt;Connect();
Button1-&gt;Caption=&quot;Trennen&quot;;
Button2-&gt;Click();
}
}
//---------------------------------------------------------------------------
void __fastcall TForm1::NMFTP1ConnectionFailed(TObject *Sender)
{
Application-&gt;MessageBox(&quot;Fehler!&quot;,&quot;&quot;,0);        
}
//---------------------------------------------------------------------------
void __fastcall TForm1::NMFTP1Failure(bool &amp;Handled, TCmdType Trans_Type)
{
Application-&gt;MessageBox(&quot;Fehler!&quot;,&quot;&quot;,0);        
}
//---------------------------------------------------------------------------
void __fastcall TForm1::NMFTP1InvalidHost(bool &amp;Handled)
{
Application-&gt;MessageBox(&quot;Falscher Host Name!&quot;,&quot;&quot;,0);        
}
//---------------------------------------------------------------------------
void __fastcall TForm1::NMFTP1Connect(TObject *Sender)
{
Label6-&gt;Caption=&quot;Aktiv&quot;;
Label6-&gt;Font-&gt;Color=clGreen;
Button2-&gt;Enabled=true;        
}
//---------------------------------------------------------------------------
void __fastcall TForm1::NMFTP1Disconnect(TObject *Sender)
{
Label6-&gt;Caption=&quot;Inaktiv&quot;;
Label6-&gt;Font-&gt;Color=clRed;
Button2-&gt;Enabled=false;        
}
//---------------------------------------------------------------------------
void __fastcall TForm1::Button2Click(TObject *Sender)
{
String url = &quot;http://192.168.1.20/IMAGE.JPG&quot;;
IdHTTP1-&gt;Get(url,file2);
file2-&gt;SaveToFile(&quot;test.jpg&quot;);
NMFTP1-&gt;Upload(&quot;test.jpg&quot;,&quot;image.jpg&quot;);

delete file2;
}
//---------------------------------------------------------------------------
</code></pre>
<p>gruß Fredi <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f609.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--winking_face"
      title=";)"
      alt="😉"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/727923</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/727923</guid><dc:creator><![CDATA[FB_]]></dc:creator><pubDate>Sun, 20 Feb 2005 13:16:38 GMT</pubDate></item><item><title><![CDATA[Reply to FTP (Webcam) on Sun, 20 Feb 2005 13:50:02 GMT]]></title><description><![CDATA[<p>Das kommt nicht von der FTP- sondern von der Indy-HTTP-Komponente.<br />
Siehe <a href="http://www.indyproject.org/KB/" rel="nofollow">http://www.indyproject.org/KB/</a> unter 'Exceptions'.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/727963</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/727963</guid><dc:creator><![CDATA[Jansen]]></dc:creator><pubDate>Sun, 20 Feb 2005 13:50:02 GMT</pubDate></item><item><title><![CDATA[Reply to FTP (Webcam) on Sun, 20 Feb 2005 14:51:08 GMT]]></title><description><![CDATA[<p>Danke hat geholfen!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/728025</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/728025</guid><dc:creator><![CDATA[FB_]]></dc:creator><pubDate>Sun, 20 Feb 2005 14:51:08 GMT</pubDate></item></channel></rss>