~DY Download Objects

Images, graphics and stored formats ZPL tilde command

Downloads a graphic object or a font file to the printer in any supported format, with a choice of encoding and file extension.

Format ~DYd:f,b,x,t,w,data

~DY parameters

Parameters of ~DY
ParameterMeaningAccepted valuesDefault
dfile locationp. 181

Where in the printer the file is stored.

Firmware.NRD and .PAC files reside on E: in firmware versions V60.15.x, V50.15.x, or later.

  • R:Storage location R:.
  • E:Storage location E:.
  • B:Storage location B:.
  • A:Storage location A:.
R:
ffile namep. 181

The name the file is stored under.

The guide's font example writes FONTFILE.TTF in this position; see the guide-issue note.

1 to 8 alphanumeric characters.

UNKNOWN

If no name is given, UNKNOWN is used.

bformat downloaded in data fieldp. 181

How the data in the last parameter is encoded.

Firmware.TTE and .TTF are only supported in firmware versions V60.14.x, V50.14.x, or later.

  • AUncompressed (ZB64, ASCII).
  • BUncompressed (.TTE, .TTF, binary).
  • CAR-compressed, used only by Zebra's BAR-ONE v5.
  • PPortable network graphic (.PNG), ZB64 encoded.

A value must be specified.

xextension of stored filep. 182

The kind of file being stored, which sets its extension.

Firmware.TTE and .OTF are only supported in firmware versions V60.14.x, V50.14.x, or later. .NRD and .PAC are only supported in firmware versions V60.15.x, V50.15.x, or later.

  • Bbitmap
  • ETrueType Extension (.TTE)
  • Graw bitmap (.GRF)
  • Pstore as compressed (.PNG)
  • TTrueType (.TTF) or OpenType (.OTF)
  • XPaintbrush (.PCX)
  • NRDNon Readable File (.NRD)
  • PACProtected Access Credential (.PAC)
  • Cuser-defined menu file (WML)
  • Fuser-defined webpage file (HTM)
  • Hprinter feedback file (GET)

A value other than the accepted ones defaults to .GRF.

ttotal number of bytes in filep. 182

The size of the file in bytes.

Firmware.TTE is only supported in firmware versions V60.14.x, V50.14.x, or later.

The actual size of the file, not the disk space it takes. For .GRF images the size after decompression into memory. The guide lists .BMP, .GRF, .PCX, .PNG, .TTF and .TTE here.

Not stated in the guide.

wtotal number of bytes per rowp. 183

How many bytes make up one row of a .GRF image.

Firmware.TTE is only supported in firmware version V60.14.x, V50.14.x, or later. .NRD and .PAC files are supported in firmware version V60.15.x, V50.15.x, or later.

For .GRF images the number of bytes per row. For .PNG, .TTF, .TTE, .NRD and .PAC files the value is ignored.

Not stated in the guide.

datadatap. 183

The file contents, encoded as chosen with b.

ASCII hexadecimal or ZB64 when b is A or P; binary when b is B or C. With binary data, all control prefixes and flow control characters are ignored until the full number of bytes has been received.

Not stated in the guide.

~DY notes and gotchas

  • Firmware

    In firmware V60.14.x, V50.14.x or later: ZebraNet Bridge can be used to download fonts and graphics with the command; OpenType tables are supported only when the font is downloaded with it; OpenType fonts (.OTF) are supported if downloaded as TrueType, and in the printer .OTF fonts take the .TTF extension.

    Firmware: V60.14.x, V50.14.x, or later. p. 184
  • Note

    The command downloads graphic objects or fonts in any supported format. The guide says it can be used in place of ~DG for more saving and loading options; the ~DG entry points here for the same reason.

    pp. 175, 181
  • Note

    The guide calls ~DY the preferred command for downloading TrueType fonts on printers with firmware later than X.13, and says it is faster than ~DU. It also supports downloading wireless certificate files.

    p. 181
  • Note

    For certificate files the page says the printer supports PEM-formatted certificate files, a client certificate and a private key as two files each downloaded separately, and exportable PAC files for EAP-FAST. It recommends linear-style memory devices for larger objects.

    p. 181
  • Note

    Encoding: ZB64 is Base64 (the MIME scheme used in e-mail), optionally after LZ77 compression (Z64). The guide says Base64 avoids the caret and tilde characters and expands the data by 33 percent against 100 percent for ASCII hexadecimal, and that a CRC lets the printer invalidate an object when the check fails or the download is aborted.

    pp. 184, 1602
  • Note

    The ~DY command and the binary content may be sent as two separate streams, but the connection must stay open until both have been sent. The printer's data light stays on until all the bytes named in the command have arrived, and that is when the download counts as complete.

    p. 183
  • Note

    The guide says that for best results graphic files should be monochrome (black and white) or dithered.

    p. 183
  • Note

    The guide's examples are a binary TrueType font download to permanent flash memory (E:), ^FO0,0 with ^IM to bring a stored PNG to position 0,0, and ^IL at the start of a format to load a stored PNG, which needs no ^FO.

    pp. 183, 184
Where the guide contradicts itself (3)
  • Guide issue

    The Format line on page 181 is printed as ~DVd:f,b,x,t,w,data, with the letters DV, while the heading, the text and the contents list say ~DY. The record uses ~DY.

    p. 181
  • Guide issue

    The f parameter is described as a name of 1 to 8 alphanumeric characters, with the extension set by x, but the guide's font example writes FONTFILE.TTF in the name position and T for x. The guide does not say how the name and extension combine.

    pp. 181 to 183
  • Guide issue

    The ^IL example on pages 183 and 184 ends with ^X instead of ^XZ.

    pp. 183, 184

~DY example

example.zplZPL
~DYR:BOX8,A,G,8,1,FF818181818181FF
^XA
^FO30,30^XGR:BOX8.GRF,1,1^FS
^XZ

Downloads a small bitmap to R: under the name BOX8. The b value A says the data is ASCII-encoded (the guide lets A carry plain ASCII hexadecimal or ZB64; this is plain hexadecimal), x is G (raw bitmap, .GRF), t is 8 bytes and w is 1 byte per row, followed by 16 hex digits, two per byte, which is exactly 8 bytes of image data. The format then recalls it with ^XG, which the guide gives as .GRF. The extension handling follows the x description; the guide does not show this exact combination.

Guides that use ~DY

BarcoderX is a .NET SDK for thermal labels and barcodes. See how it prints and exports labels.

Source Zebra, ZPL II, ZBI 2, Set-Get-Do, Mirror, WML Programming Guide, P1134473-11EN Rev A, 2026/07/05, pages 175, 181 to 184, 201, 204, 245, 247, 248, 373, 1602.

Written by BarcoderX in its own words. Checked against the guide on 2026-11-14.

ZPL and ZPL II are trademarks of Zebra Technologies Corporation. This reference is written by BarcoderX in its own words from Zebra's published programming guide. BarcoderX is an independent product and is not affiliated with, endorsed by or sponsored by Zebra Technologies.