Closed derrick56007 closed 9 years ago
What you send doesn't matter. It is not a string, it is a dynamic type. When force is sending it through the wire he encodes it with json and at the other end he decodes it.
Take a look at https://api.dartlang.org/apidocs/channels/be/dartdoc-viewer/dart:io.File#id_openRead
With openRead you can access a List
Using his bytes and sending the bytes of the file would be the ideal solution for this.
Thanks for the clearing that up! Keep up the good work.
Hi, I was just wondering if it was possible to send file/data other than strings through the use of forceServer.send(). If possible, would you be able to typecast the object once it reached the client? I figured once it is serialized you would have to do a conversion afterwards.