title: Image not sending over UDP due to less buffer size C#
body: <p>I am sending <strong>Bitmap</strong> image encoded in the form <strong>jpeg</strong> *<em>over UDP socket</em>*.The issue is there is variable size of images each time.<strong>Container</strong> is <strong>Image Packet</strong> which consists of Multiple or Single Image with a packet Identifier Information.</p>
  
  <p><strong>Server Side</strong></p>
  
  <pre><code>MemoryStream Ms = new MemoryStream();
  bformatter.Serialize(Ms, container);
  byte[] TestingFlow = Ms.GetBuffer();
  ServerSocket.SendTo(TestingFlow, 54000, 
                      SocketFlags.None, RemoteEndpoint);
  </code></pre>
  
  <p><strong>Client Side</strong></p>
  
  <pre><code>byte[] Recievedbytes = UdpListener.Receive(ref RemoteEndPoint);
  ImageStream = new MemoryStream(Recievedbytes, 0, Recievedbytes.Length);
  imagecontainer = (ImageContainer)bformater.Deserialize(ImageStream);
  </code></pre>