Click here to Skip to main content
16,020,673 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I am getting the above error when trying to insert a image in to database
My ServiceReference.ClientConfig file is :

XML
<binding name="BasicHttpBinding_IPickerWCF" maxBufferSize="2147483647"
     maxReceivedMessageSize="2147483647">
     <security mode="None" />
    </binding>

<endpoint address="http://localhost:3178/ActionsWCF.svc" binding="basicHttpBinding"
    bindingConfiguration="BasicHttpBinding_IActionsWCF" contract="ActionsWCF.IActionsWCF"
    name="BasicHttpBinding_IActionsWCF" />
My WebConfig is
<system.serviceModel>
        <diagnostics performanceCounters="Default">
  <messageLogging logEntireMessage="true" logMalformedMessages="true"
  logMessagesAtServiceLevel="false" logMessagesAtTransportLevel="false"
  maxMessagesToLog="100000" maxSizeOfMessageToLog="2621440" />
 </diagnostics>
 <behaviors>
  <serviceBehaviors>
  <behavior name="WCFServiceBehaviour">
   <serviceMetadata httpGetEnabled="true" />
   <serviceDebug includeExceptionDetailInFaults="true" />
   <dataContractSerializer maxItemsInObjectGraph="2147483647" />
  </behavior>
  </serviceBehaviors>
 </behaviors>
        <!--<serviceHostingEnvironment multipleSiteBindingsEnabled="true"/>-->
    </system.serviceModel>

It works fine for images of size 3kb but it is not working for larger images.

Please help me.
Thanks in advance
Posted
Updated 13-Dec-10 3:06am
v2
Comments
#realJSOP 13-Dec-10 10:14am    
You're getting *what* error?
Sandeep Mewara 14-Dec-10 0:35am    
Looks like you missed posting the error!

1 solution

Hi Rajesh,

You have to transfer large picture file using Streaming.

You can refer these article.
http://msdn.microsoft.com/en-us/library/ms731913.aspx[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900