• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 2772
  • Last Modified:

iPhone file upload to WCF Service

Hi,

we have a WCF Rest web service which is used for uploading files to our database, which until now has only been used by .Net clients and had worked very happily. Now it has been decided that we want it to be used by an iPhone app that we are going to create.

The particular function i am concerned about is this one

        [WebInvoke(Method = "POST", UriTemplate = "UploadFile/{userName}")]
        public void UploadFile(string userName, Stream fileContent)
        {
            //implemenation
        }

As you can see the function takes a .Net Stream Type as a parameter, so my question is, Will an iphone be able to upload files to this method given thats its signature exposes a .Net Type?

The body responses and requests are all in JSON format.

Thanks in advance for any help

Andy
0
SniperX1
Asked:
SniperX1
1 Solution
 
SniperX1Author Commented:
Hi,

thanks for the response, I have seen that post before, and was what we used when we wrote the service.

Maybe i am missing the point though, is it telling me, that my iPhone developer will be able to upload a file from an iPhone to the service using the method with the .Net Type Stream? I am assuming yes

again thanks for the response it is very much appreciated

Andy
0

Featured Post

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now