Giter Club home page Giter Club logo

Comments (5)

athakor avatar athakor commented on July 28, 2024

@sudipbhandari126 could you try using the latest releases:
https://search.maven.org/artifact/com.google.cloud/google-cloud-storage-parent/1.104.0/pom OR https://search.maven.org/artifact/com.google.cloud/google-cloud-storage-parent/1.105.0/pom

Verified the latest version has resolved this issue below are the code sample and response.

Code sample

public class StorageTest {

  public static void main(String[] args) {
    try {
      Storage storage = StorageOptions.getDefaultInstance().getService();
      String bucketName = "ajit-test-bucket";
      String fileName = "file test.txt";
      Blob blob = storage.get(bucketName, fileName);
      if (Objects.isNull(blob)) {}
      System.out.println("Blob Response:" + blob);
    } catch (Exception ex) {
      ex.printStackTrace();
    }
  }
}

Output :

Blob Response:Blob{bucket=test-bucket, name=file test.txt, generation=1583146265562128, size=21, content-type=null, metadata=null}

from java-storage.

sudipidus avatar sudipidus commented on July 28, 2024

My build is failing for the latest version with the following errror:

Could not find androidx.annotation:annotation:1.1.0
....
Required by:
      project :core > com.google.api-client:google-api-client:1.30.8

from java-storage.

athakor avatar athakor commented on July 28, 2024

@sudipbhandari126 please check the issue #148

from java-storage.

sudipidus avatar sudipidus commented on July 28, 2024

Great.
Thanks for the quick response.

couple questions:

  1. why an additional dependency wasn't bundled?
  2. why sudden change while upgrading version that we had to add new repository?

from java-storage.

athakor avatar athakor commented on July 28, 2024

~cc:/ @elharo

from java-storage.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.