When sending GetThumbnailByTime command to Milestone Mobile Server API, the response contain the base64 image but under the result section, ERROR instead of OK status. I am able to decode the base64 to an image and the image looks to be the correct frame that I am retrieving.
Hi Hong,
Could you check what is the value of “ErrorCode” please ?
(It should have some integer value, probably greater than zero)
In order to be easier to narrow down the possible reasons in the server.
Thanks in advance !
The ErrorCode is 43.
Hi Hong,
Error code 43 means “Input parameter is too long”.
I would assume you are using .NET part of MIP SDK Mobile.
Last year we’ve implemented a lot of security extensions to Mobile server as well as in the SDK.
Part of that are checks for command parameters length and list of restricted symbols.
The goal is to be reduced risk for client side attacks.
“Thumbnail” command parameter is in exception list since version 12.3 (but not in 12.2) with defined maximal possible length of 500 000 characters.
You most probably fall in one of those two cases:
- Using MIP SDK Mobile version 12.1 or 12.2;
- Requested thumbnail is with extra ordinary size (1920 x 1080) for example.
In general SDK just informs with this error code that something could be problematic in the response and lets SDK client to handle it further.
My team is using Protocol Integration → Mobile Server Protocol to get the thumbnail image.
Hm,
this makes it a little bit stranger then.
What is the version of the MoS ?
And did you tried what will happen with different requested resolutions ?