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