3 ms·
I have a beginner question - Can WebRTC be used as an alternative to sending base64-encoded images to a backend server for image processing? Is this approach r
by chompychop 1y ago
I have a beginner question - Can WebRTC be used as an alternative to sending base64-encoded images to a backend server for image processing? Is this approach recommended?
- actionfromafar 1y agoNow I have the question - when does one send base64-encoded images to a backend server?
- Spivak 1y agoThe OpenAI API is a pretty high-profile example of this existing in the real world. You use it in their conversations interface when you want to include images in the conversation. Discord also uses it for attachments https://discord.com/developers/docs/reference#image-data https://discord.com/developers/docs/reference#image-data. More generally it's when you want to send image data as part of a larger JSON blob.
- Sean-Der 1y agoDepends on your needs! https://github.com/pion/webrtc/tree/master/examples/save-to-disk https://github.com/pion/webrtc/tree/master/examples/save-to-... here is an example of a server that does what you need on the backend