Upload photo to arbitrary FTP with iPhone app - iphone

I'd like to upload a photo from my iphone to an arbitrary ftp. How can I do this with Cocoa / Xcode ?
Thanks!

You'll want to look into CFFTPStream in regard to the iPhone

There's a nice framework out there called ConnectionKit. I haven't used it personally, but I've heard it's good.

Related

Play SWF files one the iPhone

I am new to the iPhone development, I need to develop application in which I can load SWF files (shock wave file). I have done lots of research but I couldn't get it to work. How do I load it on the iPhone ? if it's not possible, what alternatives do I have ?
There is no Flash player on iOS and no other solution to play Flash in your app. However, you might want to look into Adobe AIR for iOS which is able to produce iOS apps.
The iPhone doesn't support flash.
iOS Doesn't support Flash so you won't be able to launch a swf. If you have the source for the SWF you could consider building an ios app through Flash CS5+. Also, you could try porting it to haxe, which is very similar to actionscript and should allow you to build for both Android and iOS at once.
As I know there is no such application (expect Frash, which is only available on jailbroken iPhones) which can load SWF Files on an iPhone.
The only way you can go is to convert that file in an iPhone readable format, which I can't recommend as the results are normally horrible.
Otherwise I suggest to recode the behaviour of that SWF File in Objective C or something similar to that.
There is no Flash player in iOS. Even more – it is forbidden by Apple iOS Developer Agreement to deploy them (and other technologies where you may use an app to execute another executable code of any kind (SWF, Java, AIR, etc.) on iOS devices.
You can also make your own flash player.

How to create an iPhone app that interacts with my website?

What I want to do is to make an iPhone application for my website similar to the photofunia. The users will be able to select an effect from a list, and then upload their own photo. Then the result will be shown in the browser where the user can save the image and/or publish to website like facebook, etc.
What software can I use to do that? Phonegap, appcelerator, etc? Can some of these help?
Thanks.
First of all, you may be able to make an iPhone app using Adobe Flash and the Adobe Packager for iPhone.
The other option is to get a Mac and Learn Objective-C.
There is no "easy" solution here.
Create a webservice for your website and try to use that in your iPhone Application
Of course I know there is no "easy" solution, but I'm almost sure there are other options for making iphone apps, instead of using Objective-C.
I only don't know the name of the tools.
Flash doesn't works. Adobe Air currently doesn't offer a way to access the camera roll on the ios.

Optical character recognition on the iPhone

Is it possible on an iPhone app to take a picture and extract an string from the picture? We'd like to make our app to look for a serial number on a database (very long number) without the user having to type it.
Is there any Cocoa/Objective-C API for this or any C/C++ library that can be used in an iPhone app?
Thanks in advance!
You can have a look at the tesseract-ocr project. It's not actually made to use on an iPhone but I believe others have made great use of it on the iPhone.
Here is a demo that makes use of the tesseract ocr engine.
I was looking for something similar and came across ABBYY's mobileOCR solution
I've not used it yet and have no idea how much it is but you should be able to integrate it into your app by all accounts.
I have this in my bookmarks: http://code.google.com/p/zxing/
It has iPhone, Android and Java code to deal with image capture and bar codes.
I haven't test it yet.
Here's another implementation of Tesseract on the iPhone: http://robertcarlsen.net/dev/pocket-ocr
Tesseract-OCR now has iOS version:Tesseract-OCR-iOS

Add media from iphone (outside of iPod library) into iTunes

Is there a way for my iPhone app to add media (mp3s) not in its iPod library to iTunes once the user plugs/syncs to a desktop such that the media will get sync'd back into the iPhone's iPod library?
I know the question is rather general, but if it is indeed possible, can anyone nudge me in the right direction?
Who wants to write a sync app for mac and windows? Try serving a bonjour discoverable upload page from the iPhone. I got cocoahttpserver up and running in a few minutes.
No, it's not possible to do this using anything provided by the iPhone SDK. The only way to do something similar would be to store the media in your iPhone application's local storage, write an OS X application that discovered your iPhone via Bonjour, synced the content via WIFI, and then added it to iTunes.
Take a look at "Things" (an iPhone todo list application) if you'd like to see an example with sync-to-desktop functionality.
there is a way, i've done it through an app and it wasn't complicated. sadly I forgot and am currently looking for where I found the answer and thats how I stumbled upon this.

Iphone SDK - Can I start a file (song) in the ipod feature of the iphone via the SDK?

I would like to have a feature in my iphone application that would start playing a file in my ipod section of the iphone. Does the SDK allow calls to this? Is there a simple way to start a song from my application other than using the iphones native interface?
No, I think the official iPhone OS 2.0 SDK does not allow this.
You cannot launch the iPod app from your application. But you can easily play a song.
Use the AVAudioPlayer from the AVFoundation Framework.
Ars Technica has a nice article on it, here.
This is now possible with 3.0 but I will not go further into it due to NDA issues. The information is available on the Developer Site.
Now that it's public, you're looking for MPMediaPickerController and MPMediaPickerControllerDelegate
http://developer.apple.com/iphone/library/documentation/MediaPlayer/Reference/MPMediaPickerController_ClassReference/Reference/Reference.html
Nope you cannot fire off a song from your media library but you can play a song you have embedded in you app or you download from the web here are some examples
Apple - Example
AppsAmuck - Example