Allen Anderson
7/21/2004 3:06:00 PM
This isn't a remoting question. You might have better luck asking
this in general c#.
On Wed, 21 Jul 2004 08:47:06 -0700, "JamesK" <jamesk@pacific.net.au>
wrote:
>Pardon the interuption,
>
>1. Looking for a good C# development forum?
>2. Also, if anyone has come accross this problem would appreciate some help.
>Having difficulty uploading a file to a Tomcat server in C#. I am using
>WebClient.uploadFile(uri, image).
>
>My code is as follows(have tried it on my own Tomcat server as well.)
>
>WebClient Tomcat = new WebClient();
>
>string uriString = "http://localhost/ABIDS/Files/" + photoArray[1] + ".jpg";
>
>string fileName = @"C:\Program Files\ABIDS\Photos\" + photoArray[1] +
>".jpg";
>
>byte[] photo = GetPhoto(fileName);
>
>byte[] responseArray = Tomcat.UploadData(uriString, photo);
>
>
>I get the exception "The remote server returned an error (404) Not Found."
>
>with regards
>James
>