Hi
you can make use of either TFTP or FTP services to upload the ios onto the switch.
Make sure you are backing up the old ios and config before you start uploading the new ios.
Also suggest to do this activity from the local lan instead of doing it from remote WAN connectivity.
regds