appwrite / sdk-for-dart

[READ-ONLY] Official Appwrite Dart SDK 💙
https://appwrite.io
BSD 3-Clause "New" or "Revised" License
113 stars 17 forks source link

📚 Documentation: Client.call supports ResponseType.bytes but how to respond from server? #37

Closed kutoman closed 1 year ago

kutoman commented 1 year ago

💭 Description

The sdk supports calls like final respo = await client.call(HttpMethod.get, path: "myPath", responseType: ResponseType.bytes); but I can't figure out how a dart cloud function can respond accordingly. This is not tackled in the docs. Furthermore how can we send requests with byte data payloads?

👀 Have you spent some time to check if this issue has been raised before?

🏢 Have you read the Code of Conduct?

lohanidamodar commented 1 year ago

Hey, The dart cloud function can't yet respond in file. Also the call method is internal to handle API calls and supports bytes response when viewing and downloading files. If you do want the cloud functions to respond with Files, please create relevant issue in https://github.com/open-runtimes/open-runtimes repository.

kutoman commented 1 year ago

@lohanidamodar thanks for the clarification