Print using base64 stream

Hello All

We are trying out different print soft wares that can deliver the documents to the printer using base64 encoded format. Does the planet press have such capabilities to decode a base64 encoded document and deliver to the printer?

Converting a file to/from BASE64 can be achieved with a very simple automated script, the resulting file can be sent to a printer.

Here’s an example VBscript that can be used for Base64 encoding.

'Purpose: Base64 encode a file
sFile = "C:\PlanetPress\test.pdf"

inByteArray = readBytes(sFile)
base64Encoded = encodeBase64(inByteArray)

Watch.Log "Encoded string is " & base64Encoded ,3

Private function readBytes(file)
dim inStream
' ADODB stream object used
set inStream = CreateObject("ADODB.Stream")
'open with no arguments makes the stream an empty container
inStream.Open
inStream.type= 1
inStream.LoadFromFile(file)
readBytes = inStream.Read()
end function

Private function encodeBase64(bytes)
dim DM, EL
Set DM = CreateObject("Microsoft.XMLDOM")
'Create temporary node with Base64 data type
Set EL = DM.createElement("tmp")
EL.DataType = "bin.base64"
' Set bytes, get encoded String
EL.NodeTypedValue = bytes
encodeBase64 = EL.Text
end function

Hope this helps!

Thank you for the response. Appreciate it. Are you aware of any documentation which can teach me how to expose a SOAP(or any other service) service in pp so that my application can connect to planet press, send data (preferably in base64) where the planet press will decode it and print it.

Thank you for the response. Are you aware of any documentation which can teach me how to expose a SOAP(or any other service) service in pp so that my application can connect to planet press, send data (preferably in base64) where the planet press will decode it and print it.

Hello Phil
Thanks for the response. The documentation tells me that I can send base64 encoded files via Input SOAP method (which they say uses SubmitJob). However, I am not able to see any parameters on the Input SOAP plugin - Such as SOAPActionName/output etc. I have the trial version of planet press. Is this the expected behavior? Please let me know. Appreciate the resonse

Hi,
The dialog you are seeing is not limited by the trail licence, it is standard with the Input SOAP plug-in. You might want to try using the SOAP Client Plug-in (which can be found in the Outputs tab) instead. This gives you the option to select the available method based on the WSDL.

1 Like

Hello Justin

Thanks for the response. I am indeed looking for soap input. I would like planet press to be the Server and I am developing the soap client. However, when I try from Soap UI, I am getting the error for Submit job. Can you please help me by telling me what is it I am doing wrong here.

Make sure you’ve created user accounts that can access the SOAP services. Launch the Access Manager (from the Tools menu) and set the names, passwords and list of processes each user is allowed to interact with.