LOCAL DownloadRemoteFile(URL : Text;LocalFilePath : Text) WebRequest := WebRequest.HttpWebRequest; WebRequest := WebRequest.Create(URL); WebResponse := WebRequest.GetResponse; Bytes := WebResponse.GetResponseStream; MemoryStream := MemoryStream.MemoryStream(Bytes); FileMode := FileMode.Create; FileAccess := FileAccess.Write; FileStream := FileStream.FileStream(LocalFilePath,FileMode,FileAccess); MemoryStream.WriteTo(FileStream);:blush:
WebRequest@1000000003 : DotNet "'System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'.System.Net.HttpWebRequest"; WebResponse@1000000002 : DotNet "'System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'.System.Net.WebResponse"; MemoryStream@1000000010 : DotNet "'mscorlib'.System.IO.MemoryStream"; FileStream@1000000004 : DotNet "'mscorlib'.System.IO.FileStream"; FileAccess@1000000007 : DotNet "'mscorlib'.System.IO.FileAccess"; FileMode@1000000006 : DotNet "'mscorlib'.System.IO.FileMode"; Bytes@1000000008 : DotNet "'mscorlib'.System.Array"
Answers
http://kauffmann.nl/index.php/2016/01/09/web-services-examples-part-3-generate-barcode/
Here he downloads an image from a webservice which generates barcodes.
yes, I knew that I saw a code for this on some blog but I couldn't find it...
Thanks!