× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.




Keeping things simple is an important goal IMO, which is really important considering the hodgepodge of technologies used to create webapps.
I would suggest to generate a unique, random (but "really" random) id for each image that is to be *displayed*. So you have to make a distinction between the pool of images in some directory which are not displayed directly, and the image which is to be displayed. So Image1.jpg is copied to a public directory and named something like c153510.jpg or whatever. To avoid copying images that are to be displayed you could make use of URL rewriting so that the link in the page with the displayed image links to "c153510.jpg" which is redirected to the original image. However, i dont have enough knowledge of this technique (URL rewriting or mapping or whatever) to know if this approach is feasable (and simple enough). Because normally this kind is specified in the config file of the webserver which is static. And in this case you have to add a "URL rewrite" rule on the fly. I don't know if this is possible.

John



From: albartell@xxxxxxxxx
To: web400@xxxxxxxxxxxx
Date: Thu, 24 Jan 2008 23:22:29 -0600
Subject: Re: [WEB400] EGL and IFS

That's a potential security risk if you ask me. For instance, if you have
any sort of naming convention to the files then a "hacker minded" person
could easily write a script to cycle through your image naming scheme and
retrieve all the images (read private info) to use for their own purposes.
I always stream stuff like that down to the client vs. giving them a static
URL link.


Unfortunately I only know how to do this in JSF and not EGL(yet).

Aaron Bartell
http://mowyourlawn.com

-----Original Message-----
From: web400-bounces@xxxxxxxxxxxx [mailto:web400-bounces@xxxxxxxxxxxx] On
Behalf Of Haas, Matt (CL Tech Sv)
Sent: Thursday, January 24, 2008 10:57 AM
To: Web Enabling the AS400 / iSeries
Subject: Re: [WEB400] EGL and IFS

Nick,

Don't overcomplicate this. Put the images in a directory that's accessible
by the HTTP server and then just write out an image tag with the correct
file name in it.

Matt

-----Original Message-----
From: web400-bounces@xxxxxxxxxxxx [mailto:web400-bounces@xxxxxxxxxxxx] On
Behalf Of Nick Arndt
Sent: Thursday, January 24, 2008 11:47 AM
To: web400@xxxxxxxxxxxx; Websphere Development Studio Client for iSeries
Subject: [WEB400] EGL and IFS

Hi everyone,

Does anyone know how to access an IFS object (.jpg) and pull it into an EGL
application?

I am creating a method for our customers to enter a driver number on a web
page then be taken to another page showing the driver picture along with
other information about the driver.
The jpg name is DRIVER#.jpg. Can this only be done with java? I herd that
it can also be done with the SQL DATALINK data type in a DB2 file but I ran
into problems with using the DATALINK type with EGL.

Any help would be appreciated

Thanks.

Nick
--
This is the Web Enabling the AS400 / iSeries (WEB400) mailing list
To post a message email: WEB400@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/web400
or email: WEB400-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/web400.


--
This is the Web Enabling the AS400 / iSeries (WEB400) mailing list
To post a message email: WEB400@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/web400
or email: WEB400-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/web400.

--
This is the Web Enabling the AS400 / iSeries (WEB400) mailing list
To post a message email: WEB400@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/web400
or email: WEB400-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/web400.


_________________________________________________________________
Nieuw: Windows Live Messenger 2008! Gratis downloaden
http://get.live.com/messenger

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.