User7291
User7291

Reputation: 1115

download a file only one time in vb.net and IIS

I have a link

http://www.example.com/foldername/1.jpg

Is there a way to make this link usable ony once? In other words, if a user downloads this image and anyone tries to download it again (even the same user) the link will not work anymore.

Upvotes: 1

Views: 110

Answers (1)

bytecode77
bytecode77

Reputation: 14880

You could use a VB.NET script that reads the image from a protected directory and outputs it to the response stream and then simply delete this image from the directory.

See here how to write an image to the response stream.

Upvotes: 1

Related Questions