Upload di file

giovedì 29 settembre 2005 - 10.47

Amodio Profilo | Expert

salve a tutti
devo uplodare un file su un server web
come posso fare?

grazie
ho provato con uesto codice, ma proprio nn me ne va bene una->errori da tutte le parti



Dim myWebClient As New WebClient
' Console.WriteLine(ControlChars.Cr + "Please enter the fully qualified path of the file to be uploaded to the URL")

myWebClient.Credentials = New System.Net.NetworkCredential("M", "M", "FTP://server")

Dim fileName As String = Me.TXT_Immagine.Text
' Console.WriteLine("Uploading {0} to {1} ...", fileName, uriString)

' Upload the file to the Url using the HTTP 1.0 POST.
Dim responseArray As Byte() = myWebClient.UploadFile("FTP://serverp/provaUpload", "put", fileName) '"POST"
Partecipa anche tu! Registrati!
Hai bisogno di aiuto ?
Perchè non ti registri subito?

Dopo esserti registrato potrai chiedere
aiuto sul nostro Forum oppure aiutare gli altri

Consulta le Stanze disponibili.

Registrati ora !
Copyright © dotNetHell.it 2002-2024
Running on Windows Server 2008 R2 Standard, SQL Server 2012 & ASP.NET 3.5