Hello guys i have the the xpertivy v5....following process: User have to upload a pdf file. #1 Step The pdf file have to save into a postsql db (bytea field). #2 Step The user have to open the file from db What have i done? I created a java method. I can save and read a pdf from the postsqldb but it wont work in the xpert ivy process. How can i fetch a file over the fileinputstream with the databasestep and write it to the db? How can i read the file over the db step? Thank you so much for your help |
I guess you did something like this: UI-Dialog:
Due to this is a primeface-action there should be no problem with this. Your Java-Class:
The byte[] you now can save to your database as bytea. In case you wonder how the persistence could be implemented: Dataclass:
Persistence class:
And now you can add these line to save your files:
Hope this helps a bit. |
Hi MaxIvy You can do it the very same as explained here: http://jeebestpractices.blogspot.ch/2011/03/save-images-into-database-postgres-with.html Just adjust the naming a little and remove the conversion part. Yes my java code is like this example but it wont work in the dynamic ivy process. how can i start the javamethod from a processtep ( in the expample ImageToByte() ) from the ivy process ? The picture below is the the two option what i tried the option 2 wont work |
Hi MaxIvy below you see a sample database configuration. You can add your connection as shown in the picture and configure with the parameters you need and add the name- here: building as your myDatabaseContextName. Hope this helps Daniel |
Once you sign in you will be able to subscribe for any updates here
By RSS:Markdown Basics
Tags:
Asked: 13.10.2014 at 15:37
Seen: 11,279 times
Last updated: 03.12.2014 at 13:13