You are probably just missing the http header "image/png". Otherwise, this
looks fine :)
Marco Pivetta

http://twitter.com/Ocramius

http://marco-pivetta.com



On 13 March 2012 01:51, faom [via Zend Framework Community] <
[email protected]> wrote:

> How can I pass the barcode img to the view from a controller.
>
> I'm putting this code in the controller:
>
> $barcodeOptions = array('text' => 'ZEND-FRAMEWORK');$rendererOptions =
> array();
> $this->view->barcode = $renderer = Zend_Barcode::factory('code39',
> 'image', $barcodeOptions,$rendererOptions);
>
> And I'm putting this in the view:
>
> $this->barcode->render();
>
> However I'm getting simbols like the following but no the barcode image,
> what I'm doing wrong:
>
> �PNG IHDR > ��h� IDATx����r� PO�����©c �9ISֺ2 �@��
> Y֮eY���������#���=E���V� �ܪ3~��_/� }�<��ϑ���� 푱 �޻�������]� �>Ɂ��@Br !9��
> HH $$ � Ɂ��@Br !9�� HH $$ � Ɂ��@Br !9�� HH $$ � Ɂ��@Br !9�� HH $$ � Ɂ��@Br
> !9�� HH $$ � Ɂ��@Br !9�� HH $$ � Ɂ�k]��� �<���
> ����U�Y׵�s����ő���HC����{���۟��l�<��:�ͤok�\�7փ���O�ɺ
> ����fq�>_�����K(�]�g��ElZ��f�gNqK>� ��/�����
>
> ------------------------------
>  If you reply to this email, your message will be added to the discussion
> below:
>
> http://zend-framework-community.634137.n4.nabble.com/rendering-barcode-tp4467865p4467865.html
>  To unsubscribe from Zend Framework Community, click 
> here<http://zend-framework-community.634137.n4.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=634137&code=b2NyYW1pdXNAZ21haWwuY29tfDYzNDEzN3wxNzE0OTI1MTk4>
> .
> NAML<http://zend-framework-community.634137.n4.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
>


--
View this message in context: 
http://zend-framework-community.634137.n4.nabble.com/rendering-barcode-tp4467865p4467909.html
Sent from the Zend Framework mailing list archive at Nabble.com.

Reply via email to