How can I useFetcher
to retrieve binary data?
#2618
Unanswered
connor4312
asked this question in
Q&A
Replies: 2 comments 3 replies
-
Just like loaders and actions, If you need non-JSON data, you will need to use the standard It would be nice if Remix honored the |
Beta Was this translation helpful? Give feedback.
2 replies
-
Is there any update on this? or is there any code example available for binary data use case? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I have a large data structure that one of my API routes is packing into a binary response. On that response, in spite of setting its
Content-Type
toapplication/octet-stream
, it gets passed as a string in the fetcherdata
.Is there a way to get around this and access it as an arrayBuffer or uint8array?
Beta Was this translation helpful? Give feedback.
All reactions