canvas-2 image

How to Store Canvas Image ?

Send request using ajax: var canvas=document.getElementById('can'); var dataURL = canvas.toDataURL("image/png"); var data = { img64:dataURL.replace(/^data:image\/(png|jpg);base64,/, ""), }; $.ajax( { type: 'POST', url: "/FMVMLAST/Canvasimage", data:data, success: function(data){} }); Edit your struts.xml file
Read more
Sorted Array

Why is processing a sorted array faster than an unsorted array?

Answer: What is Branch Prediction? Consider a railroad junction: Now for the sake of argument, suppose this is back in the 1800s – before long distance or radio communication. You are the operator of a junction and you hear a train coming. You have no idea which way it will go. You stop the train to ask the captain which direction he wants. And then you set the switch appropriately.
Read more