on 09-04-2018 9:01 AM
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
User | Count |
---|---|
77 | |
11 | |
10 | |
8 | |
6 | |
6 | |
6 | |
6 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.