Comments (2)
Its not mandatory, its just to show how to encode the document contents to Base64 before sending it to DocuSign API. Here is some example that might work for you:
import java.io.DataInputStream;
import java.io.FileInputStream;
import java.io.IOException;
import java.io.File;
import java.util.ArrayList;
import java.util.List;
….
try {
// read file from a local directory
FileInputStream fis = new FileInputStream(file);
DataInputStream dis = new DataInputStream(new FileInputStream(file));
try {
fileBytes = new byte[(int) file.length()];
dis.readFully(fileBytes);
} finally {
dis.close();
fis.close();
}
} catch (IOException ioExcp) {
// handle error
System.out.println("Exception: " + ioExcp);
return;
}
…
String base64Doc = Base64.encodeToString(fileBytes, true);
doc.setDocumentBase64(base64Doc);
doc.setName(file.getName());
from docusign-esign-java-client.
Thank you for your quickly reponse. I'm removing the class and testing your source.
from docusign-esign-java-client.
Related Issues (20)
- How to send the same envelope for two group of people? HOT 1
- How to Use both embedded signing and email with the same envelopeId? HOT 4
- How to publish multiple templates from the development environment to the production environment? HOT 2
- 《EnvelopeDocuments : get 》 The obtained pdf file has no tabs HOT 2
- Not a good practice to manipulate System level property and only allow TLS 1.2 HOT 4
- Classloader leak due to ApiClient$SecureTrustManager HOT 3
- SDK is not typesafe HOT 2
- Can I use an older docusign version (3.14) with older java version (8)? HOT 1
- Dependency version issues when updating from v3.19.0 to 3.22.0 HOT 6
- Transitive dependencies are gone in version 4.1.0 HOT 7
- DocuSign API to fech AuditLogs Information HOT 4
- Filename for pdfs in zip archive do not match EnvelopeDocument.getName() HOT 4
- Dependency conflict: jakarta/ws/rs/ext/ContextResolver HOT 3
- How to open Agreement Cloud Editor in our own website
- How to open Agreement Cloud Editor in our own website HOT 2
- [Question] Sending MS Word Docx file with ContentControls used to work, now it displays the content control in DocuSign HOT 2
- jersey-common missing from external dependency in readme HOT 2
- Model classes should be serializable HOT 8
- Docusign Focused is rendering an invisible iframe which makes complete app unusable HOT 20
- Bouncycastle vulnerabilities HOT 8
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from docusign-esign-java-client.