Skip to content

Instantly share code, notes, and snippets.

@abhi18av
Created August 3, 2017 09:20
Show Gist options
  • Select an option

  • Save abhi18av/b076e3822b3b6883a06f2f8ac733db36 to your computer and use it in GitHub Desktop.

Select an option

Save abhi18av/b076e3822b3b6883a06f2f8ac733db36 to your computer and use it in GitHub Desktop.
julia> SExprStr = read(B, String); # get buffer contents as string
ERROR: MethodError: Cannot `convert` an object of type Type{String} to an object of type Array{UInt8,1}
This may have arisen from a call to the constructor Array{UInt8,1}(...),
since type constructors fall back to convert methods.
Stacktrace:
[1] read(::Base.AbstractIOBuffer{Array{UInt8,1}}, ::Type{T} where T) at ./io.jl:528
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment