M-Files / Libraries.MFWSClient

An example .NET wrapper for the M-Files Web Service.
MIT License
14 stars 12 forks source link

Problems with file download #34

Open ptitera opened 3 months ago

ptitera commented 3 months ago

When I use ObjectFileOperations.DownloadFile with given output stream I get no data on output. I have no problems when I try to get file as byte[].

I think problem is in implementation of ResponseWriter in ObjectFileOperations.DownloadFileAsync method it does not copy given response stream to given output stream.

CraigHawker commented 3 months ago

Please provide a test case which shows the issue (taking a quick look at the code I think you may be right, but a test case would make it easier to check).

Alternatively: please do feel free to provide a pull request containing a fix, if this is something you need fixing quickly.

nar-wtag commented 3 months ago

I also faced the same issue in the latest prerelease version

CraigHawker commented 3 months ago

Due to limited time on my side I'm not sure when I'll get to take a look at this.

Please, at a minimum, provide a test case which replicates the issue. Pull requests with a fix would also be welcomed.