web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Microsoft Dynamics NAV (Archived)

Junk value in BLOB

(0) ShareShare
ReportReport
Posted on by

I read a text document and then save it in a BLOB field in NAV. Reading function works fine and my problem is every time when I assign my text to BLOB field and read it back, it shows some junk values in the start of the text. 

It is same value all the time and it always comes in the start of the text. 

I check the text file and it does not contain any value like that and then I check the read message from NAV and it does not have the junk value also. 

This only happen when I write my text to BLOB. 

How to overcome this issue. 

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    keoma Profile Picture
    32,729 on at
    RE: Junk value in BLOB

    check the blob field properties: it should by of (sub)type memo (not image/bitmap).

    also try using compressed=no.

  • Verified answer
    Tharanga Chandrasekara Profile Picture
    23,118 on at
    RE: Junk value in BLOB

    or If you know the place of the junk value in the text then you can delete it with the following code

    DELSTR(text, startPos,endPos);

  • Suggested answer
    4BzSoftware Profile Picture
    6,073 on at
    RE: Junk value in BLOB

    Hi Dushan,

    I faced this problem when I developed Query and Excel Report tool, the email body. Just clear the BLOB field before update new text:

    //S-002{

    CLEAR("Email Body");

    IF (gTxt_EmailBody.LENGTH > 0) THEN BEGIN

     "Email Body".CREATEOUTSTREAM(lOuS_OutStream);

     gTxt_EmailBody.WRITE(lOuS_OutStream);

    END;

    //S-002}

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Pallavi Phade – Community Spotlight

We are honored to recognize Pallavi Phade as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics NAV (Archived)

#1
Alexander Ermakov Profile Picture

Alexander Ermakov 2

#2
SC666 Profile Picture

SC666 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans