#1  
Old 6th September 2018, 04:52 PM
RichardLight RichardLight is offline
Member
 
Join Date: Nov 2011
Posts: 49
Default Nxscript server delivering binary content

I've been working with the script-based web server, trying to implement the beginnings of a browser-based version of our Windows client. One thing I want to do is to deliver a PDF response.

I gave up on this yesterday when I found that the methods of TnxSimpleOutputCache (Write, WriteLn) don't take kindly to being offered a PDF to deliver. The output is truncated on encountering the first #0 byte.

Could this component be given a WriteStream method? As well as allowing delivery of PDFs, it would also enable native delivery by the nxscript server of other binary formats such as images.

Thanks,

Richard
  #2  
Old 6th March 2021, 05:19 AM
RichardLight RichardLight is offline
Member
 
Join Date: Nov 2011
Posts: 49
Default

I followed this up with a post to the nxscript forum just over a year ago, outlining what I had done to get an image server working. Returning to this topic, I see that that was the last post (in both senses?) in that group. So I'm returning to the general support forum.

Is there any interest in upgrading the script engine so that it can deliver binary responses without the need for unpleasant hacks? I would be happy to remind myself what I did last year and then share it.

Thanks,

Richard
  #3  
Old 6th March 2021, 01:29 PM
Thorsten Engler [NDA]
 
Posts: n/a
Default Re: Nxscript server delivering binary content

RichardLight wrote:

> th a post to the nxscript forum just over a year
> ago, outlining what I had done to get an image server working. Returning
> to this topic, I see that that was the last post (in both senses?) in
> that group. So I'm returning to the general support forum.
>
> Is there any interest in upgrading the script engine so that it can
> deliver binary responses without the need for unpleasant hacks? I would
> be happy to remind myself what I did last year and then share it.
>
> Thanks,
>
> Richard


If you send me specific changes with improvements by email, I'll be happy to
review them and include them in future releases.
  #4  
Old 6th March 2021, 06:51 PM
RichardLight RichardLight is offline
Member
 
Join Date: Nov 2011
Posts: 49
Default

OK, thanks.

Richard


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Content Locks and Transactions work sri.ajay nexusdb.public.support 12 27th November 2015 07:32 PM
New user...How to view content of nx1 files? gorlaz nexusdb.public.support 11 15th March 2011 07:12 PM
Web Application - Support Content-Encoding: gzip jprenou nexusdb.public.discussions 3 9th November 2010 04:11 AM
Source Server smaller that Current Binary Release Chris nexusdb.public.support 2 9th January 2006 06:28 PM
Binary Server Bernhard Roos nexusdb.public.support 4 3rd December 2005 10:08 AM


All times are GMT +11. The time now is 11:59 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2022, Jelsoft Enterprises Ltd.