[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

microsoft.public.dotnet.framework.remoting

Re: forum for Visual C# develoopment

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
>

1 Answer

JamesK

7/22/2004 11:35:00 AM

0

thanks. What is the URL for the general discussion?

"Allen Anderson" <allen@sparkysystems.com> wrote in message
news:5h1tf0lsabvphqt8bs0g85t44mf72kaf6d@4ax.com...
> 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
> >
>