Hi Gloria, The message you quoted is 2.5 years old, but in the code shown, a server is being created that responds to *all requests* with a particular HTML page. It doesn't matter whether your request is for index.html or image.png or player.swf or movie.flv; the server that was shown will respond with the contents of the HTML page. That's probably not the desired behavior.
Maybe if you show us your code we can help you further. > On Nov 10, 2014, at 1:41 PM, Gloria Josefina <[email protected]> wrote: > > Hi! > > How did you fix this? > I´m having the same issue... > > Thanxs! > > El jueves, 22 de marzo de 2012 13:50:17 UTC-3, ArsIsFun escribió: >> Hello, >> >> When i embed a swf file on an html file, and try to serve it through node js >> server, the swf file doesn't appear. how can i fix this? >> >> (the callhttpservice.html file has the swf embedded on it, attached is the >> html page) >> >> var fs = require('fs'); >> var server = require('http').createServer(function(req, response){ >> fs.readFile(__dirname + '/callhttpservice.html', function (err, data) { >> response.writeHead(200, {'Content-Type':'text/html'}); >> response.write(data); >> response.end(); >> }); >> }); >> server.listen(8080); -- Job board: http://jobs.nodejs.org/ New group rules: https://gist.github.com/othiym23/9886289#file-moderation-policy-md Old group rules: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines --- You received this message because you are subscribed to the Google Groups "nodejs" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/nodejs/D447E3A1-2561-4E44-BE51-87D551D76B85%40ryandesign.com. For more options, visit https://groups.google.com/d/optout.
