Hi all,
I’m exploring the use of the blobloader for displaying a set of images on a form. From other comments I’ve seen, this is apparently “easy”, but alas, not for the Semi-Rookie.
I have an image that displays correctly when loaded into an IMAGE_MEDIA field on a form. The image itself is stored in a table in my database.
I have another form that contains an HTML_AREA, and I’m trying to load html into this field that will display my image. I have written some code that ends up with this html string when viewed in debug…
“<img src="media:///servoy_blobloader?servername=workingartist &tablename=tblimages &dataprovider=image_data &rowid=6614314D-7B2C-4951-B7E7-FCCE5D89C085 &mimetype=image/jpg" width=100 height=100>test”
The result is that I get a 100x100 box with “little red x” in it, along with the word “test”. So, it is rendering the html into “something”, but for some reason the image isn’t being “liked”.
I’m unclear at this point whether the syntax is wrong, or the image isn’t found, or something is wrong with the image for display purposes here, or what, and I’m not clear on how I might determine that in the debugger. Oh, and, I’ve also tried using “href=” instead of “img src=”.
I’ve read the wiki for the blobloader, but for my purposes, there just isn’t enough there for me to know what’s going on. I’ve reviewed many forum messages as well.
As always, any insights would be appreciated. (And yes, Patrick, I know I could do this with VelocityReports; consider this just part of my “learning curve” )
Thanks and have a good day.