when sending big data (e.g. images) do not access directly the buffer of the port but do the copy instead to make the code more robust.