---
title: "writeBlob(key:from:)"
framework: applearchive
role: symbol
role_heading: Instance Method
path: "applearchive/archivestreamprotocol/writeblob(key:from:)"
---

# writeBlob(key:from:)

Writes an entry blob data.

## Declaration

```swift
func writeBlob(key: ArchiveHeader.FieldKey, from buffer: UnsafeRawBufferPointer) throws
```

## Parameters

- `key`: The blob field key.
- `buffer`: The data buffer that the operation uses as a source for the entry blob data.

## See Also

### Reading and Writing Blobs

- [readBlob(key:into:)](applearchive/archivestreamprotocol/readblob(key:into:).md)
