Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

Howto upload and download a picture of a user by a script over Rest API?

Unfortunatly Jazz is storing the pictures of a user in the same format and size than the user has uploaded it. Many user are not able or to lazy to read that the picture should be croped to 100x100 pixel so the image is not larger than 4kByte. I saw pictures up to 10MByte!!

If you now have e.g. a sprint plan with pictures of the team members and this pictures are several 100kBytes or megabytes the load of the plan is slowing down dramatically over remote lines. If they are not cached locally or in a proxy server, they will be loaded at each browser refresh.

Of course it would be very elegant, if the upload function of the picture would store a thumbnail of the picture with 100x100 pixels and in JPG format, but this is not the case yet. (Maybe I will write an enhancement request if thjere is not already one)

I would like to write a scripts (perl if possible) to download all pictures of the users where the size is larger than e.g. 10kB, crop them to 100x100pixels, store it as JPG and upload it back to JTS.
This job I like to run regularly on the windows scheduler.

Is there a documented or undocumented REST interface where I can do this?
If not possible over a script, can you provide me the entry point for the Jazz API? It must not be an official interface.

0 votes

Comments

Thanks for the link. I gave my comments.

I would still like to get information about an REST-API or JAVA-API function for down and upload the picture of a user, because we have hunderts of pictures already in the system. And it looks like the new functionality will work on upload of a new picture, so all pictures already in the DB will remain at current size.

Hi Guido,

I looked into it today. I had the piece for downloading already. I managed to upload images today. I will try to blog about it tomorrow and attach a link here.


Accepted answer

Permanent link
Guido, please see this post for API code that worked for me: http://rsjazz.wordpress.com/2013/01/08/maintaing-user-photos-with-the-plain-java-client-libraries/
Guido Schneider selected this answer as the correct answer

1 vote

Your answer

Register or log in to post your answer.

Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details

Question asked: Jan 05 '13, 11:14 a.m.

Question was seen: 5,547 times

Last updated: Jan 08 '13, 9:51 a.m.

Confirmation Cancel Confirm