FwupdPlugin.Firmware.get_bytes

### Method

# FwupdPlugin Firmwareget_bytes

since: 1.6.0

#### Declaration [src]

    GBytes*
    fu_firmware_get_bytes (
      FuFirmware* self
      GError** error
    )

#### Description [src]

Gets the firmware payload, which does not have any header or footer included.

If there is more than one potential payload or image section then `fu_firmware_add_image()` should be used instead.

Available since: 1.6.0

#### Return value

Type: `GBytes`

A `GBytes`, or `NULL` if the payload has never been set.

The caller of the method takes ownership of the data, and is responsible for freeing it.