[ios][SharePoint]-Upload Image to SharePoint from IPhone App using Swift and ASP.NET WebApi


This article will show some simple steps to upload a picture, document to SharePoint Library using XCode Swift, Asp.net Web api. I will create Native IPhone app using swift language and another app will be asp.net mvc web api to receive images with other information and upload to SharePoint. Both the project are uploaded on below link.
Iphone Project   , Open in the Xcode and Build.
Asp.net Web Api – Project..   Host the Web Application on IIS and published.
I have used the below link to get help to create Iphone native app using swift language, very simple and helpful to create Iphone App.
Image upload example with Swift To Create From Scratch
Below is the Simple example to createWeb Api.
Tutorial How to Create Asp.net Web Api To Create from scratch.

We just need to edit the url of the web api, once the web api receive the request from IPhone app, it will save file locally, than call another function to read image convert and upload to SharePoint 2013.

let myUrl = NSURL(string: http://Webserver/UploadFilesWebApi/api/fileupload/uploadfile”);

I guess it will little helpful for the readers because I didnt find any tutorial to upload from iphone to SharePoint. Below I have mentioned some screen shot.s

 defineRouteInEmptyMvcProject image2

Advertisements

HTTP Error 503. The service is unavailable. (SharePoint 2010)…..


Recently I upgrade my SharePoint with some of my ad don’s with some installation of SQL server services. When I restart the services on the SharePoint Farm all my services suddenly stopped. Although I get the root cause why SP Services stop at instance.
But when I start and change the password of my farm administrator my central administration stops work with the following error message.

Service Unavailable
HTTP Error 503. The service is unavailable.

I checked all the services, In the IIS  checked the central web application which was working fine but when I scroll down to the application pool SharePoint Central Administration v4 & SharePoint Central Administration 80 become stop,

IIS APP pool SP Farm
IIS APP pool SP Farm

I tried event viewer to check the root cause of stooping all the app pool i found that the user password, when it tried to start SharePoint thread has change which cause of these app pool stop. I start all of those and its working fine….