Hello, Yes you're right, it's necessary to have a unique name for every file you download. You can do that using the date of the download (now.tostring("yyyy-MM-dd__HH-mm-ss")) as a string added to the name of the file.
You’re welcome. In that case you just change the extension at the end of the argument “path” to .jpg or .png etc If you only have URLs without knowing what’s inside of them look for an indication inside of the url to extract the extension. If you don’t have any indication you will have to go to the source of the urls and extract the extension. Hope that helps.
Hello, Maybe I'm missing something but I don't see the difficulty in that. You will automate the log in action in UiPath, retrieve the URL and then download the file using the method I've shown.
Here is the code guys enjoy :)
_________ 👇 Code 👇 _________
Using w As New System.Net.WebClient()
w.DownloadFile(Url,Path)
End Using
But this is not working for me
The last part is why I watched the video. Amazing tip!
Yep, it's definitely so useful as an activities and not a lot of people talk about it.
Glad you enjoyed the video!
Hey, I am getting Invoke Code: Exception has been thrown by the target of an invocation. Error when ran this.
You explain very good my friend. Was a very helpful video. Thanks and keep up the good work :)
You're most welcome!!! Will do!
Great stuff, really appreciate it.
My pleasure Kevin!
What if same file name xlsx is already present in the folder?
I guess wait for download activity will wait for forever. correct me if I am wrong.
Hello,
Yes you're right, it's necessary to have a unique name for every file you download.
You can do that using the date of the download (now.tostring("yyyy-MM-dd__HH-mm-ss")) as a string added to the name of the file.
thank you for the last tip ;)
My pleasure 😁
Hi. Thanks a lot for the video. If I have urls but they download files with different extensions i.e. PDF, JPEG, PNG, etc. How can I achieve that?
You’re welcome.
In that case you just change the extension at the end of the argument “path” to .jpg or .png etc
If you only have URLs without knowing what’s inside of them look for an indication inside of the url to extract the extension.
If you don’t have any indication you will have to go to the source of the urls and extract the extension.
Hope that helps.
What f I need to log in to the website to perform the download?
Hello,
Maybe I'm missing something but I don't see the difficulty in that.
You will automate the log in action in UiPath, retrieve the URL and then download the file using the method I've shown.
Sir one doubt if url comes javascript how can we handle it sir..here we have table data images download
javascript return encripted url sir.. we want get genarated url sir every row one column having javascript click sir
great video
Thank you 😄
THANK YOU
You’re most welcome 🙏