convert to base64 and send image using ajax in Javascript -



convert to base64 and send image using ajax in Javascript -

i need send selected image server, here have tried

here html part

<div class="row"> <input type="file" name="filupload" id="filupload" onchange="showimagepreview(this)"> <br /> <img id="imgprvw" alt="uploaded image preview" class="img-thumbnail" /> </div>

i need encoded image javascript variable,but have no idea

for uploading image on server need send image info via ajax server side.

for reference can see link :

http://www.sanwebe.com/2012/05/ajax-image-upload-and-resize-with-jquery-and-php

http://phppot.com/php/php-ajax-image-upload/

javascript ajax base64

Comments

Popular posts from this blog

c - Compilation of a code: unkown type name string -

java - Bypassing "final local variable defined in an enclosing type" -

json - Hibernate and Jackson (java.lang.IllegalStateException: Cannot call sendError() after the response has been committed) -