-
FEATURED COMPONENTS
First time here? Check out the FAQ!
Hi, I'd like to enabling the users to choose an avatar from images/avatars directory located to the server. I mean, where do I start?
Thanks, Luca
Hello lramellavotta,
I would recommend saving the images in a database as BLOB.
http://www.mkyong.com/hibernate/hibernate-save-image-into-database
And then it is pretty simple to load the images:
https://www.zkoss.org/javadoc/latest/zk/org/zkoss/image/AImage.html
If you need more help or still want to load the images from the directory let me know.
Best Regards,
Darksu
Hey Luca,
I should just fetch your avatars from the server side and then show them in the gui as images.
If you google you can find easlily on how to fetch files from a location.
You can use a grid with custom renderer (like this you can add more avatars to one row) and a button under the image to choose it, or add an event on the image itself.
Personally I will not show what's on the server side itself like folders,...
Is this enough or do you need more exact details?
Chill.
Thank you for your many comments. I tried to store image in BLOB.
Luca
Asked: 2016-09-27 15:07:16 +0800
Seen: 23 times
Last updated: Sep 28 '16
How to display data during iterator loop?
zk.wpd JS error, with window inside window
limit when implement zAu.ajaxErrorHandler
wrong valueException come in front of modal popup [closed]
Use parameters in a conditional @command
Problems with multiple press and onCtrlKey