Solo maker of mailshld.com, 3o2.co & ziip.link. Currently building kiwicart.io and helping localize the Internet at WOVN.io. Occasionally writing on Dev.to.
Sounds like a point! 🙂Tbh, I couldn't find a consensus about what would be the best-practice for that, so I'm curious about how would you do it. Would you mind to give me an example?
I took example from the Google Drive API. You can easily send files + metadata (even as JSON!) without any encoding/decoding and you have binary data right in your API.
According to storing files in database as base64 strings, take a look here.
What do you think about that? 😃 I think you can gain a lot of performance this way.
Solo maker of mailshld.com, 3o2.co & ziip.link. Currently building kiwicart.io and helping localize the Internet at WOVN.io. Occasionally writing on Dev.to.
Not really sure about the real benefit of not using base64 as a transport wrapper when posting data to the API (in my particular scenario) , but I’m definitely convinced of the advantages of storing the binary instead.
Thanks a lot for the contribution. 🙌 I’ll take the opportunity with a new project here and try this approach out.
Solo maker of mailshld.com, 3o2.co & ziip.link. Currently building kiwicart.io and helping localize the Internet at WOVN.io. Occasionally writing on Dev.to.
Sure, I didn’t take it wrong! 😉 It’s awesome have the chance to see what other devs would do to solve situations we’ve faced before. 🤘 Really glad you’ve commented.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Sounds like a point! 🙂Tbh, I couldn't find a consensus about what would be the best-practice for that, so I'm curious about how would you do it. Would you mind to give me an example?
I took example from the Google Drive API. You can easily send files + metadata (even as JSON!) without any encoding/decoding and you have binary data right in your API.
According to storing files in database as
base64
strings, take a look here.What do you think about that? 😃 I think you can gain a lot of performance this way.
Interesting, man!
Not really sure about the real benefit of not using base64 as a transport wrapper when posting data to the API (in my particular scenario) , but I’m definitely convinced of the advantages of storing the binary instead.
Thanks a lot for the contribution. 🙌 I’ll take the opportunity with a new project here and try this approach out.
Yeah I don't mean that your approach is wrong, it will surely work! I just wanted to propose a better approach 😃
Sure, I didn’t take it wrong! 😉 It’s awesome have the chance to see what other devs would do to solve situations we’ve faced before. 🤘 Really glad you’ve commented.