Thanks for the reply,
I'm trying that now, am still having problems (imgBytes[0] is null, imgBytes.length is null, though alert(imgBytes) shows binary data).
Javascript isn't my native tongue so to speak, so the problem is probably on my end at this point.
Are there any examples using ToMemoryFileVariant in javascript?
Thanks