upload file with asp.net 2003

  • Thread starter Thread starter zegga
  • Start date Start date
Z

zegga

I need to do an upload file with asp.net 2003 but i need process the
image or show a preview of this after save.
 
Look into <asp:FileUpload id="moFileUpload" runat="server" /> control.

After user uploads file:

Dim oBitmap As Bitmap

If moFileUpload.HasFile Then
oBitmap = New Bitmap(moFileUpload.PostedFile.InputStream, False)
'Do your magic here
end if

Also check out memorystreams and System.Drawing.
 
Back
Top