Click here to Skip to main content
15,896,201 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
How to Image store in folder using JQuery in specific path.

Not Server Side.
Posted
Comments
What have you tried and where is the problem?

1 solution

You can use cookies or the localStorage. It's not possible to save the image file to a specific path on the client side, however.
To create a cookie, have a look here:
http://stackoverflow.com/questions/14573223/set-cookie-and-get-cookie-with-javascript[^]
And the localStorage:
To set a localStorage, use this code:
C#
localStorage.setItem('image', 'imageData');

And to get the image:
C#
if (localStorage.getItem('image')) { // check for existence
    var imageData = localStorage.getItem('image');
}

More information: http://www.webdesignerdepot.com/2013/04/how-to-use-local-storage-for-javascript/[^]
 
Share this answer
 

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