0

I have used this WCF tutorial to create a named pipe and it works well for me. However, i want to send an image (.bmp, .jpg etc. or any other standard format) from the the server to the client. The Bitmap does not work and it gives me an error.

The maximum message size quota for incoming messages (65536) has been exceeded. To increase the quota, use the MaxReceivedMessageSize property on the appropriate binding element.

I tried changing the app.config file with the help of this. How else can I send it?

Community
  • 1
  • 1
Vinshi
  • 313
  • 2
  • 7
  • 27

1 Answers1

0

Good Day!

For transfer any file, it is better to use Stream trasmission. I'm recomended read book "Programming WCF Services" 3 edition author Juval Lowy (p.251).

[ServiceContract]
public interface ITerrasoftFiles
{
    [OperationContract]
    Stream GetFiles(Guid ID);
}

You can also see the post where a similar question was asked

Community
  • 1
  • 1
StuS
  • 817
  • 9
  • 14