• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: SQLite mime type?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >SQLite mime type? (From: Paul Archibald <email@hidden>)
 >Re: SQLite mime type? (From: email@hidden)
 >Re: SQLite mime type? (From: Paul Archibald <email@hidden>)

  • Prev by Date: NSDocument, NSManagedObjectContext do Stuff in -dealloc, Cause Crash
  • Next by Date: Fw: Setting the Line Height/ Line Spacing in an NSTextView.
  • Previous by thread: Re: SQLite mime type?
  • Next by thread: Notification when displays are detected?
  • Index(es):
    • Date
    • Thread