Replies: 2 comments 8 replies
-
if you write the buffer to disk, and then load it with stbi_load, what happens? |
Beta Was this translation helpful? Give feedback.
5 replies
-
I upload the minimum test code to repoduce. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi, I tried to load image with a base64 encoded string with my base64 decode function and
stbi_load_from_memory
, but failed withunknown marker
orexpected marker
.However, when I write the decoded buffer to disk, it display normally with windows image displayer.
So the base64 decode function should be fine.
I couldn't figure out what I do wrong.
The base64 encoded uri I used was read from a gltf file.
Example here:
https://github.com/KhronosGroup/glTF-Sample-Models/blob/master/2.0/DamagedHelmet/glTF-Embedded/DamagedHelmet.gltf
Anyone has any ideas?
Heres my pseudo code:
Beta Was this translation helpful? Give feedback.
All reactions