× 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.



Jim,

I would write a CGI program to stream the file to the browser. In doing so, you can specify the file type in the Content-Type html header regardless of the file's extension. Here is a good example program of Scott's to get you started. Ideally, you would pass a key or ID as part of your URL that would cause the program to retrieve the file name and location from a table. Not a good idea to pass the filename and path as part of the URL. Big security hole.

http://www.iprodeveloper.com/forums/aft/46704

Brian May
IBM i Modernization Specialist
Profound Logic Software
http://www.profoundlogic.com
937-439-7925 Phone
877-224-7768 Toll Free


              


-----Original Message-----
From: midrange-l-bounces@xxxxxxxxxxxx [mailto:midrange-l-bounces@xxxxxxxxxxxx] On Behalf Of J Franz
Sent: Tuesday, February 26, 2013 10:34 AM
To: Midrange Systems Technical Discussion
Subject: view ifs image and specify viewer with strpccmd

I have in the past used STRPCCMD to view an image stored in the IFS from a iSeries Access 5250 session, by using a http:// url and let the browser select the viewer based in doc suffix (like .pdf).
However we have an issue where the doc name is "non-standard" like B01291AA.BID  (this is IBM Content Manager stuff) and need to tell the browser what viewer to use (it's tif or pdf) and need to view on pc with no Content Manager client.
It is not an option to rename the image file.
Is this possible? Most likely tif and want to use Win native fax viewer in STRPCCMD command.
pdf's would use Adobe Reader.
TIA
Jim Franz
--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list To post a message email: MIDRANGE-L@xxxxxxxxxxxx To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx Before posting, please take a moment to review the archives at http://archive.midrange.com/midrange-l.


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.