Solved

Upload images in AS400 DB2

Posted on 2010-08-17
5
1,388 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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 35

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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Hello I read in a discussion about a person who configured a very simple mirror RAID with two hard drives; the system and data were on the same partition. He asked how to repair the system as it was not booting up anymore. In his case running …
I don't know if many of you have made the great mistake of using the Cisco Thin Client model with the management software VXC. If you have then you are probably more then familiar with the incredibly clunky interface, the numerous work arounds, and …
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.

717 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