User bio
404 bio not found
Member since Mar 30, 2022
Posts:
Replies:
screenshot of base64 converted stream which has CRLF at the end
just and example what i am getting at the end of every line
Certifications & Credly badges:
Smythe has no Certifications & Credly badges yet.
Global Masters badges:
Smythe has no Global Masters badges yet.
Followers:
Smythe has no followers yet.
Following:
In Service class(by using record map as input) i am converting pdf to base 64 using below code and the same source.encodedpdf is getting converted to HL7 in data transformation
Set pInput.LineTerminator = $C(10)
Set tMax=$$$MaxLocalLength*.5\1
Set tMax=tMax-(tMax#57)
If $IsObject(pInput) {
$$$TRACE("pInput = object")
Set tCurrLineLen = 0
Set tStream = ##class(%Stream.FileBinary).%New()
While 'pInput.AtEnd {
$$$TRACE("Reading filestream")
Set tData = pInput.Read(tMax)
Set tValue = $SYSTEM.Encryption.Base64Encode(tData)
Set tSC = tStream.Write(tValue)
If 'pInput.AtEnd {
Set tSC = tStream.Write($C(10))
$$$TRACE("Adding terminator.")
}