appwrite/tests/resources/functions/binary-response/index.js

5 lines
140 B
JavaScript
Raw Normal View History

2025-07-10 10:55:45 +00:00
module.exports = async(context) => {
const bytes = Buffer.from(Uint8Array.from([0, 10, 255]));
return context.res.binary(bytes);
};