Hi Marc
I would try something like this
set tFile = ##class(%FileBinaryStream).%New()
set tFile.Filename = file.FileName
set tStatus = tFile.CopyFromAndSave(file.Content)
Cheers
Neil
From: ensemble-in...@googlegroups.com [mailto:ensemble-in...@googlegroups.com]
On Behalf Of Marc Lang
Sent: 11 October 2012 11:40
To: InterSystems: Ensemble in Healthcare
Subject: [InterSystems-EnsHlth] Re: problems writing files
Ok, some further inconsistency, now it seems to be writing out 32kb files.
Truncating at 32kb when it should be around 40k or 50k a file.
On 11 October 2012 11:25, Marc Lang <marc....@gmail.com> wrote:
--
You received this message because you are subscribed to the Google Groups "InterSystems: Ensemble in Healthcare Community" group.
To post to this group, send email to
Ensemble-in...@googlegroups.com
To unsubscribe from this group, send email to
Ensemble-in-Healt...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/Ensemble-in-Healthcare?hl=en
Thanks
To unsubscribe from this group, send email to Ensemble-in-Healthcare-unsub...@googlegroups.com
The change in Ensemble practice is news to me also. Was this in release notes?
(Though I was aware of the alternative below, which also allows the same message body type to be passed around as request and response.)
Thanks
Andrew
Thanks
To unsubscribe from this group, send email to Ensemble-in-Healt...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/Ensemble-in-Healthcare?hl=en
--
You received this message because you are subscribed to the Google Groups "InterSystems: Ensemble in Healthcare Community" group.
To post to this group, send email to Ensemble-in...@googlegroups.com
To unsubscribe from this group, send email to Ensemble-in-Healt...@googlegroups.com
Hi. I’m a new technical writer working on Ensemble.
Apparently this recommended practice is not new. Although you had to inherit from Ens.Request/Ens.Response, this hasn’t been true for a long time (maybe 5 years). So it doesn’t make sense to put it in the release notes as a recent change. I’ll make sure that the current documentation doesn’t suggest this. If you know of any of our doc, training materials, or samples that include this obsolete practice, please let us know.
Thanks