We usually use job.GetInputStream in whole, e.g. to save it to a file as in the following code:
but what about saving only a part of it(e.g. the last 3000 bytes of this 'inputstream')?
Anybody helps??![Smiling face with halo :innocent: 😇](https://cdn.jsdelivr.net/joypixels/assets/6.5/png/unicode/64/1f607.png)
B4X:
Dim OutStream As OutputStream
OutStream = File.OpenOutput(File.DirInternal, dlFileName, False)
File.Copy2(Job.GetInputStream,OutStream) ' save the file
OutStream.Close
Anybody helps??
![Smiling face with halo :innocent: 😇](https://cdn.jsdelivr.net/joypixels/assets/6.5/png/unicode/64/1f607.png)