public string GetReference(string pathAppend)
    {
        // Points to itemPath
        StorageReference space_ref = storageFolderReference.Child(pathAppend);

        return(space_ref.ToString());
    }
Esempio n. 2
0
    void Start()
    {
        FirebaseStorage  storage     = FirebaseStorage.DefaultInstance;
        StorageReference storage_ref = storage.GetReferenceFromUrl(baseUrl);

        user_ref = storage_ref.Child(userName);
        Debug.Log(user_ref.ToString());
        fileName = Application.persistentDataPath + "/ImagesUrls.txt";
        File.WriteAllText(fileName, "The quick brown fox jumps over the lazy dogs");
    }
Esempio n. 3
0
    int handleDetectObject(byte[] data)
    {
        // Create a storage reference from our storage service
        StorageReference storage_ref =
            fbStorage.GetReferenceFromUrl("gs://sandboxvr-40119.appspot.com");


        // Create a reference to the file you want to upload
        StorageReference curImg = storage_ref.Child("images//green.jpeg");

        Debug.Log(curImg.ToString());

        StartCoroutine(uploadFile(curImg, data));
        return(0);
    }