Options

read BLOB from sql query (solved)

txerifftxeriff Member Posts: 492
edited 2016-05-02 in NAV Three Tier
Hi all,

Hope some1 can help. Im trying to read a BLOB from sql but I dont get proper information. tried the following:

,convert(varchar(max),convert(varbinary(max),[campoBLOB]))COLLATE SQL_Latin1_General_CP1_CI_AI as campoblobbbbb
,convert(nvarchar(max),convert(varbinary(max),campoBLOB)) COLLATE SQL_Latin1_General_CP1_CI_AI as campoblobbbbb2

also without collation but data is wrong.

Any ideas?6fa088r49s0o.png


Edit:

Found that uncompressed BLOB works fine but the accents. How could I fix them? As you can see in the image, red blox is standard NAV description text field. green is my BLOB field. it should show "saltó" in both cases. Any ideas?
thanks.

Edit2:

I managed to solve it using ansii2ascii codeunit I had. So I write values in ansi and read them writing back to ascii. It worked for me.

Answers

Sign In or Register to comment.