Skip to Content
author's profile photo Former Member
Former Member

Signature property sends corrupt data when field stays empty

Hi guys,

We have a problem with the signature field in our Agentry app.

When the Signature field is signed, the property sends the signature to the back-end like it should.

But when the Signature field is left empty, it sends corrupt data to the back-end.

Anybody got an idea of what the problem could be?

Thanks!

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Apr 23, 2016 at 05:30 PM

    Adam,

    it happens because while uploading the signature property we convert it into different format based on the SAP database needs. while converting if the data is blank as in your case the converted data might append zeros. which will make the file corrupted. So, while uploading you have to handle this appending zeros case.

    Here is my question if your signature property is blank why do you want to send the data to database? you shouldn't.

    This is an exceptional scenario which you have to handle either in Agentry or in Java.

    Hope this makes you clear.

    Thanks

    Ajitesh

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi Ajitesh,

      Thanks for your answer, it's very helpful.

      So I would have to stop the transaction from sending the signature to the backend?

      I'm very new to agentry so I'll try to find out how to accomplish this.

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.