Sorry, now I have posted the whole source code. the other items except for blob can be written correctly. the problem is that blob can NOT be written there is no error message, the code is complied ok what's your meaning of raw memory? how shoud I do? can you show me a piece of code? or any similar example available on this forum?