Hello
I just to tried to make the Saas File Management exercice from a BC book
Uploading a pdf file works fine
Downloading produces a file that is not valid - cannot be opened bye a pdf reader
I have the impression that the base64 variable does not change (in the debugging watch) when executing the base64Convert.FromBase64 function :
...
httpResponse.Content.ReadAs(base64);
base64 := DelChr(base64, '=', '"');
base64Convert.FromBase64(base64);
tempblob.CreateOutStream(outstr);
...
When charging the file in an editor I see something beinning like this :
JVBERi0xLjcNCiWhs8XXDQoxIDAgb2JqDQo8P ...
When modifying AL (the conversion part) and the related c# code to return the file content directly (no base 64) I get something more ressembling to a pdf file :
%PDF-1.7 ...
but even this one is not valid
Does anybody have any idea what I'm doing wrong ?