I'm calling to a API that it is retrieving the content of a file as Content of response. I'm catching the binary but I need to convert this Stream to a Base64 string.
I'm trying to convert a %Stream.GlobaBinary to a Base64 string using the following code, but it doesn't work.
do stream1.Rewind()
set response = ""while 'stream1.AtEnd {
set temp=stream.Read(4000)
set temp=$system.Encryption.Base64Encode(temp)
set response = response_temp
}
The content is not correctly converted to Base64
Also, I've tried to convert it as dynamic JSon and get the stream as base64
do stream1.Rewind()
set contentfile = {}
set contentfile.file = stream1
set response=contentfile.%Get("file",,"stream>base64")
But the value of response is a %Stream.DynamicBinary
Is there any way to convert the content of the stream as Base64?
I'm sure that it must be very simple, but I don't found it :(
Hi Developers, Let's meet in-person at our next Developer Meetup in Boston on April 24 5:30 pm! >> RSVP here <<
Tech Talks: "FHIR: The Only FHIR Presentation Without a Pun" - by Vic Sun, Sales Engineer, InterSystems
"Data Health, Patient Wealth: Transforming Care Through Quality Integrations" by Aya Heshmat, Product Manager, Health Connect We will explore the critical role of data quality in ensuring accurate, timely, and effective patient care, highlighting innovative strategies for integrating diverse healthcare data systems. Overviewing the challenges and opportunities in healthcare data management, we will cover methods of data transformation and integration that support clinical decision-making, improve patient outcomes, and foster a more efficient and effective healthcare system. Through real-world examples, cutting-edge research, and practical solutions, this presentation aims to empower healthcare professionals, data scientists, and administrators to leverage the power of high-quality data to make a significant impact in the lives of patients. Join us in exploring how we can transform healthcare delivery through the lens of data health, ensuring a wealth of benefits for patients worldwide.
Food, beverages, and networking opportunities will be provided as always.
⏱ Day and Time: April 24, 5:30 p.m. to 7:30 p.m. 📍CIC Venture Café in Cambridge, Massachusetts
Join our Discord channel to connect with developers from the InterSystems developer ecosystem.
Join us at the upcoming Developer Roundtable on April 25th at 9 am ET | 3 pm CET. 📍 We will have 2 topics covered by the invited experts and open discussion as always.
Tech Talks: ➡ Practical Usage of Embedded Python - by Stefan Wittmann Product Manager, InterSystems
▶ Recording:
Do you have questions which you'd like to discuss on this roundtable? Please share them in the comments to this post.
Not a Global Masters member yet? Sign in with your InterSystems SSO credentials.
全てのアプリケーションは、IRIS Community Edition 、IRIS for Health Community Edition で動作する必要があります。MacやWindowsのホスト版をご利用いただく場合は、インストールキットをダウンロードしてください。コンテナを利用する場合は InterSystems Container Registryから pull、または、最新バージョンのイメージ(intersystemsdc/iris-community:latest または intersystemsdc/irishealth-community:latest)をご利用ください。