Create PDF file using the file plugin

Hi,

I am using Servoy 3.5.12 and i am encounterring an issue with the file plugin:

plugins.file.writeFile(vFullPath, vBlob)

returns true but creates a file with 0 kb sometimes when the file type is a pdf.

I select the blob from the database, any idea what could be the reason of this?

Thank you,
Diana

I have seen this also, but in all my cases, the blob was empty!

Hi Harjo,

The blob is not empty in this case.

Diana

Diana,

this works for me in 3.5.12 every time.

if (thepressed=='Save')
{
var filename = plugins.file.showFileSaveDialog();

var success = plugins.file.writeFile(filename,rw_final_report);
}

rw_final_report is a mysql blob field.

David