Click here to Skip to main content
15,891,704 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
how to convert base 64 string to image file and save it using javascript or jquery
i am converting the image, which is getting uploaded from fileupload control
i am refreeing this article
https://developer.mozilla.org/en-US/docs/Web/API/FileReader
Posted
Updated 28-Jul-13 1:11am
v2
Comments
Joezer BH 28-Jul-13 7:50am    
What seems to be the problem then?
rocky_em 28-Jul-13 10:28am    
after converting the base 64 string into the image file and saving the file in the folder
i want to show the image like this with it source attribute like this http://mysitname/Images/Imagename1.png"

1 solution

Ever tried Google? So you expect us to enter for you your question in Google?
E.g. http://stackoverflow.com/questions/2820249/base64-encoding-and-decoding-in-client-side-javascript[^].
Cheers
Andi
 
Share this answer
 
Comments
rocky_em 28-Jul-13 10:28am    
i tried my friend i dont want to decode after converting the base 64 string into the image file and saving the file in the folder
i want to show the image like this with it source attribute like this http://mysitname/Images/Imagename1.png"
[no name] 28-Jul-13 10:47am    
that's not possible. once it is in base64 format you have to decode it to get the original image back.
rocky_em 28-Jul-13 11:09am    
or can i can i call server side fucntion from client side and then save the file in the folder so thet i can convert base 64 string into image file
Andreas Gieriet 28-Jul-13 11:25am    
I suggest you rephrase your "question" so it is clear what you want to achieve and what not.
Your original question is not really asking for anything conclusive. And please use proper spelling, capitalization and punctuation so it is clear what is a question and what is a statement.
Cheers
Andi
rocky_em 28-Jul-13 11:40am    
What i want is .
i am uploading ,an image and when the image is uploaded it is getting converted to "base 64 string"(data:image/svg+xml,%3C..%) now ,
what i want is
to convert the base 64 string(which is my image) i want to save it in my folder called image i want to achieve this using JavaScript or jquery

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900