Huicai is an Avid Reader. No contributions for 2024.
Without a doubt, there will be something to
share on the Community in 2025!
User bio
404 bio not found
Member since Apr 19, 2021
Replies:

1. 通过%NetRequest类获得图片

2. 通过下面方法得到图片的Base64流

 ClassMethod Img2Base64(imgDataStream) As %Stream.GlobalCharacter
{
       Set sgc = ##class(%Stream.GlobalCharacter).%New()
    set byteList = imgDataStream.Read(12288)
    while(byteList'="")
         set baseStr = ##class(%SYSTEM.Encryption).Base64Encode(byteList)
             do sgc.Write(baseStr)
       set byteList = ""         
       set byteList = img.Read(12288)
    }     
    do imgDataStream.%Close() 
    set imgDataStream=""  
    quit sgc
}
Open Exchange applications:
Certifications & Credly badges:
Huicai has no Certifications & Credly badges yet.
Global Masters badges:
Huicai has no Global Masters badges yet.
Followers:
Huicai has no followers yet.
Following:
Huicai has not followed anybody yet.