© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
SupabaseS
Supabase•3y ago•
4 replies
conrad

Saving bytea field from supabase-js

What is the correct way of saving a JavaScript Uint8Array to a Postgres bytea column using supabase-js?
If I pass a raw JavaScript Uint8Array to upsert() https://supabase.com/docs/reference/javascript/upsert it seems the byte array values get mangled when saved in Postgres
Screenshot_2024-01-04_at_4.02.09_PM.png
Upsert data | Supabase
Upsert data | Supabase
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

supabase broadcast message saving
SupabaseSSupabase / help-and-questions
14mo ago
AuthApiError using supabase-js from node
SupabaseSSupabase / help-and-questions
4y ago
mapping from supabase-js to REST
SupabaseSSupabase / help-and-questions
4y ago
Migrating from anon > publishable key supabase JS
SupabaseSSupabase / help-and-questions
6mo ago