Forums | developer.brewmp.com Forums | developer.brewmp.com

Developer

Forums

Forums:

Hello Friends,

I am trying to download an image from a server which the server sends in byte format, using IWeb interface

When the download is complete at my side means the control goes to ISOURCE_END case, then i save the data into a file with .bmp name, then when i compare the two files the size of both the files is same but the data in the second file is incomplete, i can only see a few data, rest of it is null characters.

Can anybody tell that where is the problem exactly, in the server or in method which i am using to get the response.

Any help would be really appreciated.

Are you advancing the data buffer pointer each time you are getting data to proper position. Try downloading some other data/may be from some other sever to confirm this.

Are you advancing the data buffer pointer each time you are getting data to proper position. Try downloading some other data/may be from some other sever to confirm this.

Yes atul i am incrementing the pointer to proper position next time the data arrives,
I am confirm about this because, i have tried downloading a txt file with size approx 32k, and all the data in that text file is coming properly, it's giving problem only when i am trying to download an image file.
But now i have solved the problem.
Previously i was using STRCAT fuction to append the continuous data which was coming each time,
but using function MEMCPY has solved the problem.
Thanks a lot for the reply you have given.

Yes atul i am incrementing the pointer to proper position next time the data arrives,
I am confirm about this because, i have tried downloading a txt file with size approx 32k, and all the data in that text file is coming properly, it's giving problem only when i am trying to download an image file.
But now i have solved the problem.
Previously i was using STRCAT fuction to append the continuous data which was coming each time,
but using function MEMCPY has solved the problem.
Thanks a lot for the reply you have given.

Hi Vinay ,
I am using MEMCPY , but couldnt solved my problem.
Can You please post your code snippet or any help in this case.
--------------------
Saurabh Shah

Hi Vinay ,
I am using MEMCPY , but couldnt solved my problem.
Can You please post your code snippet or any help in this case.
--------------------
Saurabh Shah