Android examples for File Input Output:Byte Array Copy
copy Bytes Into Byte Array At Offset
//package com.java2s; public class Main { public static void copyBytesIntoByteArrayAtOffset(byte[] dest, byte[] src, int offset) { for (int i = 0; i < src.length; i++) { dest[offset + i] = src[i];/*from www . j ava 2 s. com*/ } } }