Ambientware.UploadPro.net
| Submitted On |
April 01, 2003 |
| Updated on |
July 25, 2007 |
| .NET Framework |
1.x |
| Cost |
$129.95 |
Description
Ambientware.UploadPro makes uploading files in ASP.NET simple. With just one line of code you can
add upload and image functionality to your web applications. With its security filters and robust
feature set, Ambientware.UploadPro is a great tool for beginners as well as advanced .NET developers.
Ambientware.UploadPro.net lets you upload multiple files, resize/rotate images, filter files and size of the upload.
Syntax Example
Sub SubUpload()
Dim lstrFilePath As String
'this is the folder you need to create on a drive on your
'server with aspnet user having full permissions to
lstrFilePath = "C:\MyParentFolder\"
Dim lobjFileUtils As New Ambientware.Net.UploadPro()
'pass class the file path and optional filter properties,
'if no filter properties then just pass "" for the arguement
lobjFileUtils.UploadFile( _
lstrFilePath, "",_
UCase(Request("txtExtFilter")), _
Request("txtSizeLimit"), "Y")
lobjFileUtils = Nothing
End Sub
Sub ImageUtil()
Dim lobjIMG As New UploadPro()
'this call will get your images width and height properties
lobjIMG.ImageSize("C:\myimage.jpg")
Response.Write("Image Width is: " & lobjIMG.ImageW)
Response.Write("Image Height is: " & lobjIMG.ImageH)
' this method will create a new thumbnail image
' of the image you pass in to it
' Note: "mynewimage.jpg" is an optional parameter.
' If you do not use it, the original image will be
' overwritten with the thumbnail.
lobjIMG.CreateThumb("C:\images\ myimage.jpg",100,100,"mynewimage.jpg")
' this method will rotate your image and save it
' with a new name to where you specify
lobjIMG.RotateFlip( _
"C:\images\myimage.jpg", _
"RotateFlipType.Rotate90FlipX", _
"C:\images\myimage_rotated90.jpg")
lobjIMG = Nothing
End Sub
Reviews
Submit a review