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

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


  • Prev by Date: Re: Validating in Core Data
  • Next by Date: Validating a new entity in one-to-many relationships in Core Data
  • Previous by thread: Re: Validating in Core Data
  • Next by thread: Re: Storing QTMovie in a database
  • Index(es):
    • Date
    • Thread