asp.net mvc - MVC Controller.File returns blank pdf -


i lost lot of time on issue go straight topic. receiving empty pdf correct number of (blank)pages. action is:

     public fileresult downloaddoc()      {             //authorization            //initialising filename            //getting content            return file(convert.frombase64string(content), "application/pdf", filename);       } 

content base64 string , correct. know because when use system.io.file.writeallbytes make document i'm getting correct one. tried return file on response , result same. there no (i hope) razor syntax errors.

this part of code used work, , stopped despite no 1 made no change. maybe iis restarted.

if can tell me else try ... tnx

p.s. looking way without saving doc on server side.

sorry, error in javascript saves file after returning server. if have similar issues check inner properties of blob object!


Comments

Popular posts from this blog

Magento/PHP - Get phones on all members in a customer group -

php - .htaccess mod_rewrite for dynamic url which has domain names -

Website Login Issue developed in magento -