Hello everyone!
I was reading about the binary plugin and decided to make a test to learn how to use it, at the moment I have managed to take a snapshot and read/load the binary output with Base64.
But reading the Construct manual there was something about base64 not being the best way to manage binary (or maybe I misunderstood the text).
I want to POST .json strings with profile pictures to firebase. is base64 a good method or do you know a better way to achieve this?
I'll share you my online demo and my .C3P file with comments if someone may find it useful.
online demo:
https://binarydata.netlify.com/
.c3p file:
https://drive.google.com/file/d/1z260AtPfKQznUFEvc9Zszz2u3IczUMjN/view?usp=sharing
Develop games in your browser. Powerful, performant & highly capable.
update: This is the link to a correction on the .c3p:
https://drive.google.com/file/d/1q08Qz5RAUlbjbuZa7Z37OG6cfQgkCjSd/view?usp=sharing
Base64 is not a good choice, because it's very bloated. It's ok for small images, but a screenshot in Base64 format can be many megabytes.
You can now post binary data to url with AJAX. But I don't know if Firebase supports this.