Home > Ask the AS/400 Experts > iSeries Web Development Questions & Answers > Connecting WebSphere to AS/400 for image retrieval
Ask The iSeries 400 Expert: Questions & Answers
EMAIL THIS

Connecting WebSphere to AS/400 for image retrieval

Jim Mason EXPERT RESPONSE FROM: Jim Mason

Pose a Question
Other iSeries 400 Categories
Meet all iSeries 400 Experts
Become an Expert for this site


Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   


>
QUESTION POSED ON: 05 December 2007
I am creating a Web site that will be deployed on a WebSphere server. I need to access some images from an optical platter that is connected to an AS/400 and display the images on my Web page

Currently we access them using a third party application that requires iSeries to access the AS/400 (I don't know how the third party application makes the call to the optical drive).

The indexes are created manually by our scanning department. The indexes live on the AS/400. Here is the description of the process from our AS/400 programmer:

The keyword file (TMM0300) will give you the object ID. Use that to go to the link file (TMM0310). That will give you the document ID (aka internal object ID). Use that to get to the document file (TMM0320). That will give you data about the document, including the volume and optical path on which the document resides.

How do I make a connection from my Windows Web Server to the AS/400 to retrieve the images?



Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   



RELATED CONTENT
iSeries Web Development
JDBCODBC functionality -- Java to Excel for complex workbooks
Accessing AS/400 data using Excel ODBC drivers
IBM WebSphere Studio Application Developer error
Database pooling on iSeries
Retrieving the value selected by a user
Condense ILE service program procedures
WebSphere error during login process
Connecting WebSphere to a DB2 database
WebFacing error: User ID or password invalid
Starting Dominos on a Windows 2000 server

Web Servers
System i no longer the stepchild of IBM's world
Weaving in WebSphere
SOA enhancements drive IBM WebSphere feature packs
SOA means money for IT workers
Enable J2EE app on WAS to access DB2
Securing Apache: Keeping patches current
IBM runs USOpen.org on Power boxes
MoMA's IT makeover a mix of old and new
How does RPG talk to a browser?
Switch from Internet Explorer to Firefox?

RELATED RESOURCES
2020software.com, trial software downloads for accounting software, ERP software, CRM software and business software systems
Search Bitpipe.com for the latest white papers and business webcasts
Whatis.com, the online computer dictionary


The good news is it doesn't sound too hard in theory. Following the instructions the programmer gave you, it's not hard to get the file information to pull a specific document. Depending on the format the document is stored in (a file stream or an internal format in a document library), you will either be able to read the file directly (based on the description, I believe that is the case) or call an API to get the document byte stream from the source. To access the IFS as a file stream from WebSphere or Java, you use Java IFS file stream classes in the AS/400 Java toolkit ( jt400.jar is free and lives on the IFS under /QIBM ) or, if coming from Windows or Linux, use a mapped drive with the AS/400 NetServer running. The remote WebSphere application can then connect in on the mapped drive.

Finally, when writing the stream to a file on the WebSphere server, be sure to give it the right MIME type for the specific image format (eg .jpeg, etc.) so the client applications will correctly handle the file when accessing it in WebSphere.




Search and Browse the Expert Answer Center
Search and browse more than 25,000 question and answer pairs from more than 250 TechTarget industry experts.
Browse our Expert Advice



iSeries Networking - Printing, Remote Access, TCP/IP
HomeNewsTopicsITKnowledge ExchangeTipsBlogsAsk the ExpertsMultimediaWhite PapersProducts
About Us  |  Contact Us  |  For Advertisers  |  For Business Partners  |  Site Index  |  RSS
SEARCH 
TechTarget provides technology professionals with the information they need to perform their jobs - from developing strategy, to making cost-effective purchase decisions and managing their organizations' technology projects - with its network of technology-specific websites, events and online magazines.

TechTarget Corporate Web Site  |  Media Kits  |  Site Map




All Rights Reserved, Copyright 1999 - 2009, TechTarget | Read our Privacy Policy
  TechTarget - The IT Media ROI Experts