Blob:getString

Returns a binary string containing the Blob's data.

data = Blob:getString()

Arguments

None

Returns

NameTypeDescription
datastringThe Blob's data.

Example

Manually copy a file using Blobs:

blob = lovr.filesystem.newBlob('image.png')
lovr.filesystem.write('copy.png', blob:getString())

See also