Tambrea Cosmin wrote:
> Hi,
> 
> I have started today to investigate the issue XX-5536 - Allow users to 
> upload a picture to their profile. I have some questions/proposals:
>  - I considered that the upload image option should appear on user 
> portal My Information page. I have designed the new UI for this page( 
> http://track.sipfoundry.org/secure/attachment/20628/avatar.jpg);

Looks nice.

>  - I believe we should store the uploaded images on server, with the 
> name generated from the user ID(using the hash generating algorithm 
> available on http://en.gravatar.com/site/implement/java);

We should never store gravatars. We should just get them from gravatar
website when needed.

We should only store the images that people upload (if we support updating
images) - maybe it would be good to start with gravatar support since it's
much simpler and later add support for uploading images.

As of the storage of uploaded images the other option is of course to store
it as a blob in DB - in this way you don't have to worry about file
management. Did you look into that? (google for BLOB hibernate)

>  - I searched on sipx code  and found that an image 
> service(InternalImageService) is already implemented and I hope to use 
> it for locating the avatar on server;
>  - I believe that it's not necessary to store any information into DB 
> about the relation between user and the image name, because the image 
> stored on server will have an unique name generated by the hash algorithm;

That only works for gravatars. You do need an explicit reference for
uploaded images: username can change, user e-mail can change as well.

>  - If this new avatar section would appear on user portal, then it 
> should be done using GWT(?);

Yes.

>  - A resize of the image should be done if the image is too big(should 
> be resized to a few kB);
>  - What would be the location on server where the images would be stored?

See my comment on storing them in DB. That might work like more work
initially but helps with updates and backup...

>  - I didn't exactly understand the Peter's comment: "The user can/would 
> use their XMPP based IM client (connected to OpenFire) to manage their 
> picture (Avatar). SipX should access the same Avatar (file) for 
> viewing/updating purposes. ". Should this avatar be the same as the 
> image used in XMPP?
> 

I would not worry about it now.
If sipx/openfire plugin (made by mraga TM) were to offer XML/RPC to set
avatar then sipXconfig/openfire pluging (made by mircea TM) could use that.
But let's just add support for user photos first and then worry about which
plug-ins can use them.
D.


_______________________________________________
sipx-dev mailing list [email protected]
List Archive: http://list.sipfoundry.org/archive/sipx-dev
Unsubscribe: http://list.sipfoundry.org/mailman/listinfo/sipx-dev
sipXecs IP PBX -- http://www.sipfoundry.org/

Reply via email to