Does anyone know how you can show images in html (headless client) that comes from a blob??
You can’t at the moment. Not in SHC.
really?
Haven’t tested this but I guess you should be able to return the image from a call to a method or write the image to the server directory and show it from there within a link…
IT2BE:
Haven’t tested this but I guess you should be able to return the image from a call to a method or write the image to the server directory and show it from there within a link…
Yes, we are doing something like that with our headless client solution. The user fills in and submits a pdf form, and later wants to email the form and its data using the free Adobe Reader. Using a Servoy method we create a flattened pdf file from the pdf template and its submitted data. The method loops through the submitted data creating an Adobe fdf (form data format) file. The pdf template is grabbed from a blob field and combined with the fdf file using the Servoy pdf plugin to create a flattened pdf file for emailing. The flatten pdf file is written to disk and a link to the file is returned. This can be seen under the “Forms” link of our headless client solution at:
http://server5.hopto.org:8080/choices/login.jsp
I will leave the solution running for a couple of days in case anyone is interested in looking at it.
Bob Cusick and the Servoy programming team helped make this happen. If others are interested in PDFs and Servoy I will be glad to put together a sample file as part of my session at Servoy World.
Dean Westover
Hi Dean,
how on earth do you save a file from the client on the server???
Yes I would like to see some sample files on Servoy World!
I will see you there!
HJK:
how on earth do you save a file from the client on the server???
Here’s 2 possibilities:
- Create a method that takes a blobs and writes it to local disk. Execute it remotely using headless client.
- Create a method that writes queued blobs to disk. Run it every x seconds using Scheduler plugin. Make it a module. Run it in the batchprocessor on the server (requires 2.2.1 or higher)