How to create a base64 file from nothing?
问题 I want to be able to create base64 files (images, sounds, video) without any previous models. For example, if I want to create a base64 64px*64px red image, how can I do this without creating first a canvas? I would also like to create a sound (note) with no model. I've searched on Google for some documentation on base64 encoding but I did not seem to find specific things for my need. I am going to use Javascript, but I guess this should be the same for every language. 回答1: Try function