def build_storage_fragment(pdu, context, flags, body)
      # Big endian encoding:
      @outgoing.endian = @net_endian
      # Clear the outgoing binary string:
      @outgoing.reset
      # Build in reverse, putting elements in front of the binary string:
      # Insert the data (body):
      @outgoing.add_last(body)
      # Flags (1 byte)
      @outgoing.encode_first(flags, "HEX")
      # Context ID (1 byte)
      @outgoing.encode_first(context, "BY")
      # PDV Length (of remaining data) (4 bytes)
      @outgoing.encode_first(@outgoing.string.length, "UL")
      # PRESENTATION DATA VALUE (the above)
      append_header(pdu)
    end
def build_storage_fragment(pdu, context, flags, body)
      # Big endian encoding:
      @outgoing.endian = @net_endian
      # Clear the outgoing binary string:
      @outgoing.reset
      # Build in reverse, putting elements in front of the binary string:
      # Insert the data (body):
      @outgoing.add_last(body)
      # Flags (1 byte)
      @outgoing.encode_first(flags, "HEX")
      # Context ID (1 byte)
      @outgoing.encode_first(context, "BY")
      # PDV Length (of remaining data) (4 bytes)
      @outgoing.encode_first(@outgoing.string.length, "UL")
      # PRESENTATION DATA VALUE (the above)
      append_header(pdu)
    end
Builds the binary string which makes up a C-STORE data fragment.

 === Parameters

 * <tt>pdu</tt> -- The data fragment's PDU string.
 * <tt>context</tt> -- Presentation context ID byte (references a presentation context from the association).
 * <tt>flags</tt> -- The flag string, which identifies if this is the last data fragment or not.
 * <tt>body</tt> -- A pre-encoded binary string (typicall a segment of a DICOM file to be transmitted).