show images from blob

The forum to discuss the Headless version of Servoy. Web, Java and Servlet development questions can all be posted here.

show images from blob

Postby Harjo » Thu Aug 18, 2005 9:32 pm

Does anyone know how you can show images in html (headless client) that comes from a blob??
Harjo Kompagnie
ServoyCamp
Servoy Certified Developer
Servoy Valued Professional
SAN Developer
Harjo
 
Posts: 4321
Joined: Fri Apr 25, 2003 11:42 pm
Location: DEN HAM OV, The Netherlands

Postby ROCLASI » Thu Aug 18, 2005 10:11 pm

You can't at the moment. Not in SHC.
Robert Ivens
SAN Developer / Servoy Valued Professional / Servoy Certified Developer

ROCLASI Software Solutions / JBS Group, Partner
Mastodon: @roclasi
--
ServoyForge - Building Open Source Software.
PostgreSQL - The world's most advanced open source database.
User avatar
ROCLASI
Servoy Expert
 
Posts: 5438
Joined: Thu Oct 02, 2003 9:49 am
Location: Netherlands/Belgium

Postby Harjo » Thu Aug 18, 2005 10:32 pm

really? :cry:
Harjo Kompagnie
ServoyCamp
Servoy Certified Developer
Servoy Valued Professional
SAN Developer
Harjo
 
Posts: 4321
Joined: Fri Apr 25, 2003 11:42 pm
Location: DEN HAM OV, The Netherlands

Postby IT2Be » Fri Aug 19, 2005 10:38 am

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...
Marcel J.G. Trapman (IT2BE)
SAN partner - Freelance Java and Servoy
Servoy Components - IT2BE Plug-ins and Beans for Servoy
ServoyForge - Open Source Components for Servoy
User avatar
IT2Be
Servoy Expert
 
Posts: 4766
Joined: Tue Oct 14, 2003 7:09 pm
Location: Germany

Postby Westy » Sat Aug 20, 2005 5:14 am

IT2BE wrote: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
Westy
 
Posts: 852
Joined: Fri Feb 13, 2004 5:27 am
Location: Lynnfield, Massachusetts USA

Postby Harjo » Sat Aug 20, 2005 10:15 am

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! :)
Harjo Kompagnie
ServoyCamp
Servoy Certified Developer
Servoy Valued Professional
SAN Developer
Harjo
 
Posts: 4321
Joined: Fri Apr 25, 2003 11:42 pm
Location: DEN HAM OV, The Netherlands

Postby Jan Aleman » Sat Aug 20, 2005 10:34 am

HJK wrote:how on earth do you save a file from the client on the server???


Here's 2 possibilities:

1. Create a method that takes a blobs and writes it to local disk. Execute it remotely using headless client.
2. 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)
Jan Aleman
Servoy
Jan Aleman
 
Posts: 2083
Joined: Wed Apr 23, 2003 9:49 pm
Location: Planet Earth


Return to Servoy Headless Client

Who is online

Users browsing this forum: No registered users and 7 guests