Posted By

yakafokon on 12/10/09


Tagged

java String InputStream


Versions (?)

Convert String to InputStream


 / Published in: Java
 

  1. String s = "Hello world";
  2. InputStream stream = new ByteArrayInputStream(s.getBytes());

Report this snippet  

You need to login to post a comment.