C Carles Escudé Member Licensed User Longtime User Feb 29, 2016 #1 I am trying to get a base64 coded image and getting it in a json string. Then I decode it and show in my app. That works until I try to get a bigger image where I get the following message: Spanish: System.InvalidOperationException: Error durante la serialización o deserialización mediante JavaScriptSerializer de JSON. La longitud de la cadena supera el valor establecido en la propiedad maxJsonLength. English: Exception information: Exception type: InvalidOperationException Exception message: Error during serialization or deserialization using the JSON JavaScriptSerializer. The length of the string exceeds the value set on the maxJsonLength property. The json string I am trying to get is less than 3000000 characters. I was looking information about it and I found this: http://stackoverflow.com/questions/1151987/can-i-set-an-unlimited-length-for-maxjsonlength-in-web-config But the error persists. I am using libraries HTTP (v1.36) and JSON (v1.10). Thank you very much in advance
I am trying to get a base64 coded image and getting it in a json string. Then I decode it and show in my app. That works until I try to get a bigger image where I get the following message: Spanish: System.InvalidOperationException: Error durante la serialización o deserialización mediante JavaScriptSerializer de JSON. La longitud de la cadena supera el valor establecido en la propiedad maxJsonLength. English: Exception information: Exception type: InvalidOperationException Exception message: Error during serialization or deserialization using the JSON JavaScriptSerializer. The length of the string exceeds the value set on the maxJsonLength property. The json string I am trying to get is less than 3000000 characters. I was looking information about it and I found this: http://stackoverflow.com/questions/1151987/can-i-set-an-unlimited-length-for-maxjsonlength-in-web-config But the error persists. I am using libraries HTTP (v1.36) and JSON (v1.10). Thank you very much in advance
DonManfred Expert Licensed User Longtime User Feb 29, 2016 #2 Carles Escudé said: JavaScriptSerializer Click to expand... Using httputils and jsonparser there is no JavaScript involved!? Upvote 0
Carles Escudé said: JavaScriptSerializer Click to expand... Using httputils and jsonparser there is no JavaScript involved!?
C Carles Escudé Member Licensed User Longtime User Feb 29, 2016 #3 I don't know... That's the error I get using B4A. Code: Dim job1 As HttpJob job1.PostString(Url, prms) After that I get the error I write before. Upvote 0
I don't know... That's the error I get using B4A. Code: Dim job1 As HttpJob job1.PostString(Url, prms) After that I get the error I write before.
DonManfred Expert Licensed User Longtime User Feb 29, 2016 #4 Can yu post the code which parses the result? Upvote 0
C Carles Escudé Member Licensed User Longtime User Feb 29, 2016 #5 Code: Sub JobDone (Job As HttpJob) If Job.Success = True Then Select Job.JobName Case "Job2" [...] When I send the image, Job is not success, I get the error and the program brokes. When I don't send the image it works ok. Thanks for the interest. Upvote 0
Code: Sub JobDone (Job As HttpJob) If Job.Success = True Then Select Job.JobName Case "Job2" [...] When I send the image, Job is not success, I get the error and the program brokes. When I don't send the image it works ok. Thanks for the interest.
DonManfred Expert Licensed User Longtime User Feb 29, 2016 #6 Carles Escudé said: When I send the image, Job is not success Click to expand... What is the output of log(job.ErrorMessage) in this case? Upvote 0
Carles Escudé said: When I send the image, Job is not success Click to expand... What is the output of log(job.ErrorMessage) in this case?
DonManfred Expert Licensed User Longtime User Mar 1, 2016 #8 So the problem seems to be on server side. Not in B4A Upvote 0
C Carles Escudé Member Licensed User Longtime User Mar 1, 2016 #9 Yes. I know that. I start saying i was looking if the solution may be in some configuration in the web.config file. I was asking if somebody know how to solve it. I will try with the MSSQL library. Thanks for all. Upvote 0
Yes. I know that. I start saying i was looking if the solution may be in some configuration in the web.config file. I was asking if somebody know how to solve it. I will try with the MSSQL library. Thanks for all.
DonManfred Expert Licensed User Longtime User Mar 1, 2016 #10 Carles Escudé said: I start saying i was looking if the solution may be in some configuration in the web.config file. Click to expand... Maybe this helps? http://stackoverflow.com/questions/...on-in-asp-net-mvc-during-javascriptserializer or http://forums.asp.net/t/1926733.asp...alization+using+the+JSON+JavaScriptSerializer Upvote 0
Carles Escudé said: I start saying i was looking if the solution may be in some configuration in the web.config file. Click to expand... Maybe this helps? http://stackoverflow.com/questions/...on-in-asp-net-mvc-during-javascriptserializer or http://forums.asp.net/t/1926733.asp...alization+using+the+JSON+JavaScriptSerializer
C Carles Escudé Member Licensed User Longtime User Mar 1, 2016 #11 I finally did what I was looking for with that library: https://www.b4x.com/android/forum/threads/mssql-with-jdbc-library-v1-00.22244/ Upvote 0
I finally did what I was looking for with that library: https://www.b4x.com/android/forum/threads/mssql-with-jdbc-library-v1-00.22244/