Putorders 'fso is undefined' bij Base64fy van bijlagen
svn path=/Website/branches/v2018.1/; revision=39206
This commit is contained in:
@@ -344,9 +344,11 @@ function Hexify(p_path)
|
||||
|
||||
function Base64fy(p_filename)
|
||||
{
|
||||
var fso = new ActiveXObject("Scripting.FileSystemObject");
|
||||
var base64="";
|
||||
Log2File(2,"Start Base64fy: " + p_filename);
|
||||
if (fso.FileExists(p_filename)){
|
||||
if (fso.FileExists(p_filename))
|
||||
{
|
||||
Log2File(2,"File Exists: " + p_filename);
|
||||
var bytes = ReadBinaryFile(p_filename);
|
||||
var base64 = encodeBase64(bytes);
|
||||
|
||||
Reference in New Issue
Block a user