Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

8
LINES

< > BotCompany Repo | #1003777 // file2stream

JavaX fragment (include)

static void file2stream(File src, OutputStream out) throws IOException {
  FileInputStream inputStream = new FileInputStream(src);
  try {
    copyStream(inputStream, out);
  } finally {
    inputStream.close();
  }
}

Author comment

Began life as a copy of #1000843

download  show line numbers  debug dex  old transpilations   

Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, ddnzoavkxhuk, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1003777
Snippet name: file2stream
Eternal ID of this version: #1003777/1
Text MD5: 192a0d4284d8c1d9d955b29bfc62b2c1
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2016-07-27 00:06:59
Source code size: 224 bytes / 8 lines
Pitched / IR pitched: No / No
Views / Downloads: 629 / 629
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)
#1015359 - copyFileToStream - synonym of file2stream