how to display a binary content of image/pdf in java script?
        Posted  
        
            by 
                Ka-rocks
            
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by Ka-rocks
        
        
        
        Published on 2011-01-03T05:48:40Z
        Indexed on 
            2011/01/03
            5:53 UTC
        
        
        Read the original article
        Hit count: 290
        
I have a binary content of image/pdf in java script variable downloaded from server. There will be indication server about the typr of the file. I have to display the content in respective file format. If it is image , i have to display the image. If it is a pdf, i have to open the content in pdf format. and so on. How to parse the binary content and display it? I have searched for it. But I couldn't find exact solution. I'm using jquery mobile framework. Pls help..
© Stack Overflow or respective owner