Solved

Upload images in AS400 DB2

Posted on 2010-08-17
5
1,346 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
ID: 33462252
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
ID: 33462420
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
ID: 33462692
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
ID: 33463677
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
ID: 33498063

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

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

November 2009 Recently, a question came up in the DB2 forum regarding the date format in DB2 UDB for AS/400.  Apparently in UDB LUW (Linux/Unix/Windows), the date format is a system-wide setting, and is not controlled at the session level.  I'm n…
Sometimes a user will call me frantically, explaining that something has gone wrong and they have tried everything (read - they have messed it up more and now need someone to clean up) and it still does no good, can I help them?!  Usually the standa…
This is used to tweak the memory usage for your computer, it is used for servers more so than workstations but just be careful editing registry settings as it may cause irreversible results. I hold no responsibility for anything you do to the regist…
Hi friends,  in this video  I'll show you how new windows 10 user can learn the using of windows 10. Thank you.

813 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

17 Experts available now in Live!

Get 1:1 Help Now