New post

Find

Article
· Aug 22, 2024 1m read

How to download an image file from a web server using ObjectScript language

InterSystems FAQ rubric

The following code downloads https://www.intersystems.com/assets/intersystems-logo.png and saves the file as c:\temp\test.png.

You need to define an SSL configuration called SSLTEST before executing this code

 

ClassMethod download() As %Status
{
    Set sc = $$$OK
    Set httprequest=##class(%Net.HttpRequest).%New()
    set httprequest.Port = 443
    set httprequest.Https = 1
    set httprequest.SSLConfiguration = "SSLTEST"
    Set httprequest.Server="www.intersystems.com"
    Do httprequest.Get("/assets/intersystems-logo.png")
    Set httpresponse=httprequest.HttpResponse
    Set file=##class(%File).%New("c:\temp\test.png")
    Do file.Open("NWUK\BIN\")
    Do file.CopyFrom(httpresponse.Data)
    Do file.Close()
    Return sc
}
Discussion (0)1
Log in or sign up to continue
Announcement
· Aug 22, 2024

[Video] Planning Your Generative AI Project

Hi, Community!

Are you ready to start developing a generative AI application? Learn how you can make it as effective as possible:

Planning Your Generative AI Project

In this video,  @Alvin Ryanputra, Systems Developer at InterSystems, explains how to :

  • Define a use case.
  • Identify helpful approaches.
  • Set up a process to continually evaluate your model.

This video is the first in a series about developing generative AI applications. Follow the full Gen AI learning path for developers (2h)!

Discussion (0)1
Log in or sign up to continue
Discussion (1)1
Log in or sign up to continue
Article
· Aug 22, 2024 5m read

d[IA]gnosis: vectorisation des diagnostics avec Embedded Python et les modèles LLM

Dans l'article précédent, nous avons présenté l'application d[IA]gnosis développée pour soutenir le codage des diagnostics CIM-10. Dans le présent article, nous verrons comment InterSystems IRIS for Health nous fournit les outils nécessaires à la génération de vecteurs à partir de la liste des codes CIM-10 au moyen d'un modèle de langage pré-entraîné, à leur stockage et à la recherche ultérieure de similitudes sur tous ces vecteurs générés.

Discussion (0)0
Log in or sign up to continue
Question
· Aug 22, 2024

We need one common method to persist data for all tables from C# rest api to InterSystems cache object script.

We need one common method to persist data for all tables from C# rest api to InterSystems cache object script. 

2 Comments
Discussion (2)1
Log in or sign up to continue