I would like to upload a custom file placed as a resource file in a silverlight application, but FileStream does not work (since I have to stay in a partial trust environment).
Is there any solution to upload my file? (this is binary serialized data).
UPDATE
Answer found:
And then using the "info.Stream" property.
Now I have another question. By doing so, the file is added to the assembly (in exe / dll) and makes it a little larger.
But since this data needs to be loaded simultaneously with the assembly, should I allow it as a resource or use another method to separate it separately? (and what should be the method? I need it to work on both the local and the server).
Thank,
Kite
source
share