i have html form with ENCTYPE="multipart/form-data" .It just contains the textbox of type 'file' which browses the file from local box.Here is the textbox code snippet
<td>
<input name="fileNameAttr" id="filePath" size="52" type="file" value="">
</td>
I browse the file some image file from local box. The moment i select the file, filePath gets populated in text box. Now on click of some button, i want to convert the image in to base64 String in javascript. I am not using HTML5. Can i achieve it in javascript?
i can see some solution on net using HTML5 but that does not solve my purpose. If i need to use some third party utility , i can do that.
EDIT:- looks like jquery can help with $.base64.encode( "this is a test" ); but how to use it with type="file"?