Upload images in AS400 DB2


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
BsidmisAsked:
Who is Participating?
 
mkc451Connect With a Mentor Commented:
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
 
momi_sabagConnect With a Mentor Commented:
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
 
BsidmisAuthor Commented:
i don't know much about blob columns. and which is good way to stores images in Db2.
 
0
 
Gary PattersonConnect With a Mentor VP Technology / Senior Consultant Commented:
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
 
BsidmisAuthor Commented:

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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.