I have uploaded an image to a storage bucket and now I want to download it in UiPath Studio. I used the ‘Download Storage File’ activity, which gives me an output variable of type ILocalResource. However, I am unsure how to extract the image from this variable.
using aadharImage.LocalPath will give you the FilePath where the image is downloaded and you can use it for further processings
Kindly note: also have a look at the To: file name and location
UPD1 - fixed Property name
okay so the ‘To’ is the file location where i want to keep the file on the system ?
E.g.

will download to where had configured Filename and location
what if i want to keep the filename from the SB and just give the folderpath
with this works
“Images/”+aadharImage.FullName
aadharImage is still as var in the ‘result’
[EDIT] :- ik i can just spilly move the file from projects root directory to ‘Image/’ but, just curious to see if its possible in the ‘To’ property itself
when in_AadharFileName is only a file name and not a storage bucket path:
we can do:
Path.Combine(“PathToDownloadFolder”, in_AadharFileName )
when in_AadharFileName is not only a file name and a storage bucket path:
we can do:
calculate the filename only: strFileName
Path.Combine(“PathToDownloadFolder”, strFileName)
Else we can do:
let empty To: File name and location
Use Result: myLocRes
Download
Use myLocRes.LocalPath for a file move and file name renaming
E.g. like this:

Hey @ppr,
Thanks for the answer.
I have another issue and need some help from you. I’m uploading files to a storage bucket (SB) from UiPath apps. The files are getting uploaded correctly, and when my process runs, it tries to download the files. Here’s the confusing part for me:
If I provide default values for in_AadharFilename and in_PanFilename directly in UiPath Studio, the files get downloaded without any issues. However, when I run the process from the Assistant with hardcoded values or dynamically from the UiPath app, the download doesn’t occur.
Interestingly, I’ve added validation checks to ensure the paths exist before proceeding. If the paths exist, the process continues; otherwise, it throws an error. But what’s interesting is that the process runs without downloading the files, and no errors are thrown.
Could you please help me figure out why this is happening?
Document Data Validation.zip (3.8 KB)
Researchers will have it easier when 1 Topic is scoped to 1 Case
So we would like to ask you to open a new topic for your question
Thanks
Hey thanks, i have added new question Unable to download file from SB when run from assistance
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.
