title: how to create RandomAccessFile from InputStream?
body: <p>The only way I know is to write a temp file, and read this file to create RandomAccessFile ,check it <a href="http://www.coderanch.com/t/277378/Streams/java/InputStream-RandomAccessFile-best-way" rel="nofollow noreferrer">here</a></p>
  
  <p>or use Use Unified I/O library (<a href="http://uio.imagero.com" rel="nofollow noreferrer">http://uio.imagero.com</a>) <a href="http://www.velocityreviews.com/forums/t140932-create-randomaccessfile-from-inputstream.html" rel="nofollow noreferrer">here</a></p>
  
  <p>Would this be the best way? Or can use temp file and the  imageio library to implement it?</p>