I'm developing an Application Page using Visual Studio 2012 for a SharePoint 2010 site. One of the features of this Page is to be able to upload image files to SharePoint for a Profile Picture image.
I already have code that successfully updates the profile property that tells SharePoint 2010 where to look for the user's profile image, yet the image is not uploaded to that location.
I've already tried using an
asp:FileUpload control and use its
ID property to save the image to the server, but I couldn't get it to recognize the
ID in the C# code behind file.
Is there something I'm missing, or an easy way to upload the image to either the SQL Server DB or SharePoint 2010 itself?