FCLT#58088 -- Base64 encoding ondersteunen voor bijlagen in mldsoap en opdrsoap
svn path=/Website/branches/v2019.1/; revision=42870
This commit is contained in:
@@ -630,6 +630,7 @@ function upsertKenmerk(kenmerken, stdmld_key, mld_key)
|
||||
var Attachment = XMLval(bijlagen[bi], "attachment");
|
||||
var Name = XMLval(bijlagen[bi], "name");
|
||||
var Size = XMLval(bijlagen[bi], "size");
|
||||
var Encoding = XMLval(bijlagen[bi], "encoding", true);
|
||||
//Response.Write("Name: " + Name + " size: " + Size);
|
||||
if (Attachment && Name && Size)
|
||||
{
|
||||
@@ -643,7 +644,14 @@ function upsertKenmerk(kenmerken, stdmld_key, mld_key)
|
||||
{
|
||||
__Log("Start saving: " + params.AttachPath + SafeName);
|
||||
CreateFullPath(params.AttachPath);
|
||||
encodedString2File(params.AttachPath + SafeName, Attachment, "bin.hex");
|
||||
if (Encoding == 'base64')
|
||||
{
|
||||
encodedString2File(params.AttachPath + SafeName, Attachment, "bin.base64");
|
||||
}
|
||||
else
|
||||
{
|
||||
encodedString2File(params.AttachPath + SafeName, Attachment, "bin.hex");
|
||||
}
|
||||
__Log("Done saving: " + params.AttachPath + SafeName);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -942,6 +942,7 @@ for (i=0; i < opdrachten.length; i++)
|
||||
var Attachment = XMLval(bijlagen[bi], "attachment");
|
||||
var Name = XMLval(bijlagen[bi], "name");
|
||||
var Size = XMLval(bijlagen[bi], "size");
|
||||
var Encoding = XMLval(bijlagen[bi], "encoding", true);
|
||||
//Response.Write("Name: " + Name + " size: " + Size);
|
||||
if (Attachment && Name && Size)
|
||||
{
|
||||
@@ -955,7 +956,14 @@ for (i=0; i < opdrachten.length; i++)
|
||||
{
|
||||
__Log("Start saving: " + params.AttachPath + SafeName);
|
||||
CreateFullPath(params.AttachPath);
|
||||
encodedString2File(params.AttachPath + SafeName, Attachment, "bin.hex");
|
||||
if (Encoding == 'base64')
|
||||
{
|
||||
encodedString2File(params.AttachPath + SafeName, Attachment, "bin.base64");
|
||||
}
|
||||
else
|
||||
{
|
||||
encodedString2File(params.AttachPath + SafeName, Attachment, "bin.hex");
|
||||
}
|
||||
__Log("Done saving: " + params.AttachPath + SafeName);
|
||||
flextrack.push(L("lcl_shared_attachment_add").format(label, SafeName));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user