跨域文件流傳輸

  咱們若是要傳輸一個文件流到另外一個域,顯然是不能直接將流傳輸到另外一個域中的,因此咱們能夠獲取流的byte數組,而後將它轉換爲Stringjava FileInputStream is = new FileInputStream(file); ByteArrayOutputStream os = new ByteArrayOutputStream(); byte[] b = new byte[
相關文章
相關標籤/搜索