I want to save DPL labels, similar to ZPL, in MSSQL database for future retrieval and printing. My problem is the DPL string contains non-printable characters that are being stripped out of my query results, for example the STX delimiter (start of line) \x02.
I assume the characters are being stored properly based on copying the string from management studio and pasting into notepad++ shows the missing characters
However when I query the label string and print the results in ignition the STX delimiter is gone, however the end of line character is still present.
Yeah I noticed that. When I read the file from disk then print the results the characters in question aren’t visible, but they are still there. When I query them from the database and print them they just aren’t there period, but they are in the database.
I think your suggestion of reading the label file as a byte array and storing it that way might be the way to go.