Training, Open Source computer languages
PerlPHPPythonMySQLApache / TomcatTclRubyJavaC and C++LinuxCSS 
Search for:
Home Accessibility Courses Diary The Mouth Forum Resources Site Map About Us Contact
 
For 2023 (and 2024 ...) - we are now fully retired from IT training.
We have made many, many friends over 25 years of teaching about Python, Tcl, Perl, PHP, Lua, Java, C and C++ - and MySQL, Linux and Solaris/SunOS too. Our training notes are now very much out of date, but due to upward compatability most of our examples remain operational and even relevant ad you are welcome to make us if them "as seen" and at your own risk.

Lisa and I (Graham) now live in what was our training centre in Melksham - happy to meet with former delegates here - but do check ahead before coming round. We are far from inactive - rather, enjoying the times that we are retired but still healthy enough in mind and body to be active!

I am also active in many other area and still look after a lot of web sites - you can find an index ((here))
Saving image as base64

Posted by Socrates (Socrates), 7 January 2008
Hi 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 2008
Sounds 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.



This page is a thread posted to the opentalk forum at www.opentalk.org.uk and archived here for reference. To jump to the archive index please follow this link.

You can Add a comment or ranking to this page

© WELL HOUSE CONSULTANTS LTD., 2024: Well House Manor • 48 Spa Road • Melksham, Wiltshire • United Kingdom • SN12 7NY
PH: 01144 1225 708225 • FAX: 01144 1225 793803 • EMAIL: info@wellho.net • WEB: http://www.wellho.net • SKYPE: wellho