-
Notifications
You must be signed in to change notification settings - Fork 72
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
Read IOStream for use with S3 #42
Comments
Would be great for this to get a more "proper" fix, but I think a simple (inefficient?) work-around for now could be something along the lines of: function matread(io::IO)
# Write to a temporary file
tempfile = tempname()
write(tempfile, io)
# Read data from temporary file
data = matread(tempfile)
# Clean up temporary file and return data
rm(tempfile)
return data
end Would need a bit of work to make sure errors, etc. are handled correctly (e.g., what should be done if @JeffFessler, is this something you're still looking at? |
I found a workaround of the form That does not address the OP question though, and it still (inefficiently?) uses an intermediate file. |
Fun! Just showed her. :) |
Is it possible to pass an IOBuffer to MAT.jl?
This would be useful when storing data on services such as Amazon S3 with AWS.jl.
I tried the following code, but it did not work.
The text was updated successfully, but these errors were encountered: