I'm trying to get the URL of a published binary via the BinaryFactory of DD4T:
// Attempt to resolve as binary link
if (this.BinaryFactory.TryGetBinary(componentUri, out binary))
// Binary link resolves; use the URL property of the binary object
targetUrl = binary.Url;
Unfortunately even if the binary is resolved the Url property is always null (as are other properties of the binary except the BinaryData property which is containing the data).
Any idea how I can get the URL of the published binary through DD4T?