Skip to content

Commit

Permalink
GoogleCloudStorageEntity use ReadChannel to create InputStream
Browse files Browse the repository at this point in the history
  • Loading branch information
eahrold committed Apr 27, 2024
1 parent 4920db5 commit b5779cd
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@

import java.io.ByteArrayInputStream;
import java.io.InputStream;
import java.nio.channels.Channels;
import java.util.Map;
import java.util.Optional;

Expand All @@ -47,7 +48,7 @@ public String getKey() {
@NonNull
@Override
public InputStream getInputStream() {
return new ByteArrayInputStream(blob.getContent());
return Channels.newInputStream(blob.reader());
}

@NonNull
Expand Down

0 comments on commit b5779cd

Please sign in to comment.