how to set selected image from brwose button into bytes
my doubt is i am seleected image from browse button before submitting image is converted bytes.So back end it stores like string. In my js function i wrote below code.If i submit its converts into bits,i want byte information.Tha t byte information how can i set spring mvc controller.
Please help me.
Code:
function readURL(input) {
if (input.files && input.files[0]) {
var reader = new