<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"><channel><category>pcsoft.us.windev</category><copyright>Copyright 2026, PC SOFT</copyright><lastBuildDate>4 Apr 2016 07:38:00 Z</lastBuildDate><pubDate>31 Mar 2016 15:34:00 Z</pubDate><description>vello,&#13;
&#13;
I am using following code to download file from web server using HTTPRequest and trying to save it to user selected location on phone. The code runs without any error but the file that gets saved is always of zero (0) byte.&#13;
&#13;
Here is the code snippet that I am using:&#13;
nFID is int HTTPRequest("http://xxxxxxxx.com/projects/sa/homework_file/" + gsFileName) sResult is Buffer = HTTPGetResult(httpResult) IF Position(sResult,"404") THEN Info(HTMLToText(sResult)) // or some other error handling to indicate the file was not found ELSE IF Length(sResult) &gt; 0 THEN nFID = fCreate(gsParentPath+gsFileName) IF nFID &gt; 0 THEN Info(fWrite(nFID,sResult,Length(sResult))) END END END Info("File Saved") Close()&#13;
Is there any mistake in the code?&#13;
&#13;
Please help me here.&#13;
&#13;
TIA&#13;
&#13;
Yogi Yang</description><ttl>30</ttl><generator>WEBDEV</generator><language>en_US</language><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/57127-download-and-save-file-mobile-storage/read.awp</link><title>[WM] - Download and save file in Mobile Storage</title><managingEditor>moderateur@pcsoft.fr (El moderador)</managingEditor><webMaster>webmaster@pcsoft.fr (El webmaster)</webMaster><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/57127-download-and-save-file-mobile-storage-solved-57172/read.awp</comments><pubDate>4 Apr 2016 07:38:00 Z</pubDate><description>Hello,&#13;
&#13;
The server from where I have to download the file and save is a Linux Server (CentOS).&#13;
&#13;
TIA&#13;
&#13;
Yogi Yang</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/57127-download-and-save-file-mobile-storage-solved-57172/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/57127-download-and-save-file-mobile-storage-solved-57172/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/57127-download-and-save-file-mobile-storage/read.awp">[WM] - Download and save file in Mobile Storage</source><title>Re: [WM] - Download and save file in Mobile Storage [Solved]</title></item><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/57127-download-and-save-file-mobile-storage-solved-57171/read.awp</comments><pubDate>4 Apr 2016 06:43:00 Z</pubDate><description>Hi Yogi,&#13;
&#13;
&gt;HTTPRequest("http://xxxxxxxx.com/projects/sa/homework_file/" + gsFileName)&#13;
&#13;
Do you need to enable the path under …</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/57127-download-and-save-file-mobile-storage-solved-57171/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/57127-download-and-save-file-mobile-storage-solved-57171/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/57127-download-and-save-file-mobile-storage/read.awp">[WM] - Download and save file in Mobile Storage</source><title>Re: [WM] - Download and save file in Mobile Storage [Solved]</title></item><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/57127-download-and-save-file-mobile-storage-solved-57131/read.awp</comments><pubDate>31 Mar 2016 16:53:00 Z</pubDate><description>Oh how stupid of me.&#13;
&#13;
The problem was in this condition:&#13;
IF nFID &gt; 0 THEN // &lt;=== This should be : IF nFID &gt;= 0 THEN Info(fWr…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/57127-download-and-save-file-mobile-storage-solved-57131/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/57127-download-and-save-file-mobile-storage-solved-57131/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/57127-download-and-save-file-mobile-storage/read.awp">[WM] - Download and save file in Mobile Storage</source><title>Re: [WM] - Download and save file in Mobile Storage [Solved]</title></item><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/57127-download-and-save-file-mobile-storage-57130/read.awp</comments><pubDate>31 Mar 2016 16:48:00 Z</pubDate><description>Hi&#13;
&#13;
what is the content of gsParentPath?&#13;
Did you try with fSaveBuffer (that's what I'm using)?&#13;
&#13;
Best regards</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/57127-download-and-save-file-mobile-storage-57130/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/57127-download-and-save-file-mobile-storage-57130/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/57127-download-and-save-file-mobile-storage/read.awp">[WM] - Download and save file in Mobile Storage</source><title>Re: [WM] - Download and save file in Mobile Storage</title></item></channel></rss>
