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

        return(space_ref.ToString());
    }
Exemplo 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");
    }
Exemplo 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);
    }