receive blob over jquery ajax

Solutions on MaxInterview for receive blob over jquery ajax by the best coders in the world

showing results for - "receive blob over jquery ajax"
Ada
16 Jan 2019
1 jQuery.ajax({
2            url:'https://images.unsplash.com/photo-1465101108990-e5eac17cf76d?ixlib=rb-0.3.5&q=85&fm=jpg&crop=entropy&cs=srgb&ixid=eyJhcHBfaWQiOjE0NTg5fQ%3D%3D&s=471ae675a6140db97fea32b55781479e',
3            cache:false,
4            xhrFields:{
5                responseType: 'blob'
6            },
7            success: function(data){
8                var img = document.getElementById('img');
9                var url = window.URL || window.webkitURL;
10                img.src = url.createObjectURL(data);
11            },
12            error:function(){
13                
14            }
15        });