Smythe is a
Question Whiz
Recap 2024
Publications:
4questions
16comments
Top Post:
655
people reached
User bio
404 bio not found
Member since Mar 30, 2022
Replies:

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.")
}

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: