solgenomics/sgn — comment on commit 38e9f25482562bc462659e18571fed5292fee137
File:  line 0
By rbuels:

Why are you serving these barcodes out of a temp dir? It's so much harder this way, you have to worry about where the temp dir is, whether it exists, etc. It's much easier to just serve the image data directly to the client.

```perl
$c->response->content_type('image/png');
$c->response->body( $barcode->png );
```

And that's all!