Skip to content
This repository has been archived by the owner on Feb 24, 2024. It is now read-only.

how to get mimetype from binary data like image #612

Closed
y0zong opened this issue Apr 28, 2023 · 1 comment
Closed

how to get mimetype from binary data like image #612

y0zong opened this issue Apr 28, 2023 · 1 comment

Comments

@y0zong
Copy link

y0zong commented Apr 28, 2023

I read save image in bytea but how to get mimetype of a file?

@steve-chavez
Copy link
Member

You mean how to insert the mimetype of the file? If so, right now you could pass it through a header(not the body).

To avoid insert bytea, you could also use base64 encoding like mentioned on PostgREST/postgrest#922 (comment)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

3 participants