how to get file metadata from GCS
问题 I would like to get file meta data of file stored in Google Cloud Storage. Actually we require a media link of file so file can be downloaded or url added to page for download. Blob blob = storage.get("gcp-public-data-nexrad-l2", "1991/06/05/KTLX/NWS_NEXRAD_NXL2LG_KTLX_19910605160000_19910605235959.tar"); ReadChannel readChannel = blob.reader(); System.out.println(blob); I am using public bucket, for example, but blob contains metadata=null . Is there any way to get file metadata? Thanks 回答1: