water huang · Jul 21, 2024 go to post

The client and server use different SSL protocols. You can try changing the 1.3 in the SSL configuration in iris to the highest 1.2.

water huang · Mar 3, 2024 go to post

i got it,the code must like this "baseStr = ##class(%SYSTEM.Encryption).Base64Encode(byteList,1)",len must be 24*n,and len1 must be 8*n

water huang · Mar 3, 2024 go to post

yes, i konw it, if not Insert CR/LF after every 76 characters,when len is 24*30*2, len1 is 1920,when len is 24*30,len1 is 960, and i can get the right pdf,if the base64 data comes from others, how can i know the num of len1?

water huang · Dec 5, 2023 go to post

and how to parse "<NewClass2><OPDT>2023-11-30 11:07:02</OPDT></NewClass2>" to a object as type of Samples.NewClass2?

water huang · Dec 3, 2023 go to post

Ashok,thank you,this is what i asked,in fact ,i should change  %Library.DateTime to and %Library.TimeStamp 
 

water huang · Jul 27, 2023 go to post

i would like to use JAVA to open service for iris,so i don·t care if iris not support any java version

water huang · Mar 21, 2023 go to post

thank you,because of most cases use old version cache,it don't support %Studio.SourceControl. do you know why Projections is a bad way? what  disaster  does it will cause? one side is backup local code,i backup it to local,and then upload to gitee, i tried to used gitee’s callback function to autobackup,but failed。and the second side is to make backuping and updating code being simplly.Implementation Engineers want a simple way.

water huang · Mar 21, 2023 go to post

at present situation,i work with ensemble2016 more than iris,and it seems doesn‘t support plug-in. I actually prefer to use dot  syntax ,i think it shows  much clearly levels。
 

water huang · Mar 21, 2023 go to post

thks, local code can use git,but in production environment,there is no git,and usually,i have the code,but not include data.

water huang · Feb 17, 2023 go to post

you can test this code,it will work

B64S=##class(%GlobalCharacterStream).%New()
'$IsObject(file) d
.fileName=file
.file=##class(%FileBinaryStream).%New()
.file.LinkToFile(fileName)
.file.Rewind()
len=513 ; text must be divisible by 3 and 57
While 'file.AtEnd {
text=file.Read(.len)
q:len'>0
B64S.Write($tr($system.Encryption.Base64Encode(text),$c(10,13),""))
}
B64S

water huang · Jan 23, 2021 go to post

thanks,%XML.TextReader could read the xml,but what i want to know is, xml 2 obj and i can reset some element`s value ,and then output the xml with new data

water huang · Jan 23, 2021 go to post

<?xml version="1.0" encoding="UTF-8"?>
<ClinicalDocument xmlns="urn:hl7-org:v3" xmlns:mif="urn:hl7-org:v3/mif" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="urn:hl7-org:v3 ../sdschemas/SDA.xsd" classCode="DOCCLIN" moodCode="EVN">
 <observation>
  <value xsi:type="ST">xxxx</value>
 </observation>
</ClinicalDocument>

water huang · Apr 7, 2019 go to post

PublicKeyFile="c:/key/pem/certself.pem"
Set filestream=##class(%FileCharacterStream).%New()
Set filestream.Filename=PublicKeyFile
Set PublicKeyStr=filestream.Read(.len)
Plaintext="1"
Set Ciphertext=##class(%SYSTEM.Encryption).RSAEncrypt(Plaintext,PublicKeyStr)
##class(%SYSTEM.Encryption).RSAGetLastError(),!
Set Ciphertext=##class(%SYSTEM.Encryption).Base64Encode(Ciphertext)
Ciphertext,!