Zum Hauptinhalt

How to handle a file from the database

This Demo Project shows how to get the file from the entity bean and prepare it for usage in GUI components. For this "transformation" there are different ways, this demo uses java "Streams". This is one of the most flexible options: Streams can be used as base to do a lot of other things with it's content:

bytearray → stream → "Resource" for GUI components
bytearray → stream → write to a file
...

Clone the GIT Repository from GitHub or use the import function of RapidClipse.

Use the RapidClipse Import:
File → Import → RapidClipse → Demo Projects → rapidclipse-demo-loadData

You can find the article in the demo project directly on GitHub:
https://github.com/RapidClipse/rapidclipse-demo-loadData

Here you can find some additional documentation:
https://rapidclipse.atlassian.net/wiki/display/DOK/XdevUpload

Have fun with this example – the next demo project will be following soon.