PDF appears corrupt in Sandbox
Tuesday, October 20, 2015 at 11:43amI'm running the follow code (segment) and my pdf is showing up garbled on the sandbox using Java API version 10.10.1
I can read the file Consent.pdf using any reader on my workstation, but when it gets to the sandbox site it is showing up as a series of garbled text (starts with
@`%PDF-1.3... etc....
CODE SEGEMENT Follows....
EslClient eslClient = new EslClient( API_KEY, API_URL );
InputStream myPDF = null;
myPDF = Hello.class.getResourceAsStream( "/Consent.pdf" );
DocumentBuilder db = DocumentBuilder.newDocumentWithName("Consent");
db.withDescription("Sample Consent Document");
db.fromStream(myPDF, DocumentType.PDF);
db.withSignature(sig);
Document d1 = db.build();
PackageBuilder pb = PackageBuilder.newPackageNamed("Don Sample Package Friday Oct 16");
pb.withSigner(s);
pb.withDocument(d1);
DocumentPackage dp = pb.build();
PackageId id = eslClient.createPackage(dp);
eslClient.sendPackage(id);
Reply to: PDF appears corrupt in Sandbox
Wednesday, October 21, 2015 at 04:36amReply to: PDF appears corrupt in Sandbox
Wednesday, October 21, 2015 at 07:13amReply to: PDF appears corrupt in Sandbox
Wednesday, October 21, 2015 at 07:40amReply to: PDF appears corrupt in Sandbox
Wednesday, October 21, 2015 at 08:54amReply to: PDF appears corrupt in Sandbox
Wednesday, October 21, 2015 at 10:41amReply to: PDF appears corrupt in Sandbox
Wednesday, October 21, 2015 at 10:45am