toFileInfo

fun ByteArray.toFileInfo(mediaType: String = "application/octet-stream"): FileInfo

Create a FileInfo from this byte array.