Skip to Main Content

Integration

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How To get xsd:base64Binary data in the JavaEmbedding activity

Abhinav MittalFeb 13 2015 — edited Feb 13 2015

HI All,

I need to print a PDF Invoice by writing it directly to printer location viz \\MyServer\Printer.

I am able to do a copy using DOS but not able to write using FileAdapter and hence thought of writing using java.

However, i am not sure how to get base64Binary in my Java embedding activity as byte[] to pass it on to my Java class.

Can somebody please help me with this.

I am trying below ;

try 

addAuditTrailEntry("----Started--------");  

Element input= (Element)getVariableData("inputFile"); 

byte[] bytes=input.getTextContent(); 

String fName= (String)getVariableData("FileName");           

String outDirectory= (String)getVariableData("FileDirectory"); 

PDFBytePrint pb = new PDFBytePrint(); 

pb.writeFile(bytes,outDirectory,fName);

catch (Exception e) 

addAuditTrailEntry("Error Occurred : "+e.getMessage());  

}

Thanks in advance

Abhinav

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 13 2015
Added on Feb 13 2015
0 comments
582 views