<?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[von URL Datei downloaden]]></title><description><![CDATA[<p>Moin moin,</p>
<p>ich brauch eure Hilfe. Ich würde gerne eine Datei (logo6.jpg)<br />
von einer URL runterladen.<br />
Wie kann ich dies erreichen ?</p>
<pre><code class="language-cpp">CInternetSession session; 
 CInternetFile* file = NULL; 
 { 
  file = (CInternetFile*) session.OpenURL(&quot;http://testurl.de/logo6.jpg&quot;);  
 } 
 // hier muss ich die Datei ja irgendwie auf meinen Rechner kopieren ?!
// bitte helfen...
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/topic/52054/von-url-datei-downloaden</link><generator>RSS for Node</generator><lastBuildDate>Sun, 31 May 2026 18:01:43 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/52054.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 15 Oct 2003 23:08:07 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to von URL Datei downloaden on Wed, 15 Oct 2003 23:08:07 GMT]]></title><description><![CDATA[<p>Moin moin,</p>
<p>ich brauch eure Hilfe. Ich würde gerne eine Datei (logo6.jpg)<br />
von einer URL runterladen.<br />
Wie kann ich dies erreichen ?</p>
<pre><code class="language-cpp">CInternetSession session; 
 CInternetFile* file = NULL; 
 { 
  file = (CInternetFile*) session.OpenURL(&quot;http://testurl.de/logo6.jpg&quot;);  
 } 
 // hier muss ich die Datei ja irgendwie auf meinen Rechner kopieren ?!
// bitte helfen...
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/373309</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/373309</guid><dc:creator><![CDATA[)(Bunny]]></dc:creator><pubDate>Wed, 15 Oct 2003 23:08:07 GMT</pubDate></item><item><title><![CDATA[Reply to von URL Datei downloaden on Wed, 15 Oct 2003 23:25:50 GMT]]></title><description><![CDATA[<pre><code class="language-cpp">#define HTTPBUFLEN    512 // größe des Buffer
..
CFile myFile;
...
char httpbuff[HTTPBUFLEN+1];
CInternetSession mysession;
CStdioFile *remotefile = mysession.OpenURL(url,1,INTERNET_FLAG_TRANSFER_BINARY|INTERNET_FLAG_RELOAD);

int numbytes;
while (numbytes = remotefile-&gt;Read(httpbuff, HTTPBUFLEN))
{
	 myFile.Write(httpbuff,numbytes);
}
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/373311</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/373311</guid><dc:creator><![CDATA[CMatt]]></dc:creator><pubDate>Wed, 15 Oct 2003 23:25:50 GMT</pubDate></item></channel></rss>