On Tue, Dec 29, 2009 at 4:13 PM, Paul Archibald <p...@sonic.net> wrote:
> Cool, thanks, I'll try that.

> On Dec 29, 2009, at 11:10 AM, davel...@mac.com wrote:
>> On Dec 29, 2009, at 11:56 AM, Paul Archibald wrote:
>>> I am using SQLite in my iPhone app. and i want to be able to email the
>>> database file. I see that attaching it to a message is pretty
>>> straightforward, but the addAttachmentData method requires a mime type, and
>>> I  don't know what that should be. Any ideas out there?
>>
>>
>> I don't know if this is the "correct" one, but application/octet-stream
>> seems to work fine for me in my Attendance app.

The best choice is to use an application-specific extension MIME type:

  application/x-sqlite3

Or,  if you don't want this DB to be generally usable/recognisable,
make it specific to your app:

  application/x-myiphone-app

IIRC, most browsers that don't know how deal with an x- treat it as
octet-stream, but it gives other programs with more information on
application/x-sqlite3 or application/x-myiphone-app a way to deal with
it better.

-austin
-- 
Austin Ziegler • halosta...@gmail.com • aus...@halostatue.ca
http://www.halostatue.ca/http://twitter.com/halostatue
_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to