[英]How do I access a file from a Transform that I uploaded to a folder?
I uploaded an image file into a folder in Foundry, and I want to use it as an input to a Transform.我将一个图像文件上传到 Foundry 的一个文件夹中,我想将它用作转换的输入。 It looks like it's stored as some kind of resource in a service called Blobster, how can I access this file and use it?
看起来它作为某种资源存储在名为 Blobster 的服务中,我怎样才能访问该文件并使用它?
When you drag and drop a file into a folder without making a dataset to hold it first , this puts the file into a different service (Blobster) than the one that serves the files to your Transform.当您将文件拖放到文件夹中而没有先创建数据集来保存它时,这会将文件放入不同的服务(Blobster),而不是为您的转换提供文件的服务。 As such, you would have to talk to that separate service in order to use its contents in your Transform.
因此,您必须与该单独的服务对话才能在您的转换中使用其内容。
Instead, I'd recommend you upload the file into a dataset , by making an empty dataset first, then dragging and dropping the file into the dataset.相反,我建议您先将文件上传到数据集,方法是先创建一个空数据集,然后将文件拖放到数据集中。 Once it's inside the dataset, then you can use it as a standard input to a Transform without any extra work.
一旦它进入数据集,您就可以将其用作转换的标准输入,而无需任何额外工作。 You'll simply access the file the same as you would any other file input.
您只需像访问任何其他文件输入一样访问该文件。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.