Focal Point
[SOLVED] download image from url

This topic can be found at:
https://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/9907053576

March 30, 2015, 03:51 AM
Martin vK
[SOLVED] download image from url
Hi,

We use the webservice adapter to call an external webservice which creates an image (jpg) based on parameters we pass on through the webservice. The webservice returns an url (http) which we use in our web application to present the image.

We now have a request from a customer who wants the same images included in pdf documents (scheduled by ReportCaster).

Is there a way within Webfocus (or by OS calls - Windows) to use the returned http url to download the image and store on the reporting server to be used in the pdf?
It is not an option to use the url itself in the pdf, due to security reasons and a small retention period of the images.

Martin.

This message has been edited. Last edited by: Martin vK,


WebFocus 8206M, iWay DataMigrator, Windows, DB2 Windows V10.5, MS SQL Server, Azure SQL, Hyperstage, ReportCaster
March 30, 2015, 06:31 AM
Tony A
quote:
It is not an option to use the url itself in the pdf, due to security reasons and a small retention period of the images.

The PDF is created on the reporting server as a data stream and therefore the image is embedded. So the URL would be unknown to the viewer. Also, after the expiry of the image, it would be irrelevant that the original was no longer available, due to the image being part of the data stream.

Obviously this would not be true for HTML output.

T



In FOCUS
since 1986
WebFOCUS Server 8.2.01M, thru 8.2.07 on Windows Svr 2008 R2  
WebFOCUS App Studio 8.2.06 standalone on Windows 10