PDA

View Full Version : Overlapping binary files with QByteArray stream



CodeHunt
1st May 2012, 11:19
I have two binary files, of which I have no clue about their data organization. I have them as QByteArray stream and overlap them meaning a[i]=b[i]+c[i].

I made an attempt with

QByteStream x,y,z
for(k=0;k<x.size();k++){
for(l=0;l<y.size();l++){
if(k=l){
z[k]=x[k]+y[l];
z.append(z[k]);
}
}
}

I know that it was a naive attempt but couldn't do more as I have no clue about the internal data organization, all I know is they are binary. Any suggestions or help please !!

Spitfire
1st May 2012, 17:48
And what's the question/problem?

CodeHunt
1st May 2012, 17:59
I have to overlap two images in binary format.

Spitfire
2nd May 2012, 10:09
If you don't know nothing about the images, and you can't process their headers (or there is no headers) then my guess is that you can't do it.

ChrisW67
2nd May 2012, 11:08
Please do not ask the same question in multiple places