This works in windows
application.
Above code by @reena
work for website
'here assumed
that you have image named as i
Dim i As Image
' here set
direcory as you want
Dim
Dir_path As String
= "c:\hello\"
'set
imagename as you want
Dim
image_name As String
= "hello.jpg"
' saves image
i.Save(Dir_path + image_name)