but is there a way to lock a file, or image, or website with bitcoin?
can you store an image, file,... with your bank account or your PayPal account, etc?
it is the same with bitcoin. it is designed as a payment system and its blockchain aka the ledger is supposed to store the monetary transactions not random files.
Theoretically, the only way to access the thing is to "unlock it" with bitcoin, hence pay the owner of the digital object.
as far as possibility goes, any transaction output can contain any garbage data inside which could be a file. although bitcoin nodes are going to reject such nonstandard transactions because of the reason i mentioned above.
theoretically speaking and off the top of my head, one could encrypt a file (as raw bytes) with their public key then publish it on bitcoin blockchain. then two parties could come up with a multisignature design with that public key and the "buyer's" public key. then the buyer sends coins to that multisig address, as soon as the first party spends from that address he has to reveal the public key in which case the buyer can decrypt the file. but so will anybody else since the blockchain is public.