The UK Home Automation Archive

Archive Home
Group Home
Search Archive


Advanced Search

The UKHA-ARCHIVE IS CEASING OPERATIONS 31 DEC 2024


[Message Prev][Message Next][Thread Prev][Thread Next][Message Index][Thread Index]

RE: RE: xplRioNet + MVP




Hi Tony,

I didn't do a very good job of taking this offlist did I :-(

Anyway, I might as well keep this thread onlist for now in case it is of
use to others.

> I take the file size and split it up into 4 bytes for squirting out in
the
> tcp packet.
>
> The code is in mvp.vb, Sock_Receive_Media
>
> ' file size
> fs = FileLen(RC.MVPStreamMovie.Filename)
> b(16) = Int(fs / 16777216)
> b(17) = Int((fs - (b(16) * 16777216)) / 65536)
> b(18) = Int((fs - (b(16) * 16777216) - (b(17) * 65536)) / 256)
> b(19) = fs - (b(16) * 16777216) - (b(17) * 65536) - (b(18) * 256)
>
> Where b is a byte array and fs is a long

I'll give this a try with a file that's >2GB and see what happens.

Regards,

John




xPL Main Index | xPL Thread Index | xPL Home | Archives Home

Comments to the Webmaster are always welcomed, please use this contact form . Note that as this site is a mailing list archive, the Webmaster has no control over the contents of the messages. Comments about message content should be directed to the relevant mailing list.