Replies: 1 comment
-
To send an image in base64, you probably first want to encode it in a specific file format like PNG: let mut bytes: Vec<u8> = Vec::new();
img.write_to(&mut Cursor::new(&mut bytes), image::ImageOutputFormat::Png)?; Then it is just a matter of base64 encoding the |
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
-
i want to tranfer an image through tcp
thank you very much
Beta Was this translation helpful? Give feedback.
All reactions