V
V
Vergileey2014-07-09 15:47:58
Java
Vergileey, 2014-07-09 15:47:58

How to get a file or a link to a file from the server to a jspx page?

I participate in the development of electronic document management on OracleWebCenter Content. The development uses java, oracle SOA and oracle BPM. The whole system is installed on Weblogic servers.
We set the task to generate and print a certain number (up to 100 pieces) of barcode labels on a label printer.
Developed a SOA service that takes the document ID from the database, generates a barcode image and saves it to a folder on the server as a JPG image (or you can also combine all the images into 1 PDF document).
The problem arose in taking these files from the server and passing them to the Human task in order to later call the printer and print.
I tried to read the file through the file adapter and transfer the bytecode to the Human task. Passes the bytecode, but it is not possible to write it to an element on the page, only the bytecode itself is shown as a string.
I tried to get the URL of the file in the folder by the service (I used java.net.URL) and pass it, but the file is not found from the task form.
Prompt in what direction to search for the decision. Maybe someone has already encountered such a problem.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question