• 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: Storing QTMovie in a database
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Storing QTMovie in a database


  • Subject: Re: Storing QTMovie in a database
  • From: Tim Monroe <email@hidden>
  • Date: Tue, 9 Aug 2005 17:04:12 -0700


On Aug 9, 2005, at 12:04 PM, Rod Schmidt wrote:

I need to save a movie to a blob in a database and of course restore it. I thought it was working but it appears to be keeping a reference to the original movie file the user imports because if you delete the file and then try to view the movie it tries to look for the file and of course fails. I'm using QTMovie's movieWithURL to initialize the movie from the original file and using movieFormatRepresentation to get the NSData object from the movie to save to the database. When I restore the movie I use movieWithData:

I've tried using movieWithData: with NSData dataFromContentsOfFile instead of movieWithURL, but that causes my program to crash.

movieFormatRepresentation writes out only the movie atom (the "bookkeeping" info contained in a movie file, not the media data). Sounds like you need all of the movie and media data in one blob. Try writeToDataReference:withAttributes, specifying the flatten flag.


Tim Monroe
QuickTime Engineering
email@hidden

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Prev by Date: Re: Flipping a window, Dashboard-style
  • Next by Date: Re: NSData writeToFile:atomically not working right??
  • Previous by thread: Storing QTMovie in a database
  • Next by thread: Dependent properties must be denormalized to use in a fetch request?
  • Index(es):
    • Date
    • Thread