Re: Storing QTMovie in a database
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