cancel
Showing results for 
Search instead for 
Did you mean: 

How to replace the null character with space using blobedit and blobmid

Former Member
0 Kudos

Convert the blob variable to a string and use the EncodingANSI! argument.

integer li_fnum

string ls_ansiString

string ls_unicodeString

long ll_bytes

blob lb_contents

li_fnum = FileOpen("filename", StreamMode!, Read!, Shared!)

if li_fnum > 0 then

ll_bytes = FileReadEx(li_fnum, lb_contents)

end if

ls_ansiString = string( lb_contents, encodingANSI!)

During the assignment of the blob to a string variable it is terminating at the first null Can some one tell me how to replace the null character with space using blobedit and blobmid

Accepted Solutions (0)

Answers (0)