Yes, this is the header you’ll need to set.


Note that usually web servers will add the Content-Length for you.



I would also like to mention that @LENGTH actually counts the bytes of the 
value. If you have your value in a variable already, it’s better to do 
<@VARINFO varName size>



Robert



From: Peter Dobbs [mailto:[email protected]]
Sent: Monday, May 07, 2018 8:28 PM
To: [email protected]
Subject: Re: TeraScript-Talk: longbinary



I suppose you’d have to set the header to an image type and only return the 
image.





Content-Type: image/jpeg|gif|png

Content-Length: <@length str={your image}>





Peter Dobbs

President | ENGINESS | P: 416.901.6151 <tel:416.901.6151;118>  | F: 
416.901.6150 <tel:416.901.6150>  | www.enginess.io







This email and any attachments are confidential and are intended only for the 
person(s) to whom it is addressed. It you are not the addressee named above, 
any use, copying, distribution or disclosure is strictly unauthorized. If you 
have received this information in error, please delete it and any attachments 
and notify me immediately.




On May 7, 2018, at 9:20 PM, Wayne Irvine <[email protected] 
<mailto:[email protected]> > wrote:

Never done this before so not even sure if it is possible.

I’m returning a Container field from FileMaker. It is an image stored in the 
database.

Terascript sees it as a longbinary. What tags/syntax should I use to display? 
I’ve seen images returned with some base64 nomenclature and expect it is 
similar to that.

Wayne

Byteserve Pty Ltd
w: http://www.byteserve.com.au/
e: [email protected] <mailto:[email protected]>
p: +61 02 9960 6099
m: 0409 960 609
f: +61 02 9960 6088




----------------------------------------

To unsubscribe from this list, please send an email to [email protected] 
<mailto:[email protected]>  with "unsubscribe terascript-talk" in the 
body.



  _____

To unsubscribe from this list, please send an email to [email protected] 
<mailto:[email protected]>  with "unsubscribe terascript-talk" in the 
body.




----------------------------------------

To unsubscribe from this list, please send an email to [email protected] 
with "unsubscribe terascript-talk" in the body.

Reply via email to