
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
System.Byte[] Error when Loading Binary Data Type
Oct 28, 2021 3:39:42 AM
Apr 9, 2019 10:14:48 AM
The error System.Byte[] was occurring when attempting to load data from a binary data type column from MS SQL Server database.
Environment:
Qlik Sense Enterprise on Windows any version
Resolution:
This issue was resolved by creating a new column in the SQL Server database and converting the column to be varchar data type. Then this new varchar column could be read into Qlik Sense without any error.
This type of conversion function was used in the database in the process to create the new column:
Convert(NVARCHAR(MAX), "FieldName", 1) as Varchar_FieldName.
See Data Types for available Data Types in Qlik Sense.

- Mark as Read
- Mark as New
- Bookmark
- Permalink
- Report Inappropriate Content
I was able to extract varchar(max) binary as base64 into qlik via this select
select id,
cast('' as xml).value(
'xs:base64Binary(sql:column("tbl_data.BINARYDATA"))', 'varchar(max)'
) as Data_binary
from "db".dbo."tbl_data";