# How to create a texture from a image getting by ajax

**URL:** https://discourse.vtk.org/t/how-to-create-a-texture-from-a-image-getting-by-ajax/2940
**Category:** Web
**Created:** [April 2, 2020, 9:45am UTC](https://discourse.vtk.org/t/how-to-create-a-texture-from-a-image-getting-by-ajax/2940 "2020-04-02T09:45:32Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![xuexl](https://discourse.vtk.org/letter_avatar_proxy/v4/letter/x/3ec8ea/32.png) [@xuexl](https://discourse.vtk.org/u/xuexl)
#### Post date: [April 2, 2020, 9:45am UTC](https://discourse.vtk.org/t/how-to-create-a-texture-from-a-image-getting-by-ajax/2940/1 "2020-04-02T09:45:32Z")

</div>

Getting the data that contains obj, mtl and jpg from the server by ajax, the data of obj and mtl can handle in the right way, but no texture.  
And i want to create a vtkTexture Object to stick on the vtkActor from the jpg data returning from ajax, I have tried many times, it is failure until now, anybody know this.
