iPhone : How to create .mht file for iPhone? - iphone

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 :)

Related

Load XML file as asset in iPhone - objective c

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

picking a file from the memory of iphone?

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?

iphone: coding a data compression or zipping agent?

I'm creating a simple service for uploading photographs from an iphone to a web server.
However, before the requests is sent, I want the app to compress the pictures (custom format or otherwise) in the background before sending it.
Any pointers on how I could go about doing this?
Check out the NSDataCategory posted to CocoaDev. It does exactly what you're looking to do.
http://www.cocoadev.com/index.pl?NSDataCategory
I use ziparchive to unzip content downloaded from a server. It also has functionality to create zip files on an iOS device and might be what you are looking for.
http://code.google.com/p/ziparchive/

Creating multipage PDF in iPad

I am developing an application in which i have to create multi page PDF and email such PDF. The content which is to be converted to PDF contains text as well as some images. I have seen some posts regarding this, but could not glean too much from it. Will be greatful if any one can guide in this.
Thanx, regards.
You could take a look at docmosis which has a cloud-based document generator. It can generate PDFs and stream them back to the iPad or send as email. You upload a template to the cloud using the Docmosis web site, then you can generate documents from your iPad by sending a request (with data, images etc) to the Docmosis cloud.

Reading iTunesMovies file in iPhone?

In iPhone, the iPod app saves the media files (audio, video) with strange names and in weird folders (F00,F01 etc). There is a file named iTunesMovies in iPhone, which contains all the information about the metadata of those video files and how they are to be displayed in iPod app. I copied that to my Mac also, and when i tried to open that file in textEdit, it showed some alien characters which made me believe that it is encrypted may be(Thats just a wild guess).
I want to read/change the contents of that iTunesMovies file. Can i do that? Is there any Framework which deals with that iTunesMovies file?
Thanks in advance
I don't think there's a framework to do this, but you can probably do it yourself by reading the file into an NSData object, then manipulating how you would like. Your app will have to be running outside the sandbox, as well. Something I don't know how to do.
Keep in mind that this isn't allowed by Apple, so any apps you make that use this would have be distributed through other means.