Ask a Question related to ASP.NET General, Design and Development.
-
Volkan Karaboša #1
uploading a file
Hi all!
I have used code below to upload file but I receive an error on last row of
code telling me ( method not allowed ) is it about iis or http protocols??
can you tell me please what the problem is.
thanks...
Dim uriString As String = "http://aktif2000/basvuru/basvuru_resimler/"
' Create a new WebClient instance.
Dim myWebClient As New System.Net.WebClient
Dim fileName As String = "C:\Documents and Settings\VOLKAN.AKTIF_NT4\My
Documents\My Pictures\DAVETIYE.jpg"
' Upload the file to the Url using the HTTP 1.0 POST.
Dim responseArray As Byte() = myWebClient.UploadFile(uriString, "POST",
fileName)
Volkan Karaboša Guest
-
Uploading File - Please Help :-)
Hello, I'm trying to upload files from my computer to folders on my website using Contribute, but can't. Can someone please assist me? Thank... -
Uploading a PDF File
I cannot seem to find anything in the Contribute online help regarding uploading a PDF file from within Contribute. A user needs to be able to... -
File Uploading
> I have ASP 3.0 and I cannot change that, but how can I -
Web Service: Uploading files and setting file security on a file server
I have written a web service that provides the following methods: UploadFile SetNTFSSecurity Their purpose is to allow a user to Upload a file... -
Help uploading a file please
Hey guys, I am trying to get this script working to upload a file and it keeps saying there's an error in copying the file. I've included as much... -
S. Justin Gengo #2
Re: uploading a file
Volkan,
Try dimming your array differently:
Dim responseArray() As Byte = myWebClient.UploadFile(uriString, "POST",
fileName)
Sincerely,
--
S. Justin Gengo, MCP
Web Developer
Free code library at:
[url]www.aboutfortunate.com[/url]
"Out of chaos comes order."
Nietzche
"Volkan Karaboša" <volkan.karaboga@aktif.com.tr> wrote in message
news:OUUiBx$WDHA.212@TK2MSFTNGP12.phx.gbl...of> Hi all!
>
> I have used code below to upload file but I receive an error on last row> code telling me ( method not allowed ) is it about iis or http protocols??
> can you tell me please what the problem is.
>
> thanks...
>
>
> Dim uriString As String = "http://aktif2000/basvuru/basvuru_resimler/"
>
> ' Create a new WebClient instance.
>
> Dim myWebClient As New System.Net.WebClient
>
> Dim fileName As String = "C:\Documents and Settings\VOLKAN.AKTIF_NT4\My
> Documents\My Pictures\DAVETIYE.jpg"
>
> ' Upload the file to the Url using the HTTP 1.0 POST.
>
> Dim responseArray As Byte() = myWebClient.UploadFile(uriString, "POST",
> fileName)
>
>
S. Justin Gengo Guest



Reply With Quote

