iOS capability question..

Status
Not open for further replies.
Hi all,

I have a small desktop application that's written in c# that I'm scouting the feasibility of rewriting for iOS4 (iphone/ipad). I'm brand new to iOS, obj-c and apple for that matter.

What my c# app does is use a library that emulates a web browser. Its purpose is to give its users an easy way to download files. The files are protected by a system that makes you log in. You receive 2 cookies once you successfully log in. To download files I must open up a request to the files while supplying those cookies. The server then sends me the file directly and I save it locally.

Are there any libraries in iOS that can handle the various tasks mentioned there? Making a https request, capturing cookies, downloading binary files and saving them to my apps folder?

Lastly if there's nothing out of the box in the libraries that can do something like this, is there basic socket support so I could even attempt to socket to a webserver myself, send raw headers and also read binary data over them?

Any advice on the feasibility of something like this?

Thank you!
 
Thanks for the replies.

The files I'd like to download are all officey-esque, PDFs, word documents, power point, etc. The idea would be to allow them to transfer the files to their own app documents folder for storage and viewing. I haven't had an iphone for a year or so now but I think I remember there are some apps you can get to display office files (at least just for viewing).

I also want to stream their videos. I have a good feeling this is probably a big subject. In my excessively brief introduction into iOS I see memory is a huge subject so it will always involving streaming. Does video streaming require a streaming server or can the iphone progressively download and display videos?

Thanks for the link on the HTTP framework. So I can use that to POST data to an URL, catch the response, store the cookies and use them to supply to an URL to download a file? I see some familiar lingo in there, even NSHTTPCookie which I'll probably need to make use of.
 

frogblast

Ars Scholae Palatinae
943
ominous":1o2w1rbw said:
Thanks for the replies.

The files I'd like to download are all officey-esque, PDFs, word documents, power point, etc. The idea would be to allow them to transfer the files to their own app documents folder for storage and viewing. I haven't had an iphone for a year or so now but I think I remember there are some apps you can get to display office files (at least just for viewing).

I also want to stream their videos. I have a good feeling this is probably a big subject. In my excessively brief introduction into iOS I see memory is a huge subject so it will always involving streaming. Does video streaming require a streaming server or can the iphone progressively download and display videos?

Thanks for the link on the HTTP framework. So I can use that to POST data to an URL, catch the response, store the cookies and use them to supply to an URL to download a file? I see some familiar lingo in there, even NSHTTPCookie which I'll probably need to make use of.

The HTTP framework definitely does what you need. Safari itself uses the system-provided HTTP libraries, rather than packing its own.

For moving the documents around (and between applications) once they are downloaded, look at the Document Interaction classes: http://developer.apple.com/library/ios/ ... ction.html

For streaming, it can pull several formats (H.264 is the big one) off of a normal HTTP site. http://developer.apple.com/library/ios/ ... TP40006953
 

Ember

Ars Centurion
346
Subscriptor++
ominous":1js8tq7i said:
The files I'd like to download are all officey-esque, PDFs, word documents, power point, etc. The idea would be to allow them to transfer the files to their own app documents folder for storage and viewing. I haven't had an iphone for a year or so now but I think I remember there are some apps you can get to display office files (at least just for viewing).
You can use UIWebView to display many kinds of documents in your app.
http://developer.apple.com/library/iOS/#qa/qa2008/qa1630.html
 
Thanks frogblast, great to know I could do some custom document interaction.

On the MOMoviePlayerController I see that you can set the content type like:
MPMovieSourceTypeFile

The movie is a local file or is a file that can be downloaded from the network.

Does this mean I really don't need a streaming server? I can just H.264 encode the videos as they specified and it can play progressive off a webserver?

Thanks Ember, that looks totally ideal to display content and I can't believe it's built-in!

If I ask the UIWebView to load a web page that has a direct link to, say, a power point document, and the user clicks that link, will the UIWebView require me to build a new view to display the power point file or will it load it directly into itself?
 
Wow that's great to know and that will help a ton! I was worried I'd need to install some kind of streaming server.

I'm doing Lynda.com video tutorials right now. I did the essentials training with xcode already and I'm in the middle of the RSS app (BW RSS app on the app store). This style app is really what I'm trying to build. A navigation based application with a table hierarchy of views that drills down until you eventually load a UIWebView with a webpage. The webpage may contain officey-esque files or links to videos. People will just click the links (if it works) and either play videos or view the office documents.

It all sounds like this will be very possible. Thanks a ton for the info!
 
Status
Not open for further replies.