# GLTFLoader load gltf itself istead link

**URL:** <https://discourse.threejs.org/t/gltfloader-load-gltf-itself-istead-link/58100>\
**Category:** Questions\
**Tags:** loaders, textures, showcase\
**Created:** [November 13, 2023, 8:15pm UTC](https://discourse.threejs.org/t/gltfloader-load-gltf-itself-istead-link/58100 "2023-11-13T20:15:43Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![vitorbarbosa123](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/vitorbarbosa123/32/41893_2.png) [@vitorbarbosa123](https://discourse.threejs.org/u/vitorbarbosa123)\
**Post date:** [November 13, 2023, 8:15pm UTC](https://discourse.threejs.org/t/gltfloader-load-gltf-itself-istead-link/58100/1 "2023-11-13T20:15:43Z")

</div>

Hi, I’m a beginner in using Three.js.

I was consulting the GLTF loader documentation and saw that the example given only renders a GLTF using the link where it is. In my case, gltf is a response to a request and when trying to pass this request to load it does not allow it. I needed help figuring out how to make this work, since I can’t change the backend logic, so it will always return gltf as a response.

// Edit  
GLTF has a separate texture that is also a response to a request.

// Edit 2  
I tried using load.parse, passing the GLTF as ArrayBufer and the texture as DataURL, but this was the result:

```javascript
// MY CODE
loader.parse(
    await gltfBlob.arrayBuffer(),
    '',
    // called when the resource is loaded
    function (gltf) {
      gltf.scene.traverse(function (node) {
        if (node.isMesh) {
          mesh = node;
          // console.log(currentTexture)

          const textureLoader = new THREE.TextureLoader();
          const newTexture = textureLoader.load(URL.createObjectURL(new Blob([textureArrayBuffer])));

          newTexture.flipY = false;
          mesh.material.map = newTexture;
          mesh.material.needsUpdate = true;

```

Result using gltfBlog.arrayBuffer and texture as dataURL

 ![image](https://canada1.discourse-cdn.com/flex035/uploads/threejs/original/3X/c/a/ca03ea774505b1ebf23712cea2ea67e678ed3347.png)

---

<div class="post-metadata">

**Author:** ![mjurczyk](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/mjurczyk/32/10995_2.png) [@mjurczyk](https://discourse.threejs.org/u/mjurczyk)\
**Post date:** [November 13, 2023, 8:30pm UTC](https://discourse.threejs.org/t/gltfloader-load-gltf-itself-istead-link/58100/2 "2023-11-13T20:30:58Z")

</div>

(Please use proper tags - this is art, belongs in #Showcase 🥹🙏❤)
