有 Java 编程相关的问题?

你可以在下面搜索框中键入要查询的问题!

java在Azure Blob存储中的文件上运行ffprobe

我正在尝试获取Azure blob存储中的一个文件的元数据

我使用ffprobe就是为了这个目的。虽然它可以工作,但由于ffprobe二进制文件位于本地系统上,文件位于Blob中,所以整个过程太慢

为远程文件获取元数据的最佳方法是什么


共 (1) 个答案

  1. # 1 楼答案

    有两种方法供您参考:

    一,。使用blob.downloadAttributes(),然后使用blob.getMetadata()

    This method populates the blob's system properties and user-defined metadata. Before reading or modifying a blob's properties or metadata, call this method or its overload to retrieve the latest values for the blob's properties and metadata from the Microsoft Azure storage service.

    二,。使用get-metadata-activity in ADF

    获取文件的元数据:

    enter image description here