Hi all
I am trying to upload an image, and resize it automatically onto a web server. I have successfully uploaded the file, and I am able to rename it and change the file extention on it. Here is the code that I am using:
What I am having a problem with is in resizing the file. I have been looking on google but the examples I have found are related to window applications.
Any suggestions?
Mike55.
I am trying to upload an image, and resize it automatically onto a web server. I have successfully uploaded the file, and I am able to rename it and change the file extention on it. Here is the code that I am using:
Code:
Dim strLongFilePath As String = fileupload1.PostedFile.FileName
Dim intFileNameLength As Integer = InStr(1, StrReverse(strLongFilePath), "\")
Dim strFileName As String = Mid(strLongFilePath, (Len(strLongFilePath) - intFileNameLength) + 2)
FileUpload1.PostedFile.SaveAs(Server.MapPath("\Samples\") & strFileName)
What I am having a problem with is in resizing the file. I have been looking on google but the examples I have found are related to window applications.
Any suggestions?
Mike55.