-
Notifications
You must be signed in to change notification settings - Fork 484
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
examples: Implement console progress bar for GetObject #554
Conversation
8923897
to
873876e
Compare
Progress bar is of the following form ``` Uploading... 2% [=> ] ... ```
873876e
to
7e54a7b
Compare
|
||
// Get input stream to have content of 'my-objectname' from 'my-bucketname' | ||
InputStream is = new ProgressStream("Downloading .. ", ProgressBarStyle.ASCII, | ||
objectStat.length(), minioClient.getObject("my-bucketname", "my-objectname")); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like this getObject()
function does not yet exist in the latest deployed version?
I'm using this:
<dependency>
<groupId>io.minio</groupId>
<artifactId>minio</artifactId>
<version>3.0.3</version>
</dependency>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Of course it does @danyaljj getObject has been implemented has been implemented in first release of minio-java.
What you are looking for is perhaps ProgressStream()
- this is just an example you should copy paste the ProgressStream.java
wherever needed and use it with inputStreams to generate progress bar.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what I mean is, getObject
with two string parameters.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh no it's there. Found it.
Can anyone tell me how to implement in python ? @harshavardhana |
Progress bar is of the following form