Thanks for all reply. I have found a way that can find the target string(boundary) among binary data(Using member instead of strstr).