Re: SQLite mime type?
Re: SQLite mime type?
- Subject: Re: SQLite mime type?
- From: Austin Ziegler <email@hidden>
- Date: Thu, 31 Dec 2009 13:05:39 -0500
On Tue, Dec 29, 2009 at 4:13 PM, Paul Archibald <email@hidden> wrote:
> Cool, thanks, I'll try that.
> On Dec 29, 2009, at 11:10 AM, email@hidden 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 • email@hidden • email@hidden
http://www.halostatue.ca/ • http://twitter.com/halostatue
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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:
This email sent to email@hidden