Welcome Guest, Not a member yet? Register   Sign In
Display RAW image data in AJAX call via Image Manipulation Class
#1

[eluser]Unknown[/eluser]
I have a settup that runs a function to create a dynamic Image using the $this->load->library('image_lib'); function.

First I use a base image to resize, then add a watermark using functions from this page: http://ellislab.com/codeigniter/user-gui...e_lib.html

So this all works if I save the Image, but I want 'dynamic_output' which returns the raw data to the browser.

If i directly access the file, the image dispalys,
but when it's accessed via ajax, the output is the Raw Data.

I'm assuming this is something to do with headers, and I've exhausted all ways I can find to set the header types.

I'm using Jquery $.ajax to load the file.


I found .ajax as dataFilter: function , can I use some other jquery function here to convert the Raw data for output here?

Thanks

Symon :O)








Theme © iAndrew 2016 - Forum software by © MyBB