Convert Byte array to the original file in javascr

2019-09-07 05:23发布

问题:

I am sending a Byte array which was originally a binary in the database. the processes of sending the byte array is fine, but the problem is how can I handle this byte array.

1) can I handle it using javascript, I mean can I retrieve the byte array and convert it back to its original state. if yes how ?

2) if no what other way I can do that.

What I want to do is to make the client side able to download files from the WCF without using a stream, I don't need stream because I know that the downloaded and uploaded files are small in size.