gaopeng wrote: > Hi , now , I want to find a class which implement a function of > dowloading a file from internet in ooo . > > Is there have some classes to get a file from the internet with the > differrent communication protocol (e.g : ftp , http or others ) > > Anybody would tell me which class have implemented this function ?
You can use the ::comhelper::MediaDescriptor class. It gets created with a bunch of arguments, e.g. the URL you want to access. Calling "addInputStream" will create a stream, either a pure inputstream or a "complete" stream, depending on the arguments and the source. To see how it is used you can have a look in sfx2/source/doc/docfile.cxx. Ciao, Mathias -- Mathias Bauer (mba) - Project Lead OpenOffice.org Writer OpenOffice.org Engineering at Sun: http://blogs.sun.com/GullFOSS Please don't reply to "[EMAIL PROTECTED]". I use it for the OOo lists and only rarely read other mails sent to it. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
