Skip to content
Back

Getting a file blob/arraybuffer from Client Web SDK

  • 0
  • Web
  • Cloud
Heeth Jain
14 Apr, 2025, 13:29

The current Client Web SDK functions only returns string i.e a URL for the file.

We cannot download and get the file object directly either via arraybuffer/blob object.

The URL is protected, and hence either need to get the file via HTTP API + JWT or use Server in order to obtain a blob/arraybuffer file.

Is there a direct way to get the File?

TL;DR
- The Client Web SDK currently only provides a URL link to the file, not the file object itself like arraybuffer/blob. - To obtain the file object directly, options include using HTTP API + JWT or involving the Server. - There isn't a direct method to obtain the file object from the Client Web SDK.
Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more