Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

C# 

File size pretty big (Selenium)

Hello,

I have made a small tool which uses selenium and the geckodriver (for Firefox) aswell as the Webdriver.dll file.
In order for other people to use it they must have both the geckodriver and the Webdriver.dll so i embeded them
into the C# project and when the program runs it extracts both files in the current directory so i can run selenium.
Now the problem is, that the file size is now 11 MB big which is pretty huge.
How can i reduce the file size?
(Jul 17, 2020 12:34 PM)zxPhantomBlade Wrote:  Hello,

I have made a small tool which uses selenium and the geckodriver (for Firefox) aswell as the Webdriver.dll file.
In order for other people to use it they must have both the geckodriver and the Webdriver.dll so i embeded them
into the C# project and when the program runs it extracts both files in the current directory so i can run selenium.
Now the problem is, that the file size is now 11 MB big which is pretty huge.
How can i reduce the file size?

Host those files online and whenever the program initializes just check if they have that files, if not download them from the internet automatically with a WebClient.
[Image: ME3mSDm.gif]
(Jul 17, 2020 12:43 PM)Sickness Wrote:  Host those files online and whenever the program initializes just check if they have that files, if not download them from the internet.

That's the same thing as downloading them from the get-go.

Zip your file/folder with best compression.
Use installer, and let the installer do its job


Possibly Related Threads...
Thread / Author Replies Views Last Post
[Python] by Luffy-_-Aug 20, 2023 02:06 AM 12 446 Aug 20, 2023 02:06 AM
Last Post: Lucky4L
[Python] by Don CezarAug 20, 2023 01:37 AM 5 498 Aug 20, 2023 01:37 AM
Last Post: Lucky4L
by darkfantaOct 22, 2022 11:14 AM 6 365 Oct 22, 2022 11:14 AM
Last Post: darkfanta