I was trying to create a 'href' to an image from my database using servoy_blobloader,
- Code: Select all
'<a href="media:///servoy_blobloader?servername=<myserver>&tablename=fancyboximages&dataprovider=images&rowid=1"><img src="media:///servoy_blobloader?servername=<myserver>&tablename=fancyboximages&dataprovider=images&rowid=1"/></a>'
which is showing the byte array as the output while in 'src' it is working fine.And if i pass a media directly into the 'href', like
- Code: Select all
<a href="media:///xyz.jpg"><img src="media:///servoy_blobloader?servername=<myserver>&tablename=fancyboximages&dataprovider=images&rowid=1"/></a>
it is also working.
Instead , i have tried fetching the image from database and storing it in a temporary file then passing the file path in the 'href' but the output is 'cannot show the image'(jquery error message).
Please suggest me a way to pass a image media from database as a reference.
I am new in servoy so please attach code snippet so that i can get a better idea.....
Thanks in advance
Sovan