I'm developer of the project based on Mozilla code and I've encountered
problem that drives me crazy.
I need to get and parse some binary file from arbitrary URI, so I've tried
the following:
nsIInputStream* in;
rv = NS_OpenURI(&in, uri);
if (NS_FAILED(rv))
return PR_FALSE;
and then, for simplicity:
char c; PRUint32 count;
rv = in->Read(&c, 1, &count);
but the above code works only on local files, when I tried any http url the
"Read()" method does not return at all.
Where is my fault?
--
Alexey Semenov
LG Soft Lab