Bonjour à tous,
J'ai encore un petit soucis ^^
En fait, j'upload une image que je transforme en byte[], arrivé la sa fonctionne.
Je l'envoi via le webservice pour l'inserer en base (mssql).
Mon problème, c'est que cela fonctionne que pour les petites images. pas plus de 20Ko ( sa fais pas de grosse image -_-).
En scruttant des forum, j'ai pri modèle et donc configurer mon web.config comme suit :
Mais cela ne marche toujours pas. Si quelqu'un a une explication
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54 <system.serviceModel> <bindings> <basicHttpBinding> <binding name="ServicesBinding" maxReceivedMessageSize="2000000" maxBufferSize="2000000"> <readerQuotas maxArrayLength="2000000" maxStringContentLength="2000000"/> </binding> </basicHttpBinding> </bindings> <behaviors> <serviceBehaviors> <behavior name="SilverlightApplication4.Web.Service1Behavior"> <serviceMetadata httpGetEnabled="true" /> <serviceDebug includeExceptionDetailInFaults="false" /> <dataContractSerializer maxItemsInObjectGraph="6553600" /> </behavior> <behavior name="SilverlightApplication4.Web.Service2Behavior"> <serviceMetadata httpGetEnabled="true" /> <serviceDebug includeExceptionDetailInFaults="false" /> <dataContractSerializer maxItemsInObjectGraph="6553600" /> </behavior> </serviceBehaviors> </behaviors> <serviceHostingEnvironment aspNetCompatibilityEnabled="true" /> <services> <service behaviorConfiguration="SilverlightApplication4.Web.Service1Behavior" name="SilverlightApplication4.Web.Service1"> <endpoint address="" binding="basicHttpBinding" bindingConfiguration="ServicesBinding" contract="SilverlightApplication4.Web.Service1" > <identity> <dns value="localhost"/> </identity> </endpoint> <endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange" /> </service> <service behaviorConfiguration="SilverlightApplication4.Web.Service2Behavior" name="SilverlightApplication4.Web.Service2"> <endpoint address="" binding="basicHttpBinding" bindingConfiguration="ServicesBinding" contract="SilverlightApplication4.Web.Service2" > <identity> <dns value="localhost"/> </identity> </endpoint> <endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange" /> </service> </services> </system.serviceModel>
Encore merci![]()
Partager