Skip to content

Commit

Permalink
fixes #32
Browse files Browse the repository at this point in the history
  • Loading branch information
moustaphastar committed Sep 9, 2021
1 parent fd7d802 commit add385a
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,9 @@ public class FirebaseFileServiceImpl implements FirebaseFileService {

@Override
public String uploadFile(InputStream is, String contentType, String path, String fileName) throws IOException {
InputStream serviceAccount = getClass().getClassLoader().getResourceAsStream("zuri-petshop-firebase.json");
InputStream serviceAccount = getClass()
.getClassLoader()
.getResourceAsStream("firebase.json");
Storage storage = StorageOptions.newBuilder().setCredentials(GoogleCredentials.fromStream(serviceAccount))
.setProjectId(PETSHOP_FIREBASE_PROJECT_ID).build().getService();
Map<String, String> map = new HashMap<>();
Expand Down

0 comments on commit add385a

Please sign in to comment.