jfrog-client-go
jfrog-client-go copied to clipboard
Does ContentReader of DownloadFileswithsummary have file information in Bytes
Is there any way to get file in bytes from Downloadwithsummary ? I see contentReader returns only returns URI's in datachannels .
Hi team, is there any update on this issue ?
Hello @I559856. Following this documentation, you can get the file path, read it, and get the file data as bytes. If this does not help you, please share more information about your end goal.
We wanted to avoid additional IO operation. Jfrog Rest API returns byte stream similarly I wanted to know if content reader returns any bytes directly.
Got it @I559856 , the current API does not support streams, would you like to contribute code to jfrog-client-go? To get started, here is an example of a similar API that returns a stream of the file content (without a summary).
Yes , I would love to, I am going through the code will shortly raise an PR