Luc, You can't return a binary (varbit) file from the Script Engine. It will only return text, note or varchar.
You will have to do the file handling inside of the script engine and that is something I haven't tasked myself to do yet, so if it can be done, I would have to figure it out first. Then "IF" it is possible, I could show you the changes to make in the script code to do it. I know that ADO.Stream Object can handle binary data as that is what I use for XMLHTTPRequest, so that is a possibility. I can't get to it tonight, but I will look into it if you want. The answer to your question is that you have the correct syntax, but if 'cardholder.Picture.TempFileName' is binary data, it won't work with the RMScript.dll as you have discovered, for the reasons I list above. ----- Original Message ----- From: "Luc Delcoigne" <[email protected]> To: "RBASE-L Mailing List" <[email protected]> Sent: Monday, June 06, 2011 2:06 PM Subject: [RBASE-L] - re: loading jpeg in BLOB Hi, This topic has been answered before, but I can't find it anymore. I want to load an JPEG into a BLOB from a variable. this is a question of correct syntax. What I have is : SET VAR vfoto = (dlcall('RMScript.dll', 'MScrEval', 'cardholder.Picture.TempFileName')) --vfoto contains the path to the JPEG SET VAR vfoto1 VARBIT = NULL SET VAR vfoto1 VARBIT = [.vfoto] -- this is where it is going wrong. How can I get the contents of the variable in the BLOB ? Luc D.

