Saving image as base64
Posted by Socrates (Socrates), 7 January 2008Hi folks - Glad to look in on y'all.
We are developing a means by which a user can upload an image which is then saved in the database as Base64 code.
The Base64 code of the image serves as the login 'password', to enable access to the relevant record next time the image is uploaded.
A customer can therefore upload any image on his computer as a password 'key' for accessing a database record, and in fact any image on the internet could so be used, without having to remember a long password.
For extra security any two images can be used in sequence.
So much so good.
We would also like to develop a downloadable utility whereby a user can simply 'paste' any local or internet image into a box to unlock and display the database record, as an alternative to using the image upload procedure.
If anyone has any ideas in this direction it would be interesting to share them on this forum.
Posted by admin (Graham Ellis), 8 January 2008Sounds like a neat idea. I wonder why you need to encode the images as you save them to the database - just use a blob. And you probably want to be aware of the features of lossy image handling which could be used to your benefit to provide non-working examples; either a boon or a nightmare.
You may come across other issues of course - you have given this far more thought than the couple of minutes I have put in - but it should be easy enough to do some experiments to see how it works.
PH: 01144 1225 708225 • FAX: 01144 1225 793803 • EMAIL: firstname.lastname@example.org • WEB: http://www.wellho.net • SKYPE: wellho