I think you could write a XPlat solution by analyzing the first few bytes of the file. Those should contain some header information. Though I must admit I did not try that yet. Cheers, Malte