Solved

Upload images in AS400 DB2

Posted on 2010-08-17
5
1,319 Views
Last Modified: 2013-12-06

Dear Support Team,
We are using AS400 DB2 on OS/400 V5R4. for a application we want to upload impages of employee or some other photos so the same can be viewed while doing transation. how we can upload  images and then view same. please advise us.
regards
0
Comment
Question by:Bsidmis
5 Comments
 
LVL 37

Assisted Solution

by:momi_sabag
momi_sabag earned 166 total points
Comment Utility
you can use blob columns in order to store the images in db2
you can find examples of how to do it in the db2 information center
0
 

Author Comment

by:Bsidmis
Comment Utility
i don't know much about blob columns. and which is good way to stores images in Db2.
 
0
 
LVL 2

Accepted Solution

by:
mkc451 earned 167 total points
Comment Utility
If you are going to view photos, you are obviously using a PC based application with the 400 hosting the databases .. if you wish to store photos on the 400, you don't need to put them in the DB2 database file, though you can. I would recommend you use IFS. Create a folder structure on the 400 in the ROOT file system and share it using NetServer on the 400. Map the drive in your windows application (you can use UNC or Mapped drives). This method also supports long file names so you aren't limited on naming your photo files.

You can then key the pictures for a particular record so the system knows where to find them and load them in your application. In the application, each record has a list of the associated photos to pull up. Of course using this method you don't really need the files on the 400, just on directory structure the PC application can find.

I've worked with several app's in many different industries and they almost all handle pictures like this.

Michael Cody
0
 
LVL 34

Assisted Solution

by:Gary Patterson
Gary Patterson earned 167 total points
Comment Utility
Why not just create a web page and serve it up in AS/400's Apache-based  web server?  It is free, and all you need on the client side is a browser.

http://www-03.ibm.com/systems/i/software/http/examples/getting_started.html

- Gary Patterson
0
 

Author Closing Comment

by:Bsidmis
Comment Utility

later i would try to incorporate the image concept in AS400. I was trying to understand the idea. because i was developing a application where i was trying to use this concept.
thanks a lot
regards
Shailesh mahajan
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Recursive SQL in UDB/LUW (it really isn't that hard to do) Recursive SQL is most often used to convert columns to rows or rows to columns.  A previous article described the process of converting rows to columns.  This article will build off of th…
Many people tend to confuse the function of a virus with the one of adware, this misunderstanding of the basic of what each software is and how it operates causes users and organizations to take the wrong security measures that would protect them ag…
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

728 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now