XSLT: Convert base64 data into image files

前端 未结 4 1900
日久生厌
日久生厌 2020-12-03 02:07

I have seen several questions on how to encode an image file in base64, but how about the other way around - how do I reconstitute a picture from a base64 string stored in a

4条回答
  •  陌清茗
    陌清茗 (楼主)
    2020-12-03 02:46

    There is a better method available since Saxon 9.5 via the EXPath File extension module (available in Saxon-PE and Saxon-EE).

    Here is a fragment of the code I'm using to extract binary image files from Word documents (source XML is in WordProcessingML format):

    
    
    
        
    
    
    
        
            
        
        
        
    
               
    
    

提交回复
热议问题