-
Hello, everyone. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
https://github.com/mobizt/FirebaseClient?tab=readme-ov-file#working-with-filesystems-and-blob |
Beta Was this translation helpful? Give feedback.
-
Define the Then set your image buffer pointer and its length with the object defined. BlobConfig upload_data; // Global define
setup()
{
upload_data,setBlob(fb->buf, fb->len);
// Firebase Storage
storage.upload(aClient, FirebaseStorage::Parent(STORAGE_BUCKET_ID, "filename.jpg"), getBlob(upload_data), "image/jpeg", asyncCB, "uploadTask");
// Cloud Storage
cstorage.upload(aClient, GoogleCloudStorage::Parent(STORAGE_BUCKET_ID, "filename.jpg"), getBlob(upload_data), "image/jpeg", asyncCB, "uploadTask");
} |
Beta Was this translation helpful? Give feedback.
Define the
BlobConfig
object globally.Then set your image buffer pointer and its length with the object defined.