Hey guys. Is there any difference in the following two examples? Is one preferred over the other? no

Hey guys. Is there any difference in the following two examples? Is one preferred over the other?
note: file here is a File object.
await bucket.put(key, file.stream(), { httpMetadata: { contentType: file.type }});

await bucket.put(key, await file.arrayBuffer(), { httpMetadata: { contentType: file.type }});
Was this page helpful?