public void sendPrintCmdToFlash(Texture2D texture, Texture2D bookTexture, float score, string copyright) { Debug.Log("Printint ....>>" + texture.width + " / " + texture.height); if (GetClientCount() < 1) { Debug.LogError("No Client"); return; } byte[] bytes = texture.EncodeToPNG(); string path = Application.dataPath + "/savedTexture.png"; File.WriteAllBytes(path, bytes); byte[] bookbytes = bookTexture.EncodeToPNG(); string bookPath = Application.dataPath + "/savedBookTexture.png"; File.WriteAllBytes(bookPath, bookbytes); asyncServer.Write("sendTexture," + path + "," + bookPath + "," + score.ToString("0") + "," + copyright + "[/TCP]"); }