Good morning I am trying to save an image in a table that has a binary field and when I do it from the pc it does not give me an error, but when I do it from the mobile I get the error.
i´m using popup_upload_GetFile
Thanks
Carolina Gutierrez wrote:
Can you share the error, so that folks here can help you.
thanks
That is actually an SQL Server error. It happens when you try to insert/update a record on the database, with some value that is larger than the database field can hold.
For example, if you create an entity Person, and an attribute Name with Length 50 (which is the default), then it can only store texts up to 50 characters in length. If your user tries to insert a larger name, your application will display that error.
The solution is to identify which is the field that has too small of a Length, and then simply increase it.
Yeah, but how to identify it when you cannot see what it's trying to insert, that the trick :-)
Hi, That error can be caused by the length of the name or by some special characters like "ç" / "ã" / "~".When uploading the file you can rename it or trim the name to the attribute length. Best regards.(I know this post is old but my answer may help others who come seeking for help in this topic)