Is there a way to open an XML file as a mail attachment or web download and load it into an iPhone app?
I want my app to be able to open a XML file as a mail attachment and then parse. I know how to do the parsing, but I don't know how to load the XML file.
Thanks
You will want to look into Document Interaction you can register your app to receive files of certain types, yours being .xml.
Opening Supported File Types
Related
I want to play .ts file in iPhone, so
I have been trying to copy it to iTunes but it is not allowing to copy to iTunes movies, then I converted it to .mp4 and tried again, it copied.
So converted file is working but file should not be converted.
I sent it through mail and tried to download it, but it is showing "These types of attachment cant be accessed on this device."
Does iPhone supports the file type or not?
Is it possible to make .mht (web Archive) file for iPhone ?
.mht(web Archive) where the image is embedded into html file. So it can be easy way to send html in email which contain images.
So How do I make this type of file ?
Apple's Safari browser, which runs on the iPhone, does not support the .mht file extension.
You may try using the Data URI scheme instead, which is more portable.
if what you want to do is only to embed images into your HTML formatted emails, try base64 encoding for your images. all the taste without the pain :)
i am making a client server program for iphone communication with the sever i want to know
that how can i pick a file (jpg, 3gp, bmp or some word document ) from the memory of the
iphone and send it to the server please explain in some detail as i m new in iphone
programming and give some code for it if possible, and how can i convertv an adobe reader and
msword compatible file to jpg file.
Slow down there buster.
There is no "memory of the iPhone." You'll have to get that file in somehow besides a traditional file system. There are ways to send files to other apps… check the docs. To start with, why don't you bundle in a couple files with your .app to test with.
Once you have the file, use something like the ASIHTTPRequest library (google it) to send it to the server.
Clear?
I'm developing an iPhone application for a radio station. I'm in need of parsing playlist.pls and playlist.qtl, to get the stream audio url present in it. I'm stuck with that.
Since pls uses ini format, you can parse it using Properties. qtl is an xml format, you can find a lot of examples of parsing xml.
When I download a sound file in my iPhone, in which directory is it stored?
There is no 'sound file directory'.
Safari cannot download files to the iPhone and if you download a sound file from code you will receive the data in an NSData object. From there it is up to you where you write the file (or even if you write a file, you could use the data without saving it). However you will still not have many options on where to save the file because of the iPhone sandbox.