© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
SupabaseS
Supabase•4y ago•
1 reply
Jan

Solved - Invoke edge function returning buffer-blob

Hi there,

I want to invoke an edge function that returns a buffer/blob of a created File. If I call the function via REST and save the output directly to a file it works great. But If I call the function with "supabase-js@2.0.0-rc.10" and trying to save the data-result the file is always corrupted. Any ideas what to do?

Example snippet:
supabase.functions.invoke<Blob>('createInvoice', {
      body: { invoiceId: invoiceId }
}).then(res => FileSaver.save(res.data))
supabase.functions.invoke<Blob>('createInvoice', {
      body: { invoiceId: invoiceId }
}).then(res => FileSaver.save(res.data))


Best regards,
Jan
Supabase banner
SupabaseJoin
Supabase gives you the tools, documentation, and community that makes managing databases, authentication, and backend infrastructure a lot less overwhelming.
45,816Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Cannot invoke edge function, using flutter and supabase_flutter package.
SupabaseSSupabase / help-and-questions
4y ago
Edge Function returning 500 when querying table (Supabase)
SupabaseSSupabase / help-and-questions
10h ago
Edge Function
SupabaseSSupabase / help-and-questions
5mo ago
Invoke Edge Fn from Postgres Fn
SupabaseSSupabase / help-and-questions
4y ago