PDA

View Full Version : IE6 fails to open image by ftp



sinha.ashish
14th April 2008, 11:10
void VistaMedia:: playBrowser()
{ mp=new QProcess(0);
QString program = "IEXPLORE";
mediaPath="ftp://user:userpasswd@"+ipaddress+"/media/3.bmp";
QStringList argu;
argu<<mediaPath;
mp->start(program,argu);
}



This code fails to open image in the browser, also not from the command prompt, but working fine and showing the image when i open it by typing same address at the address bar of the browser.Whats the problem then ??????

wysota
14th April 2008, 13:14
Maybe the process is not started at all?

If you use Qt4 you could try:

QDesktopServices::openUrl(QUrl(QString("ftp://user:userpasswd@"+ipaddress+"/media/3.bmp")));

sinha.ashish
14th April 2008, 13:57
even using above showing "page cannot be displayed" error

wysota
14th April 2008, 14:22
Maybe the url is incorrect. What does qDebug() << ipaddress display?

sinha.ashish
14th April 2008, 14:37
Ipaddress is correct and working fine if i type it in address bar of the browser directly,but fails when opening image from command prompt or from QProcess in my program.
I wonder mplayer is playing remote files by ftp from the command as:("mplayer ftp://user:userpasswd@199.100.100.1/media/F_1.avi") fine at command prompt but IEXPLORE.exe fails.
as("IEXPLORE ftp://user:userpasswd@199.100.100.1/media/3.bmp")