Image files (OpenInsight Specific)
At 27 SEP 2000 09:07:44PM Rudhy Buntaram wrote:
I have an employee database using Arev 3.12.
I want to add an image file (Picture of each employee) to the each employee record. Can OpenInsight do that ? I am considering to convert the application to OI only if it can add and show image file together with the employee record.
Rudhy
At 27 SEP 2000 10:04PM WinWin/Revelation Technical Support wrote:
Rudhy-
OI Could conceivably store the images, if they were less than 64K and a varbinary datatype.
What we do in these cases is have a field that has the full path and filename to the image. eg f:\apps\oinsight\pics\emp1005.jpg
In the window, on the read event, we see if there is an entry in this field. If there is, we either display the graphic in the window, or enable a button labelled 'Show Picture'. When they click this button we launch a child window with the image. In each case we set a bitmap control's BITMAP property to the full path and filename.
Hope it helps-
Mike Ruane
Hope it helps-
At 28 SEP 2000 10:27AM Steve Carlson wrote:
OI will work quite well for this. I have an HRMS that displays the
employee's picture. We keep the pics in .BMP format by Social
Security number, i.e. 12345678.bmp, (1st 8 digits of ssn) When
we enter the employee's ID, i.e. SSN, we simply read the BMP file
and display it.. If you need any sample coding or help let me know.
At 28 SEP 2000 11:35AM Oystein Reigem wrote:
Rudhy,
I have apps like Mike's, with fields containing image file names, and forms showing images in BITMAP controls. OI can show images in many formats - BMP, GIF, JPG, etc.
I'm not overly impressed with its ability to show 24-bit images, though (e.g colour JPGs and 24-bit BMPs). Do a test first if quality is very important to you, e.g if your images are very small and you need all detail you can get. Or I can whip up a few screen dumps if you like.
Also there can be image format flavours that OI cannot display, e.g progressive JPG. I assume it has to do with OI's image function library (Imageman) not being quite up to date. But I'm still on OI version 3.61, and perhaps newer versions of OI have newer versions of Imageman. (I don't think so, though.) It's not a problem if you get to decide the flavour.
(In my apps I use OI's BITMAP controls for thumbnail images only. For "full size" versions I use a separate program - an image viewer - that my apps start when needed.)
(Btw - I might just have learned how to get 24-bit images to display in BITMAP controls in their full splendour. Thanks to some valuable training at Sprezzatura recently. Mr C rules OK!)
- Oystein -
At 28 SEP 2000 08:51PM Rudhy Buntaram wrote:
Thanks a lot, guys.
I will order the OI and starts playing with it.
Rudhy