Whatever happened to servoy_blobloader? For example setting an html field to ‘<img src=media:///servoy_blobloader?servername=…etc’. Did this functionality get moved to the new image plugin?
Still works the same way as the example on Servoy Magazine.
Is it not working for you?
No, not working like that example. But it is probably me then even though I thought I was immune to mistakes by now… I will re-check my code and report back.
David could you post some more info on the blobloader. I am having a minor syntax error in my code that I can’t find.
He is a quote from the help file using the blobloader, does that answer your question?
//loads an image (BLOB) from a field in a selected record into HTML
forms.item.elements.blob_url_display.setImageURL('media:///servoy_blobloader?servername='+controller.getServerName()+'&tablename='+controller.getTableName()+'&dataprovider=img&mimetype=image/gif&rowid1=1');
thanks for the help, however it does not solve the problem
I can’t get servoy blob loader to work at all both in a calculation or at the form level.
I want to pull this image from the msyql database and display the image for each record.
servoy version = 4.01
mysql db = 5.0.22
database= mydb
table = mytable
blob field in table containing images = graphics
pk is made up of three columns = key1+Key2+Key3(combination pk)
Display type = ImageMedia
//each time the record changes the calc will trigger loading the appropriate image for each record
//i use this in a field calculation
return ‘media:///servoy_blobloader?servername=mydb&tablename=mytable&dataprovider=graphics&rowid1=’+key1+‘&rowid2=’+key2+‘&rowid3=’+key3;