I have telegram bot receiving a photo in webhook. I can download photo but not get file extension. How to get image extension and optionally mime-type from variable containing photo?
I have telegram bot receiving a photo in webhook. I can download photo but not get file extension. How to get image extension and optionally mime-type from variable containing photo?
2
Answers
You can use the
buffer
method on anfinfo
instance to get the mime type of an arbitrary string blob if you don’t want to write it to disk first:Demo: https://3v4l.org/EJ95S
How to retrieve the values in my excel file with PHPExcel using WHILE or FOR loop
i have data in my worksheet between cells A8:A23 AND F8:F23. I need to transfer those data to mysql database with a submission button using phpexcel
i have an input file name=’fichier’.
Someone can help me please ?