Re: [Vala] reading and writing binary data

2009-01-26 Thread Yu Feng
Not sure if helpful, but apparently uchar[] stands for byte arrays, string stands for utf8 string. I believe a patch to glib-2.0.vapi should be made to include the ->data member in class ByteArray. - Yu On Mon, 2009-01-26 at 18:52 -0800, jezra lickter wrote: > Hello, > I am using GNet to read

[Vala] reading and writing binary data

2009-01-26 Thread jezra lickter
Hello, I am using GNet to read data from a file over http and then write the data to a local file. Everything works fine when I am reading a text file but when I read some sort of binary file the data gets corrupted. I believe the problem is caused by Vala converting the data that I read into a UT