AL icon indicating copy to clipboard operation
AL copied to clipboard

Streams

Open MrDavid5465 opened this issue 9 years ago • 5 comments

I want to save the result of a report into a blob field so that it can be downloaded at a later time, but when I try to download the file, I don't get a dialogue, I just get a file called DynamicFileHandler.axd

I'm not sure if I'm approaching this correctly or if it's broken

image

MrDavid5465 avatar Sep 26 '17 20:09 MrDavid5465

#update: I figured out why i was getting DynamicFileHandler.axd, I was not supplying a filename, but now the pdf file that is downloaded is empty. I'm expecting the filesize to be about 104kb

image

MrDavid5465 avatar Sep 26 '17 20:09 MrDavid5465

Is LicenseStore a global blob variable? Did you try and save the blob to a record? What exactly are you trying to accomplish?

johndcollins avatar Sep 27 '17 00:09 johndcollins

LicenseStore is a Blob field in my Table. I am trying to save the report (which is a license) so that it can be downloaded at a later time. It needs to be exactly the same at the reprint time as it was when the license was generated, even if the License information changes. That is why I'm trying to save the report

MrDavid5465 avatar Sep 27 '17 12:09 MrDavid5465

If LicenseStore is a Blob field on your table, you need to do a CALCFIELDS(LicenseStore) before creating the OutStream.

kaspermoerch avatar Sep 27 '17 12:09 kaspermoerch

That worked! Thank you!

MrDavid5465 avatar Sep 27 '17 12:09 MrDavid5465