# Does gltf loader support loading separate blob stream?

**URL:** <https://forum.babylonjs.com/t/does-gltf-loader-support-loading-separate-blob-stream/26602>\
**Category:** Questions\
**Tags:** gltf\
**Created:** [January 10, 2022, 6:33am UTC](https://forum.babylonjs.com/t/does-gltf-loader-support-loading-separate-blob-stream/26602 "2022-01-10T06:33:24Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![RavenLee](https://avatars.discourse-cdn.com/v4/letter/r/c68b51/32.png) [@RavenLee](https://forum.babylonjs.com/u/RavenLee)\
**Post date:** [January 10, 2022, 6:33am UTC](https://forum.babylonjs.com/t/does-gltf-loader-support-loading-separate-blob-stream/26602/1 "2022-01-10T06:33:24Z")

</div>

Hi team,

Say I have a group of gltf files exported separately from blender, for example =\> mesh.gltf, mesh.bin and mesh.png.

when I load from local, it works fine since the gltf loader trace the relative path to find data buffer and textures. While when I download them separately via blob, for example, mesh.gltf =\> blob:[http://10.0.0.117:4000/xxxxxx](http://10.0.0.117:4000/xxxxxx), mesh.bin =\> blob:[http://10.0.0.117:4000/yyyyyy](http://10.0.0.117:4000/yyyyyy), mesh.png =\> blob:[http://10.0.0.117:4000/zzzzzz](http://10.0.0.117:4000/zzzzzz). it cannot trace the path of bin and png when using SceneLoader API. Any idea to load the seprately gltf via blob? thank you in advance for your reply.

---

<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:** [January 10, 2022, 3:32pm UTC](https://forum.babylonjs.com/t/does-gltf-loader-support-loading-separate-blob-stream/26602/2 "2022-01-10T15:32:46Z")

</div>

Pinging @bghgary

---

<div class="post-metadata">

**Author:** ![bghgary](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/bghgary/32/48532_2.png) [@bghgary](https://forum.babylonjs.com/u/bghgary)\
**Post date:** [January 11, 2022, 11:09pm UTC](https://forum.babylonjs.com/t/does-gltf-loader-support-loading-separate-blob-stream/26602/3 "2022-01-11T23:09:20Z")

</div>

The easiest solution is to use [`glTFFileLoader.preprocessUrlAsync`](https://doc.babylonjs.com/typedoc/classes/babylon.gltffileloader#preprocessurlasync) to map the relative urls referenced in the glTF to the blob urls. Does that work?

---

<div class="post-metadata">

**Author:** ![RavenLee](https://avatars.discourse-cdn.com/v4/letter/r/c68b51/32.png) [@RavenLee](https://forum.babylonjs.com/u/RavenLee)\
**Post date:** [January 13, 2022, 8:30am UTC](https://forum.babylonjs.com/t/does-gltf-loader-support-loading-separate-blob-stream/26602/4 "2022-01-13T08:30:57Z")

</div>

Thanks for your reply! But… I have no idea about how to deal with SceneLoader.LoadAssetContainerAsync() if I use [`glTFFileLoader.preprocessUrlAsync`](https://doc.babylonjs.com/typedoc/classes/babylon.gltffileloader#preprocessurlasync) for remapping the uri. Any place to find an example?

---

<div class="post-metadata">

**Author:** ![Deltakosh](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/deltakosh/32/26635_2.png) [@Deltakosh](https://forum.babylonjs.com/u/Deltakosh)\
**Post date:** [January 13, 2022, 3:52pm UTC](https://forum.babylonjs.com/t/does-gltf-loader-support-loading-separate-blob-stream/26602/5 "2022-01-13T15:52:05Z")

</div>

Ideally I would encourage you to try to use it in the Playground and report it if it does not work so we can easily fix the code for you

---

<div class="post-metadata">

**Author:** ![bghgary](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/bghgary/32/48532_2.png) [@bghgary](https://forum.babylonjs.com/u/bghgary)\
**Post date:** [January 13, 2022, 4:31pm UTC](https://forum.babylonjs.com/t/does-gltf-loader-support-loading-separate-blob-stream/26602/6 "2022-01-13T16:31:15Z")

</div>

Do something like what documented here:  
[https://doc.babylonjs.com/divingDeeper/importers/loadingFileTypes#advanced-usage](https://doc.babylonjs.com/divingDeeper/importers/loadingFileTypes#advanced-usage)
