Trace:
Differences
This shows you the differences between two versions of the page.
jvx:client:gui:imageviewer [2018/02/01 08:10] admin created |
jvx:client:gui:imageviewer [2020/06/08 13:26] cduncan Edited for English grammar (capitalization, punctuation, correct verb conjugation) |
||
---|---|---|---|
Line 3: | Line 3: | ||
Displaying pictures from databases is relatively simple, but time and again, the implementation in the UI causes problems and repetitive efforts. | Displaying pictures from databases is relatively simple, but time and again, the implementation in the UI causes problems and repetitive efforts. | ||
- | JVx reduces the effort to a minium. The picture data is displayed in tables, selection lists or forms, and usually no more than three lines of code are necessary. | + | JVx reduces the effort to a minimum. The picture data is displayed in tables, selection lists, or forms, and usually no more than three lines of code are necessary. |
==Example== | ==Example== | ||
- | We have saved a profile picture of a user in the database in binary format. At a different location, we have saved a picture path (e.g.: /com/sibvisions/apps/packung/images/flag/austria.png). We want to display both contents in UI as a picture. The definition of the picture's path requires that the picture is contained in the classpath. If that is not the case, a standard picture is displayed! | + | We have saved a profile picture of a user in the database in binary format. At a different location, we have saved a picture path (e.g., /com/sibvisions/apps/packung/images/flag/austria.png). We want to display both contents in UI as a picture. The definition of the picture's path requires that the picture is contained in the class path. If that is not the case, a standard picture is displayed! |
Now the promised three lines of code: | Now the promised three lines of code: |