I have a file as an embedded resource (resource -id: myfile) which is quite large.
I want to send this file from a function like this:
sendString(Resources.GetString(Resources.StringResources.myfile));
My function “sendString” chops up the string and send it in smaller bites.
The concept is tested with a smaller file and Works.
The question is:
Will the resource string be send to my function as a string (in RAM) or as a reference to the resource string (in FLASH)?.
If it is first copied to RAM, it will take all my RAM which is not good.
I tried to use “ref string buf” in the function argument, but it does not seems to Work (with the embedded ressource file).
Any ideas?
Sorry if this is a plain NETMF question, but it might also have somthing to do with the implementation in Netduino ???