Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Does ContentReader of DownloadFileswithsummary have file information in Bytes #705

Open
I559856 opened this issue Feb 10, 2023 · 5 comments
Labels
question Further information is requested

Comments

@I559856
Copy link

I559856 commented Feb 10, 2023

Is there any way to get file in bytes from Downloadwithsummary ? I see contentReader returns only returns URI's in datachannels .

@I559856 I559856 added the question Further information is requested label Feb 10, 2023
@I559856
Copy link
Author

I559856 commented Feb 14, 2023

Hi team, is there any update on this issue ?

@Or-Geva
Copy link
Contributor

Or-Geva commented Feb 14, 2023

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.

@I559856
Copy link
Author

I559856 commented Feb 14, 2023

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.

@Or-Geva
Copy link
Contributor

Or-Geva commented Feb 14, 2023

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).

@I559856
Copy link
Author

I559856 commented Feb 21, 2023

Yes , I would love to, I am going through the code will shortly raise an PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants