Replies: 2 comments 3 replies
-
Might be continued here: unjs/unstorage#222 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hey community 👋
I have a very special problem and maybe you can help.
I'm using the Nitro useStorage feature for assets in Nuxt.js (server-side / api) deployed on Vercel.
When running something like
await useStorage('assets:public').getItem('logo.png')
it returns the stringof that file which is correct. But unfortunately image data is usually not utf8 so what I get when converting it
into a buffer to use it in PDFkit I'm getting an
Unknown image format
error.Is there any way to set encoding
getItem()
should return data?Any help is highly appreciated, thanks!
Beta Was this translation helpful? Give feedback.
All reactions