Can audio files be embedded with Blobloader

Questions, tips and tricks and techniques for scripting in Servoy

Can audio files be embedded with Blobloader

Postby dpearce » Wed Aug 11, 2010 2:54 pm

Hi,

I am looking to embed a .wav file into my solution which is stored in the database. Would like to do it in both smart, but particularly webclient.

I tried this using the blobloader, but it doesnt seem to work.

My method set a form variable that was attached to an html area with the resulting contents as:

<HTML><BODY><EMBED SRC="media:///servoy_blobloader?servername=reportwriter&tablename=cons_data&dataprovider=dictation&mimetype=audio/wav&rowid=14" WIDTH="144" HEIGHT="60" LOOP="1"></BODY></HTML>

My form just shows a box with an arrow on the right and "embed" in it?

Should this be achievable, I was hoping it would display like it does in a normal browser with the little audio player.
(This is using servoy 5.2 on OSX)
David
dpearce
 
Posts: 469
Joined: Sun Dec 03, 2006 11:53 am

Re: Can audio files be embedded with Blobloader

Postby jcompagner » Wed Aug 11, 2010 3:04 pm

i have tested this in 5.2, at least your html and your html is getting rewritten just fine so it should work fine.
Johan Compagner
Servoy
User avatar
jcompagner
 
Posts: 8833
Joined: Tue May 27, 2003 7:26 pm
Location: The Internet

Re: Can audio files be embedded with Blobloader

Postby dpearce » Wed Aug 11, 2010 3:26 pm

Maybe its a developer issue and will work when i deploy it to the production server, but i think it should work in developer. This is 5.2 latest release.

My top field is an html_area.

my bottom one a text_area.

It doesnt seem to render in the html_area. The sound file is definitely there on that record.
Picture 32.png
Picture 32.png (22.27 KiB) Viewed 2530 times


David
dpearce
 
Posts: 469
Joined: Sun Dec 03, 2006 11:53 am

Re: Can audio files be embedded with Blobloader

Postby jcompagner » Wed Aug 11, 2010 3:49 pm

in the smart client this will never work.
This will only work in the browser.
Smart client doesnt know the embed tag.. for the smart client see application.playSound()
Johan Compagner
Servoy
User avatar
jcompagner
 
Posts: 8833
Joined: Tue May 27, 2003 7:26 pm
Location: The Internet

Re: Can audio files be embedded with Blobloader

Postby dpearce » Wed Aug 11, 2010 3:56 pm

OK, i knew it must be me!!

Thanks

David
dpearce
 
Posts: 469
Joined: Sun Dec 03, 2006 11:53 am


Return to Methods

Who is online

Users browsing this forum: No registered users and 7 guests

cron