# Blob data type for device attributes format issues

**URL:** <https://forums.losant.com/t/blob-data-type-for-device-attributes-format-issues/3144>\
**Category:** Help\
**Tags:** workflow, device\
**Created:** [July 24, 2020, 11:08pm UTC](https://forums.losant.com/t/blob-data-type-for-device-attributes-format-issues/3144 "2020-07-24T23:08:10Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![cam415](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.losant.com/cam415/32/652_2.png) [@cam415](https://forums.losant.com/u/cam415)\
**Post date:** [July 24, 2020, 11:08pm UTC](https://forums.losant.com/t/blob-data-type-for-device-attributes-format-issues/3144/1 "2020-07-24T23:08:10Z")

</div>

Just looking for some guidance on using the blob data type for attributes on devices. Trying to store a base64 encoded string (longer than the 1023 string max) using the workflow Device:State node. Looking at the Device Log I can see the following error message: `The data for a provided attribute is not valid for that attribute's data type.`  
I have tried various different content type but not having any luck and figured you guys could point me in the right direction. thanks

---

<div class="post-metadata">

**Author:** ![anaptfox](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.losant.com/anaptfox/32/873_2.png) [@anaptfox](https://forums.losant.com/u/anaptfox)\
**Post date:** [July 27, 2020, 1:05pm UTC](https://forums.losant.com/t/blob-data-type-for-device-attributes-format-issues/3144/4 "2020-07-27T13:05:27Z")

</div>

@cam415,

Welcome to the Losant Forums!

Would you be able to provide a screenshot of this error and an example of the data you’re trying to report as a blob attribute?

Just to help out in the meantime, when reporting Blob Data from a workflow you may use the [base64Encoded](https://docs.losant.com/workflows/accessing-payload-data/#format-helpers) helper to re-encode your UTF8 string to base64:

```auto
{{{encodeBase64 working.imageData}}}

```
