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

encodeUtf8 an image data doesn't work on firefox #11527

Closed
DartBot opened this issue Jun 26, 2013 · 4 comments
Closed

encodeUtf8 an image data doesn't work on firefox #11527

DartBot opened this issue Jun 26, 2013 · 4 comments
Labels
area-pkg Used for miscellaneous pkg/ packages not associated with specific area- teams. needs-info We need additional information from the issue author (auto-closed after 14 days if no response)

Comments

@DartBot
Copy link

DartBot commented Jun 26, 2013

This issue was originally filed by Thomas.Dela...@gmail.com


What steps will reproduce the problem?

  1. load an image with HttpRequest (mine was 5mb)
  2. do an encodeUtf8(request.responseText)
  3. see firefox stop the script of dart2js

What is the expected output? What do you see instead?
expected : finish encoding
see instead : script takes too long times to respond

What version of the product are you using? On what operating system?
Dart Editor version 0.5.20_r24160
Dart SDK version 0.5.20.2_r24160
Firefox 21.0
MacBook Pro Retina (2012) OS X 10.8.4

@anders-sandholm
Copy link
Contributor

Added Area-Library, Library-Utf, Triaged labels.

@lrhn
Copy link
Member

lrhn commented Jan 22, 2014

Is the responseText getter meaningful for an image (which sounds like it should be binary data)?
Try setting the responseType to "ArrayBuffer" or "Blob" and get the bytes fusing "response". You shouldn't need to UTF-8 encode anything to get bytes then.
Does this help?

Also, try using UTF8.encode from dart:convert instead of encodeUtf8 from package:utf, and see if it is faster/more compliant.


Removed Area-Library label.
Added Area-Pkg, NeedsInfo labels.

@anders-sandholm
Copy link
Contributor

Removed Library-Utf label.
Added Pkg-Utf label.

@DartBot DartBot added Type-Defect area-pkg Used for miscellaneous pkg/ packages not associated with specific area- teams. needs-info We need additional information from the issue author (auto-closed after 14 days if no response) labels Apr 24, 2014
@DartBot
Copy link
Author

DartBot commented Jun 5, 2015

This issue has been moved to dart-archive/utf#1.

@DartBot DartBot closed this as completed Jun 5, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-pkg Used for miscellaneous pkg/ packages not associated with specific area- teams. needs-info We need additional information from the issue author (auto-closed after 14 days if no response)
Projects
None yet
Development

No branches or pull requests

3 participants