# In Microsoft SQL I have a column of type 'image' and I am unable to view this column with the n8n node

**URL:** <https://community.n8n.io/t/in-microsoft-sql-i-have-a-column-of-type-image-and-i-am-unable-to-view-this-column-with-the-n8n-node/40223>\
**Category:** Questions\
**Tags:** microsoft-sql\
**Created:** [February 14, 2024, 12:12pm UTC](https://community.n8n.io/t/in-microsoft-sql-i-have-a-column-of-type-image-and-i-am-unable-to-view-this-column-with-the-n8n-node/40223 "2024-02-14T12:12:27Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![rhafaelcm](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/rhafaelcm/32/35466_2.png) [@rhafaelcm](https://community.n8n.io/u/rhafaelcm)\
**Post date:** [February 14, 2024, 12:12pm UTC](https://community.n8n.io/t/in-microsoft-sql-i-have-a-column-of-type-image-and-i-am-unable-to-view-this-column-with-the-n8n-node/40223/1 "2024-02-14T12:12:27Z")

</div>

In Microsoft SQL I have a column of type ‘image’ when I use the query:

SELECT TOP 1  
rowguid,  
IMAGE  
FROM PHOTOS

I receive data from the IMAGE column in Buffer format, but I need to receive or transform it to base64, how can I do this?

 ![image](https://europe1.discourse-cdn.com/n8n/original/3X/7/9/79be1abaabcc830c309e839f273f57fee57a645f.png)

---

<div class="post-metadata">

**Author:** ![n8n](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/n8n/32/196425_2.png) [@n8n](https://community.n8n.io/u/n8n)\
**Post date:** [February 14, 2024, 12:12pm UTC](https://community.n8n.io/t/in-microsoft-sql-i-have-a-column-of-type-image-and-i-am-unable-to-view-this-column-with-the-n8n-node/40223/2 "2024-02-14T12:12:28Z")

</div>

It looks like your topic is missing some important information. Could you provide the following if applicable.

- **n8n version:**
- **Database (default: SQLite):**
- **n8n EXECUTIONS\_PROCESS setting (default: own, main):**
- **Running n8n via (Docker, npm, n8n cloud, desktop app):**
- **Operating system:**

---

<div class="post-metadata">

**Author:** ![Jon](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/jon/32/40174_2.png) [@Jon](https://community.n8n.io/u/Jon)\
**Post date:** [February 16, 2024, 4:11am UTC](https://community.n8n.io/t/in-microsoft-sql-i-have-a-column-of-type-image-and-i-am-unable-to-view-this-column-with-the-n8n-node/40223/3 "2024-02-16T04:11:08Z")

</div>

Hey @rhafaelcm,

Welcome to the community 🫶

It sounds like we might need to add an option to the node to return binary data as base64. For now though the best I can think of would be to try using a code node after the SQL node to do the conversion, I don’t have an example to hand but I think there are examples here on the forum for working with binary data in a code node if it helps.

---

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/system/32/195824_2.png) [@system](https://community.n8n.io/u/system)\
**Post date:** [May 16, 2024, 4:11am UTC](https://community.n8n.io/t/in-microsoft-sql-i-have-a-column-of-type-image-and-i-am-unable-to-view-this-column-with-the-n8n-node/40223/4 "2024-05-16T04:11:50Z")

</div>

Closed on May 16, 2024, 4:11am UTC

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
