# Export glb with NullEgine

**URL:** <https://forum.babylonjs.com/t/export-glb-with-nullegine/32459>\
**Category:** Questions\
**Tags:** exporter, nullengine\
**Created:** [July 25, 2022, 6:30am UTC](https://forum.babylonjs.com/t/export-glb-with-nullegine/32459 "2022-07-25T06:30:40Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![dongqui](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/dongqui/32/21280_2.png) [@dongqui](https://forum.babylonjs.com/u/dongqui)\
**Post date:** [July 25, 2022, 6:30am UTC](https://forum.babylonjs.com/t/export-glb-with-nullegine/32459/1 "2022-07-25T06:30:40Z")

</div>

Hi,  
Exporting GLB on serverside/Node.js doesn’t work.

It works on browser, when I implement exactly same code below.

> **[Babylon.js Playground](https://playground.babylonjs.com/#5KB36A)**
>
> Babylon.js playground is a live editor for Babylon.js WebGL 3D scenes

In serverside, I got empty data.

```auto
BJS - [15:14:55]: createNodeAsync: Light falloff for Lamp does not match the KHR_lights_punctual specification!
GLTFData { glTFFiles: { 'test.glb': {} } }

```

---

<div class="post-metadata">

**Author:** ![nogalo](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/nogalo/32/120_2.png) [@nogalo](https://forum.babylonjs.com/u/nogalo)\
**Post date:** [July 25, 2022, 8:00am UTC](https://forum.babylonjs.com/t/export-glb-with-nullegine/32459/2 "2022-07-25T08:00:03Z")

</div>

Hi.

GLTF2Export and how it works on browser side is pretty much it creates an anchor () element and initiates download. So pretty much it’s doing this

![image](https://us1.discourse-cdn.com/flex024/uploads/babylonjs/original/3X/f/d/fda654183657f404a912bddf133c307a7c439dec.png)

But this means that the function interacts with DOM, which on server side is not available. So I don’t think you can use that approach on server side. I had similar issue lately, and you can check out here how I solved it.

> [@GLTF2Export.GLBAsync to specific folder](https://forum.babylonjs.com/t/gltf2export-glbasync-to-specific-folder/31674/4):
>
> Okay. Managed to figure it out. If anyone encounters same scenario in the future, this is my solution. I’ve created a File object on the front and sent the data to the node.js server, where I created a write stream and stored it at the specific location. // on the front-end [image] // on the back-end [image] On the server side, you also need to add middleware for processing request body as a Buffer. [image] Turned out to be fairly simple, but it gave me a lot of headache till this point x…

---

<div class="post-metadata">

**Author:** ![carolhmj](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/carolhmj/32/25918_2.png) [@carolhmj](https://forum.babylonjs.com/u/carolhmj)\
**Post date:** [August 23, 2022, 6:06pm UTC](https://forum.babylonjs.com/t/export-glb-with-nullegine/32459/3 "2022-08-23T18:06:54Z")

</div>

Hello @dongqui just checking in if you need any more help with this
