Best approach to handle image source from base64? #127
-
Missing some sort of high level user documentation (as opposed to api doc) with real world examples, specifically wondering what the best approach is to process Image from base64 source to file on disk with MagicScaler. So far I have something along the lines of the following, any suggestions for better handling?
|
Beta Was this translation helpful? Give feedback.
Answered by
saucecontrol
Oct 17, 2023
Replies: 1 comment
-
That looks right to me. As long as the base64-encoded data contains a normal image, decoding it to a byte array and passing that in will work the same as if you had the image in a file or |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
andrerom
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
That looks right to me. As long as the base64-encoded data contains a normal image, decoding it to a byte array and passing that in will work the same as if you had the image in a file or
Stream
of some kind.