Title: Using 'raw' without using 'save' gives no output · Issue #8 · WhyNotHugo/python-barcode · GitHub
Open Graph Title: Using 'raw' without using 'save' gives no output · Issue #8 · WhyNotHugo/python-barcode
X Title: Using 'raw' without using 'save' gives no output · Issue #8 · WhyNotHugo/python-barcode
Description: I think the title explains it all. If I try to use .raw to server an SVG barcode without using .save first, I get an empty output... Example: Trying to serve this in my django project: class APIBarcode(View): def get(self, request, *args...
Open Graph Description: I think the title explains it all. If I try to use .raw to server an SVG barcode without using .save first, I get an empty output... Example: Trying to serve this in my django project: class APIBar...
X Description: I think the title explains it all. If I try to use .raw to server an SVG barcode without using .save first, I get an empty output... Example: Trying to serve this in my django project: class APIBar...
Opengraph URL: https://github.com/WhyNotHugo/python-barcode/issues/8
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Using 'raw' without using 'save' gives no output","articleBody":"I think the title explains it all.\r\n\r\nIf I try to use .raw to server an SVG barcode without using .save first, I get an empty output...\r\n\r\nExample:\r\nTrying to serve this in my django project:\r\n\r\n```\r\nclass APIBarcode(View):\r\n\r\n def get(self, request, *args, **kwargs):\r\n uuid = request.GET.get('uuid')\r\n C39 = barcode.get_barcode_class('code39')\r\n toserve = C39(uuid)\r\n toserve.save('c39code')\r\n return HttpResponse(toserve.raw, content_type=\"image/svg+xml\")\r\n```\r\n\r\nGives the following output:\r\n\r\n\r\nBut serving this:\r\n```\r\nclass APIBarcode(View):\r\n\r\n def get(self, request, *args, **kwargs):\r\n uuid = request.GET.get('uuid')\r\n C39 = barcode.get_barcode_class('code39')\r\n toserve = C39(uuid)\r\n # toserve.save('c39code')\r\n return HttpResponse(toserve.raw, content_type=\"image/svg+xml\")\r\n```\r\nGives the following output:\r\n\r\n\r\n\r\n\r\nIf someone can point me to where I should be looking I would gladly attempt to fix it!","author":{"url":"https://github.com/sharifanani","@type":"Person","name":"sharifanani"},"datePublished":"2018-05-22T01:48:54.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":6},"url":"https://github.com/8/python-barcode/issues/8"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:97a46510-1de4-0aab-87a4-0c49137b649c |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | CFB0:8806E:6AADD4:94AED1:6A62420D |
| html-safe-nonce | 08720e808a9a9fde5a53be4c0dcd994a32e4afd0d9b2f7bb26a438f6c48a1007 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDRkIwOjg4MDZFOjZBQURENDo5NEFFRDE6NkE2MjQyMEQiLCJ2aXNpdG9yX2lkIjoiNTI3NjM5NDAwNTI1NzY2NzA4NSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 2a15c8536c96ebe4e6b41e82510b19fb6da3f9b9a7181f8e6d190ef62252a0d9 |
| hovercard-subject-tag | issue:325113282 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/WhyNotHugo/python-barcode/8/issue_layout |
| twitter:image | https://opengraph.githubassets.com/879bd92f7d179f0b7122051187712a89fa5cb3190fa0d8610f4d75a15d17748f/WhyNotHugo/python-barcode/issues/8 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/879bd92f7d179f0b7122051187712a89fa5cb3190fa0d8610f4d75a15d17748f/WhyNotHugo/python-barcode/issues/8 |
| og:image:alt | I think the title explains it all. If I try to use .raw to server an SVG barcode without using .save first, I get an empty output... Example: Trying to serve this in my django project: class APIBar... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | sharifanani |
| hostname | github.com |
| expected-hostname | github.com |
| None | 5d6ba65d73ecc4e3394fe318d2b2f98e6f8eed4878b5421b938e20d30bde267b |
| turbo-cache-control | no-preview |
| go-import | github.com/WhyNotHugo/python-barcode git https://github.com/WhyNotHugo/python-barcode.git |
| octolytics-dimension-user_id | 730811 |
| octolytics-dimension-user_login | WhyNotHugo |
| octolytics-dimension-repository_id | 106754007 |
| octolytics-dimension-repository_nwo | WhyNotHugo/python-barcode |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 106754007 |
| octolytics-dimension-repository_network_root_nwo | WhyNotHugo/python-barcode |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 2dadc56fd5989b76a8ae7304e3aa56d0b485e5dc |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width