Account


Earned badges

Achievement: Latest Unlocked

Topic Started

Topics

We are seeing rare instances where downloaded PDFs from OneSpan are corrupted. We are using Java SDK. Are there previous examples of this and fixes?

 

Thanks.

I'd like to do validation on a group of radio buttons to just check to see if one has been chosen. If none are chosen then validation kicks in. Is there sample code for this?

Scenario: We have a two-page PDF where OneSpan form is programmatically created using Java SDK. We have a text field on both pages that are identical.

I am fairly new to OneSpan sign API. I'm using Java SDK. Two questions:

Getting the following error when I try and create packages in my sandbox:

Replies Created

Reply to: Corrupt PDFs

0 votes

Hi Duo. I attached the two files.

 

I have attached the original files.  If you open using Notepad++ you will see they are full of NULLS. 

 


Reply to: Corrupt PDFs

0 votes

Hi Duo:

We are using java.io.FileOutputStream to write PDF file to a Windows network drive.

Does that help?


Reply to: Corrupt PDFs

0 votes

I'll go ahead and try the retry code with a minor modification to loop:

               int retry = 0;
                byte[] fileContent = null;
                while(retry < 3) {
                    fileContent = eslClient.downloadDocument(documentPackage.getId(), document.getId().getId());
                    if(fileContent != null && (char)fileContent[0] == '%') {
                     break;
                    }
                    retry++;
                }


Subscriptions

Topics Replies Freshness Views Users

We are seeing rare instances where downloaded PDFs from OneSpan are corrupted. We are using Java SDK. Are there previous examples of this and fixes?

 

Thanks.

8 3 years 1 month ago 99
Profile picture for user Duo_Liang

I'd like to do validation on a group of radio buttons to just check to see if one has been chosen. If none are chosen then validation kicks in. Is there sample code for this?

7 3 years 3 months ago 180
Profile picture for user Duo_Liang

Scenario: We have a two-page PDF where OneSpan form is programmatically created using Java SDK. We have a text field on both pages that are identical.

1 3 years 7 months ago 73
Profile picture for user Duo_Liang

I am fairly new to OneSpan sign API. I'm using Java SDK. Two questions:

3 3 years 8 months ago 83
Profile picture for user Duo_Liang

Getting the following error when I try and create packages in my sandbox:

3 3 years 8 months ago 166
Profile picture for user Duo_Liang

Code Share

This user has not submitted any code shares.

Subscriptions Release Notes

This user is not subscribed to any release notes.