php - Most efficient way of sending very large base64 data over ajax -


i looking send giant string on ajax server php handle it.

there no point in pasting base64 data talking high quality images 2000 * 2000 px in size.

the way im doing @ moment doesnt work unless im on fast internet connection, takes long times out. im wondering there better way it?

convertimgtobase64(imageurl, function(base64img){     console.log(base64img);      //alert(base64img);            $.ajax({         url: 'index.php?route=product/product/image_upload',         type: 'post',         datatype: 'json',         data: {             img : base64img,         },         success: function(json) {          //stuff          }     }); }); 


Comments

Popular posts from this blog

python - pip install -U PySide error -

arrays - C++ error: a brace-enclosed initializer is not allowed here before ‘{’ token -

cytoscape.js - How to add nodes to Dagre layout with Cytoscape -