Note that there are some explanatory texts on larger screens.

plurals
  1. POIIS7, Image Quality 100
    primarykey
    data
    text
    <p>We have an application that receives images via thumb drive and uploads the images to a central server through a service. Originally the defaults was to set the quality of the image to 92 and resize the image down from the original. The enhancement is to allow that to be configured.</p> <p>We are testing the changes and find that when the image quality is set to 100 it can make the local backup without a problem but cannot transfer the image, we get an error abort message from the service. When we put the image at original size but back to 92 no problem. One some computers we can move the quality to 96 others 95, anything above that produces the error.</p> <p>This is our code on setting the quality of the image and saving to a local directory before transfer.</p> <pre><code>EncoderParameter qualityParam = new EncoderParameter(System.Drawing.Imaging.Encoder.Quality, quality); ImageCodecInfo jpegCodec = GetEncoderInfo("image/jpeg"); EncoderParameters encoderParams = new EncoderParameters(1); encoderParams.Param[0] = qualityParam; img.Save(path, jpegCodec, encoderParams); </code></pre> <p>Here is our binding in the client config file.</p> <pre><code>&lt;binding name="basicHttpBinding" closeTimeout="00:01:00" openTimeout="00:01:00" receiveTimeout="00:10:00" sendTimeout="00:01:00" allowCookies="false" bypassProxyOnLocal="false" hostNameComparisonMode="StrongWildcard" maxBufferSize="524288000" maxBufferPoolSize="524288000" maxReceivedMessageSize="524288000" messageEncoding="Text" textEncoding="utf-8" transferMode="Buffered" useDefaultWebProxy="true"&gt; &lt;readerQuotas maxDepth="32" maxStringContentLength="524288000" maxArrayLength="524288000" maxBytesPerRead="524288000" maxNameTableCharCount="524288000" /&gt; &lt;security mode="None"&gt; &lt;transport clientCredentialType="None" proxyCredentialType="None" realm="" /&gt; &lt;message clientCredentialType="UserName" algorithmSuite="Default" /&gt; &lt;/security&gt; &lt;/binding&gt; </code></pre> <p>These images are around 2 meg images so http request size is not a factor.</p> <p>Any ideas on where I should be looking. The process works, so it is a setting or a limitation within IIS7 or .NET.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload