#300 Hard coded output headers - cannot fetch PNG stream QR code (barcodes)

open
nobody
None
1
2014-07-31
2013-12-18
Lubos Dz
No

Hi,

creating barcode QR code PNG outputs directly into browser with headers - e.g.TCPDF2DBarcode::getBarcodePNG(). The function has hard-coded output headers which makes it impossible to fetch QR code as binary stream via ob_start() .. ob_get_clean() due to corrupted output.

Would it be possible to add extra argument, e.g.

output="I" .. inline adds headers, just like now (default)
output="/path/to/save/file" .. saves into harddisk and no headers
output="S" ... returns binary stream string

What do you think... ?
Thanx
Lubos

Discussion


Log in to post a comment.