Look up UIImage.FromData. NSData is basically a byte[], so it should work fine.

I'd use TCP if you can. But thats just me :)

On Thu, Aug 25, 2011 at 08:31, pkd2010 <[email protected]> wrote:
> Hi
>
> Actually i am working with UDP in this application and yesterday my
> application successfully worked for me without any problem, both
> applications on iOS Device and Windows can send and receive data. When i saw
> this, i thrilled :D and after that i tried to apply the following process to
> stream Windows screen.
>
>  1  There is a Thread in windows side application that captures screen as a
> Jpeg file (could be anything) and
>     converts it to byte[] then send it. (Here is my problem)
>
>  2  In iOS side application, i have a Thread that always is waiting for
> data(s) to receive. when byte[]   receives, convert it to UIImage and
> display it using <my image viewer>.Image=<my instance of UIImage>
>
> Here i have a question and a problem :D
>
> At first an error comes to me in Sending images, that is because of UDP
> limitation of byte[] (2500) so that either i should divide my byte array to
> for example three parts and then send them and client should first get the
> bytes and after that, package them or i should use TCP. What is your opinion
> ?
>
> And the second question is when byes are received is it convertible to
> instance of UIImage?
>
> Thanks
>
> --
> View this message in context: 
> http://monotouch.2284126.n4.nabble.com/Audio-streaming-between-iOS-and-Windows-tp3752160p3767554.html
> Sent from the MonoTouch mailing list archive at Nabble.com.
> _______________________________________________
> MonoTouch mailing list
> [email protected]
> http://lists.ximian.com/mailman/listinfo/monotouch
>



-- 
Nic Wise
t.  +44 7788 592 806 | @fastchicken | http://www.linkedin.com/in/nicwise
b. http://www.fastchicken.co.nz/

mobileAgent (for FreeAgent): get your accounts in your pocket.
http://goo.gl/IuBU
Trip Wallet: Keep track of your budget on the go: http://goo.gl/ePhKa
London Bike App: Find the nearest Boris Bike, and get riding! http://goo.gl/Icp2
_______________________________________________
MonoTouch mailing list
[email protected]
http://lists.ximian.com/mailman/listinfo/monotouch

Reply via email to