#1  
Old 7th November 2015, 04:47 PM
Ken Randall
 
Posts: n/a
Default WebApps

Hi,

How can I display images and other blobs that say contain a pdf in a
webapp script?

Any help greatly appreciated.

Ken
  #2  
Old 10th December 2015, 08:21 AM
tswett@topnotch.com tswett@topnotch.com is offline
Member
 
Join Date: Mar 2010
Posts: 60
Default Hi

are you doing any cool with web apps?
i am look at this also ?
__________________
Tim
  #3  
Old 23rd March 2017, 12:21 AM
Will Owyong
 
Posts: n/a
Default Re: WebApps

On 7/11/2015 5:47 PM, Ken Randall wrote:
> Hi,
>
> How can I display images and other blobs that say contain a pdf in a
> webapp script?
>
> Any help greatly appreciated.
>
> Ken
>


Have you worked it out yet Ken?

If not, here's a hint:
....
<%
var
myWebAppPath, myfilename: String;
....
begin
....
myWebAppPath := 'C:\MyWebApp\';
myfilename := 'imgToDisplay.jpg';
....

TBlobField(aTable.FieldByName('myblobfield')).Save ToFile(myWebAppPath+imgToDisplay);
....
%>
<IMG src="imgToDisplay.jpg"/>

OR

<% Output.Writeln('<IMG src="'+myfilename+'"/>'); %>
....


Note:
- SaveToFile(aFilename: String) saves relative to the *nxServer.exe*
- the <IMG> HTML tag is relative to the *webApp folder*

For a PDF you would just use an <A>...</A> tag

--
Regards,
Will Owyong
(Newcastle & Parramatta
NSW, AUSTRALIA | GMT+10)
  #4  
Old 23rd March 2017, 12:39 AM
Will Owyong
 
Posts: n/a
Default Re: WebApps

On 23/03/2017 12:21 AM, Will Owyong wrote:
> On 7/11/2015 5:47 PM, Ken Randall wrote:
>> Hi,
>>
>> How can I display images and other blobs that say contain a pdf in a
>> webapp script?
>>
>> Any help greatly appreciated.
>>
>> Ken
>>

>
> Have you worked it out yet Ken?



Note to self: Read date of original post... ^_^!
  #5  
Old 24th March 2017, 11:31 PM
Ken Randall
 
Posts: n/a
Default Re: WebApps

Will Owyong wrote:

> Have you worked it out yet Ken?


Yes thanks Will but as you noticed, this was posted some time ago


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


All times are GMT +11. The time now is 05:44 PM.


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