Storing QTMovie in a database
Storing QTMovie in a database
- Subject: Storing QTMovie in a database
- From: Rod Schmidt <email@hidden>
- Date: Tue, 9 Aug 2005 14:36:49 -0600
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.
What am I missing?
Thanks,
Rod Schmidt
infiniteNIL Software
www.infinitenil.com
_______________________________________________
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