Stream blob in bigtext

ACaignieACaignie Member Posts: 91
Hello,
I need to copy the contents of a blob field into a bigtext. For this purpose I use an instream variable, but this doesn't seem to work in RTC.
In classic client this works fine however.
Thinking it might be a bug I tested this in NAV 2016, but this doesn't work either.

This is my code:

CompanyInfo.GET();
CompanyInfo.CALCFIELDS( Picture);
MESSAGE(FORMAT(CompanyInfo.Picture.HASVALUE())); //shows YES
CompanyInfo.Picture.CREATEINSTREAM(MyInStream);
bolOK := MyBigText.READ(MyInStream);
MESSAGE(FORMAT(bolOK)); //shows YES
MESSAGE(FORMAT(MyBigText.LENGTH)); //Shows 4

The company information contains a picture (size is about 200KB), so the length of my bigtext should not be 4, which is what the message shows.

Any ideas? This is also how Microsoft explains it on the site (https://msdn.microsoft.com/nl-be/library/dd355163(v=nav.90).aspx)

Kind regards,
Andy Caignie





Best Answer

Answers

Sign In or Register to comment.