Sharepoint Forum

Ask Question   UnAnswered
Home » Forum » Sharepoint       RSS Feeds

Upload photo inside wss and sharepoint

  Asked By: Harshini    Date: Nov 29    Category: Sharepoint    Views: 1815

Do anyone help me to solve problem in WSS. Actually i want upload photo into
people and group list in sharepoint. My client using WSS server. I don't know
how to upload using wss..
Do anyone can tell me the step?



3 Answers Found

Answer #1    Answered By: Darrin Massey     Answered On: Nov 29

Perhaps the code in my Image Upload Web
Part<http://www.codeplex.com/ImageUpload> can help.

Answer #2    Answered By: Jeffrey King     Answered On: Nov 29

Actually i'm don't want upload  image in webpart, I want upload photo  inside the
PEOPLE and GROUP site. My company using wss  3.0 server. I don't where i have to
upload. One more thing i got coding form one blog. but there they didn;t mention
where i have to put the code.
Above is the code. DO u have any idea where i have to paste this code? Hope i
will get the solution
Microsoft.SharePoint.SPList list  = web.Lists["User Information List"];
Microsoft.SharePoint.SPUser u = web.SiteUsers[“domain\\user1”];
Microsoft.SharePoint.SPListItem it = list.Items.GetItemById(u.ID);

it[“Picture”] =”http://sharepointApp/sites/wss/photos/abc.jpg”;

Answer #3    Answered By: Kendrick Townsend     Answered On: Nov 29

PEOPLE and GROUP is a list, not a site. The image needs to be stored in some
location in order to be displayed. My code shows how to upload  the image to a
picture library.

I'm not sure your code is correct. To get the User Info list, you should use the
SiteuserInfoList property of the SPWeb object. In any case, your code needs to
be in a location in which it can be executed. Either a Web Part, an application
page, a console application or STSADM extension (to name a few).

Didn't find what you were looking for? Find more on Upload photo inside wss and sharepoint Or get search suggestion and latest updates.