I am working on a project where I need to import windows files (ppt, word, visio, etc) and need to convert the emf to pngs. I have the backend support via inkscape / php to handle the conversion, however, I have to POST to the BE using base64 encoded strings. So my usecase:
- POST serialized emf file to endpoint
- base64_decode the string, save a temp emf file and png
- Use inkscape to convert the emf to png.
- Return base64 string of png.
The biggest issue is that I believe the original encoding of the emf file isn't correctly serializing. Any thoughts? And, I can't post the actual emf image as a blob to the BE.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…