This project is read-only.

Retrieving metadata from files

Jul 8, 2015 at 6:56 PM
Hello,

I am using System.Net.FtpClient to retrieve a list of video files available in a remote FTP server.
I want to include metadata (like the Video Length and BitRate) when their tags are available.

Is this even possible ?
Tks
Jaime
Coordinator
Jul 9, 2015 at 12:00 AM
There is no good way to do this, the FTP server would need to support it. The only way that comes to mind off the top of my head is to open a stream to the file and read it in. If you're lucky all of the metadata you'll need will be at the beginning of the file and you could look at aborting the download once you read enough data in (which will trigger an exception you need to handle).