发布新帖

查找

问题
· 四月 9, 2024

Convert %Stream.GlobalBinary to Base64

Hi community,

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 :(

Best regards

6 Comments
讨论 (6)3
登录或注册以继续
公告
· 四月 9, 2024

Developer Meetup in Boston, April 24

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.

讨论 (0)1
登录或注册以继续
公告
· 四月 9, 2024

InterSystems Online Developer Roundtable - April 25, 2024

Hi Developers,

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. 

1 Comment
讨论 (1)1
登录或注册以继续
问题
· 四月 9, 2024

M里边怎么解析html文件,用截图的类的第二个参数的模板怎么设置呢

2 Comments
讨论 (2)1
登录或注册以继续
公告
· 四月 9, 2024

InterSystems ベクトル検索、GenAI、 ML コンテスト(USコミュニティ)

開発者の皆さん、こんにちは!

(2024.4.17更新:コンテストタイトルに「ベクトル検索」を追加しました)

次の InterSystems オンラインプログラミングコンテストのテーマが決定しました!👉生成 AI、ベクトル検索、機械学習 です!

🏆 InterSystems ベクトル検索、GenAI、ML コンテスト(USコミュニティ) 🏆

期間: 2024年4月22日~5月19日 

賞金総額: $14,000


テーマ

InterSystems IRIS または InterSystems IRIS for Health または IRIS Cloud SQL を使用し、生成AI、または機械学習を使用したソリューションの開発を行ってください。

今回のコンテストは賞金以外にも注目いただきたい特典があります!👉ベクトル検索の力を活用しもっとも革新的なプロジェクトを投稿いただいた著者を、メリーランド州ナショナルハーバーで開催されるグローバル・サミット2024にご招待します!(3名まで)

*  招待された方には 2024年6月8日から13日までに開催するグローバル・サミットの無料チケットと無料ホテル宿泊券が贈られます。 

 

応募条件

  1. アプリケーションやライブラリは完全に機能するものでなければなりません。他の言語ですでに存在するライブラリのインポートや直接のインターフェイスであってはなりません(C++を除きます)。既存のアプリケーションやライブラリのコピーペーストでの応募もできません。
  2. 応募可能なアプリケーション
    • Open Exchange アプリケーションの新規作成、または既存アプリケーションであっても大幅に改善されているものであればご応募いただけます。
    • コミュニティの担当チームは、コンテストへの応募を承認する前に申請された全アプリケーションをレビューします。
  3. 全てのアプリケーションは、IRIS Community Edition 、IRIS for Health Community Edition で動作する必要があります。MacやWindowsのホスト版をご利用いただく場合は、インストールキットをダウンロードしてください。コンテナを利用する場合は InterSystems Container Registryから pull、または、最新バージョンのイメージ(intersystemsdc/iris-community:latest または intersystemsdc/irishealth-community:latest)をご利用ください。
  4. アプリケーションはオープンソースであり、GitHubで公開されている必要があります。
  5. アプリケーションの README ファイルは、英語で記述してください(日本語で記述したものがあればそのまま掲載いただき、英文の追記をお願いします。翻訳アプリを使用しますが翻訳をお手伝いすることもできますのでお気軽にお知らせください!)。また、インストール手順や、アプリケーションがどのように動作するかの説明、またはビデオデモを含めてください。
  6. 1人の開発者は最大3つのアプリケーションを応募できます。
  7. 記事はUSコミュニティに投稿してください。

注意:インターシステムズの審査員は、複雑さと有用性の基準に基づきコンテストに応募が承認されるかどうかの最終決定権を持ちます。その決定は最終的なものであり、不服申し立ての対象にはなりません。

入賞特典:

1. Experts Nomination - 審査員から多く票を集めたアプリケーションには、以下の賞金が贈られます。

🥇 1位 - $5,000 

🥈 2位 - $3,000 

🥉 3位 - $1,500

🏅 4位 - $750

🏅 5位 - $500

🌟 6-10位 - $100

2. Community winners - 開発者コミュニティで多く票を集めたソリューションには、以下の賞金が贈られます。 

🥇 1位 - $1,000 

🥈 2位 - $750 

🥉 3位 - $500

🏅 4位 - $300

🏅 5位 - $200

複数の参加者が同数の票を獲得した場合、全参加者が勝者となり賞金は勝者間で分配されます。

参加資格:

どなたでもご参加いただけます!(InterSystems 開発者コミュニティのアカウントを作成するだけでご応募いただけます)

開発者がチームを組んで共同でアプリケーションを作成し、応募することもできます! 1チーム 2~5名 までご参加いただけます。

チームでご応募いただく場合は、アプリケーションの README にチームメンバー名の記載をお忘れなく!!(開発者コミュニティのプロファイルのリンクもお願いします)

 

スケジュール:

🛠 アプリケーション開発と応募期間:

  • 2024年4月22日(00:00 EST): コンテスト開始!
  • 2024年5月12日(23:59 EST): 応募締切

 投票期間

  • 2024年5月13日 (00:00 EST): 投票開始!
  • 2024年5月19日 (23:59 EST): 投票終了

応募、投票期間中、アップロードしたアプリケーションは改良できます。

 

    Helpful Resources:

    ✓ ドキュメント

    ✓アプリケーション/ライブラリ例

    ✓参考記事

    ✓ オンラインコース(英語)

    ✓ ビデオ(英語)

     IRIS初心者向け

    ✓ For beginners with ObjectScript Package Manager (IPM):

    ✓ コンテストへの応募方法

     

    Need Help?

    ご質問がある場合は、この投稿へコメントいただくか、InterSystems の Discord server  チャンネルにご参加ください!

    皆様からのアプリケーションのご応募、お待ちしております!👍


    ❗️ コンテストに参加された場合、こちらに記載されているコンテスト規約に同意したものとみなされます。ご応募の際、ご一読いただきますよう、お願い申し上げます❗️

     

    ご応募方法について

    以下の応募方法ビデオをご参照ください。

    以下、コンテストに応募する迄の手順をご説明します。

    コンテスト応募までの流れは以下の通りです(※ビデオでは、3番以降の内容をご紹介しています)。

    1、IRISプログラミングコンテスト用テンプレートを使用して、開発環境を準備します。

    2、コンテスト用アプリケーションを作成します。

    3、コンテストの準備が完了したら、ソースコードをローカルのGitリポジトリへコミットします。

    初回コミット時に、Gitの初期設定がないためコミットが失敗することがあります。
    その場合は、以下のコマンドでGitユーザ名とEmailを設定します。

    git config --global user.name "ここにユーザ名"
    git config --global user.email "ここにメールアドレス”

    4、ローカルのGitリポジトリのコミットが完了したら、リモートのGitリポジトリを作成します。

    リポジトリ作成後、リモートリポジトリのURLをコピーします。

    5、リモートのGitリポジトリへPushします。

    git push ここにリモートのリポジトリのURL

    6、OpenExchangeにログインし、アプリケーションを追加します。

    ※事前にDeveloper communityでユーザアカウントを作成する必要があります。
    ログイン後、Profile→Applications から Application をクリックし、4 でコピーしたリモートのGitリポジトリのURLを設定します。

    アプリケーションを登録すると、画面右上に「Send Approval」のボタンが表示されるので、クリックします。

    再度作成したアプリケーションを開くと、「Apply for Contest」ボタンが表示されるので、クリックすると応募が完了します。

    讨论 (0)1
    登录或注册以继续