Send Binary File to Network Printer

Started by altmanpg, November 12, 2019, 03:49:43 PM

Previous topic - Next topic

altmanpg

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)

td

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. 
"No one who sees a peregrine falcon fly can ever forget the beauty and thrill of that flight."
  - Dr. Tom Cade