/** 将字符串转换为流 */ public static InputStream getIsFromStr(String str) { InputStream myIn = null; try { myIn = new ByteArrayInputStream(str.getBytes()); } catch (Exception e) { GLog.e("Error! "); } return myIn; }