<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to How to implement IVisuStreamReader</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/117dffb6d1/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Engineering/thread/117dffb6d1/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Engineering/thread/117dffb6d1/</id><updated>2023-03-02T04:47:00.134000Z</updated><subtitle>Recent posts to How to implement IVisuStreamReader</subtitle><entry><title>How to implement IVisuStreamReader</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/117dffb6d1/?limit=25#0ff1" rel="alternate"/><published>2023-03-02T04:47:00.134000Z</published><updated>2023-03-02T04:47:00.134000Z</updated><author><name>ryusoup</name><uri>https://forge.codesys.com/u/ryusoup/</uri></author><id>https://forge.codesys.come8d9ebcf58dc2343fa59f5bb4f2952645143696a</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Self resolved.&lt;br/&gt;
Changing&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;span class="err"&gt;readLen := SysFileRead(hFile:=hFile, pbyBuffer:=pbyBuffer, ulSize:=udiMaxNrBytes, pResult:=ADR(error));&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;


&lt;p&gt;to&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;span class="err"&gt;readLen := SysFileRead(hFile:=hFile, pbyBuffer:=pbyBuffer, ulSize:=udiMaxNrBytes-10, pResult:=ADR(error));&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;


&lt;p&gt;cleared the problem.&lt;br/&gt;
But still, I don't understand why that happens.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>How to implement IVisuStreamReader</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/117dffb6d1/?limit=25#8ada" rel="alternate"/><published>2023-03-01T01:03:30.122000Z</published><updated>2023-03-01T01:03:30.122000Z</updated><author><name>ryusoup</name><uri>https://forge.codesys.com/u/ryusoup/</uri></author><id>https://forge.codesys.coma7b431e84b9cfb7a7fb5490e0feb3b6a170746c9</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;I am working on downloading a file exists on remote controller over WebVisu.&lt;br/&gt;
Following the &lt;a class="" href="https://store.codesys.com/en/visu-file-transfer-example.html" rel="nofollow"&gt;file transfer example&lt;/a&gt; , I prepared a FB implements IVisuStreamReader to use file transfer feature on Visu as the screenshot attached, and it works with some small files enough to read whole content in 1 scan.&lt;br/&gt;
But with larger file, downloaded file contains only the end part of the original file.&lt;/p&gt;
&lt;p&gt;Does anyone know how to fix this?&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>