CodePaste Logo
New Snippet New Snippet Recent Snippets Recent Snippets My Snippets My Snippets Web Code Search Snippets Search
Sign inor Register
Format:
Recent snippets matching tags of PictureUpload
C#
namespace SharePointUpload {
    class Program {
        static void Main(string[] args) {
            ServicePointManager.ServerCertificateValidationCallback = new System.Net.Security.RemoteCertificateValidationCallback((a, b, c, d) => { return true; });
            WEB_REFERENCE_NAME.Imaging img = new WEB_REFERENCE_NAME.Imaging();
            img.UseDefaultCredentials = true;
            img.Url = "SHAREPOINT_SITE/_vti_bin/imaging.asmx";
            try {
                foreach (string filename in Directory.GetFiles("LOCAL_FOLDER")) {
                    img.Upload("PICTURE_LIBRARY_NAME", "PICTURE_FOLDER_IF_ANY", File.ReadAllBytes(filename), Path.GetFileName(filename), true);
by Veshiy0leg   May 31, 2011 @ 2:26pm
155 Views
no comments
 
C#
namespace SharePointUpload {
    class Program {
        static void Main(string[] args) {
            ServicePointManager.ServerCertificateValidationCallback = new System.Net.Security.RemoteCertificateValidationCallback((a, b, c, d) => { return true; });
            WEB_REFERENCE_NAME.Imaging img = new WEB_REFERENCE_NAME.Imaging();
            img.UseDefaultCredentials = true;
            img.Url = "SHAREPOINT_SITE/_vti_bin/imaging.asmx";
            //img.up
            try {
                //var x = img.GetListItems("Implementation Team Photos", "");
by Veshiy0leg   May 31, 2011 @ 2:25pm
104 Views
no comments
 
brought to you by:
West Wind Techologies



If you find this site useful and use it frequently please consider making a donation to support this free service.
Donate