I will try to pass the image url later on.
But what and why the image data is modified is what I am caring about when fetching with js. I think there must be some rule to modify it back.
Take the s.gif as example, I decoded the the returned string "R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw==" and get something like "GIF89a!,D;" which is very possible to tell the raw data is GIF format though I don't know the reason and how to control the format/charset.
Again, I won't save the string, but want to pass the binary directly if possible.