Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Including images #52

Open
binbrain opened this issue Apr 21, 2015 · 0 comments
Open

Including images #52

binbrain opened this issue Apr 21, 2015 · 0 comments

Comments

@binbrain
Copy link

Its possible to bundle images inside of a bower package by putting it into the bower.json. However, the error below is produced. If line 291 in core is changed to open(..., 'rb') bowerstatic opens the image and serves it, not in the correct way obviously, but it works.

I'm not sure if this if is in supposed to work differently and I'm doing something wrong, if image inclusion just hasn't been added as a feature yet, or if its an oversight.

  File "eggs/bowerstatic-0.8.1-py3.4.egg/bowerstatic/core.py", line 291, in content
    return f.read()
  File "Python3.4.2/lib/python3.4/codecs.py", line 313, in decode
    (result, consumed) = self._buffer_decode(data, self.errors, final)
UnicodeDecodeError: 'utf-8' codec can't decode byte 0x89 in position 0: invalid start byte
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant