我正在尝试使用kreait / firebase-php在Firebase上存储base64图像。 Here我找到了一种将base64上载到Firebase的解决方案,但不幸的是,我无法使用firebase-php库弄清楚如何做到这一点。如何在图书馆中使用它?
答案 0 :(得分:1)
我找到了怎么做。似乎只需替换“'data:image / jpeg; base64”,然后将空格转换为“ +”并直接写入文件即可。
这是示例代码。
//Errors from Firefox Console:
THREE.MeshLambertMaterial: 'normalMap' is not a property of this material.
three.min.js:597:68
THREE.FBXLoader: SpecularFactor map is not supported in three.js, skipping texture. FBXLoader.js:646:15
THREE.FBXLoader: EmissiveFactor map is not supported in three.js, skipping texture. FBXLoader.js:646:15
THREE.WebGLRenderer: Texture has been resized from (1000x667) to (512x512).
//including previous errors that don't appear to affect visualization:
SyntaxError: export declarations may only appear at top level of a module constants.js:1
SyntaxError: import declarations may only appear at top level of a module