I want convert my base64 string in byte array so that I can sent it to server to store in database...document.getElementById('userImageId').src
in extjs returens base64 string like data:image/png;base64,iVBORw0KGgoAAAANSU...........
..How would I convert this into byte array ?
Asked
Active
Viewed 402 times
0

cweiske
- 30,033
- 14
- 133
- 194

Abhijit Muke
- 1,194
- 3
- 16
- 41
-
2why don't you send the base64 string to server and decode it there ? – Diode Apr 19 '13 at 08:05
-
It will be much easier and simpler to send it as base64 and decode it on the server. – Vatev Apr 19 '13 at 08:51
-
take a look at this http://stackoverflow.com/questions/16245767/creating-a-blob-from-a-base64-string-in-javascript – Michael Warner Mar 30 '17 at 12:37