使用“ StorageProvider.Download(...)”时,似乎只能下载上传到公共存储的文件。
是否可以将上传的私有文件下载到服务器本地存储中?
我正在使用Azure外部存储提供程序。
谢谢!
示例:
// In this case the file is downloaded to the local filesystem:
&LocalFile.Source = 'LocalFile.txt'
&Result = &StorageProvider.Download('AzurePublicFile.txt', &LocalFile, &Messages)
// In this case the file is not downloaded locally, it only loads a reference to the URI in the Azure blob container:
&LocalFile.Source = 'LocalFile.txt'
&Result = &StorageProvider.GetPrivate('AzurePrivateFile.txt', &LocalFile, 5, &Messages)
答案 0 :(得分:0)
尝试这样的事情:
StorageProvider.GetPrivate(...., &File)
&URL = &File.GetURI()
&HttpClient.Execute('GET', &URL)
&HttpClient.ToFile("C:\....")
更新:StorageProvider.DownloadPrivate()将在GeneXus 16 Upgrade 2中提供。