Last active
April 4, 2017 11:35
-
-
Save EastResident/90169838ca019142c277e15fb7e8ec81 to your computer and use it in GitHub Desktop.
OpenURIで10KB以下のファイルが開けないよ ref: http://qiita.com/EastResident/items/a9f753fe0983e915e99f
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
OpenURI.open_uri('ファイルのURL') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
OpenURI::Buffer.send('const_set', :StringMax, 0) | |
file = OpenURI.open_uri('10kb以下のファイルのURL') | |
file.class # => Tempfile |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment