WinBatch Technical Support Forum

All Things WinBatch => WinBatch => Topic started by: altmanpg on November 12, 2019, 03:49:43 pm

Title: Send Binary File to Network Printer
Post by: altmanpg on November 12, 2019, 03:49:43 pm
I need to be able to send a binary file to a network printer. Myfile.bin to-> IP address / port.

I've created a small application to send text command files by reading them and sending one line at a time and that works fine for those but the binary file needs to be sent differently and I have not yet been able to find anything that helps me get that coded. The file is being sent to a printer. It is a firmware upgrade file. The printer knows how to handle the file when it gets it i just need to be able to stream the file to it over the network. Example LPR Command (LPR -P 0 -S XXX.XXX.XXX.XXX Myfile.bin)
Title: Re: Send Binary File to Network Printer
Post by: td on November 13, 2019, 08:37:46 am
Is this even a WinBatch related question?  What technology are you using to send your commands to the printer?.  What format does the print expect the file to be in? With many protocols, you send bitstreams over a network with some form of encoding.  This prevents the bitstream bits from being interpreted as control squences or statements.