fix(ImageTo3D): enforce glb format in Meshy API payload
Build and Deploy / build-and-push (push) Successful in 46s
Build and Deploy / build-and-push (push) Successful in 46s
This commit is contained in:
+10
@@ -0,0 +1,10 @@
|
||||
const fs = require('fs');
|
||||
const fflate = require('fflate');
|
||||
|
||||
const zipObj = {};
|
||||
zipObj['model.glb'] = new Uint8Array([1, 2, 3, 4, 5]);
|
||||
|
||||
const zipped = fflate.zipSync(zipObj);
|
||||
const unzipped = fflate.unzipSync(zipped);
|
||||
|
||||
console.log(unzipped['model.glb']);
|
||||
Reference in New Issue
Block a user