Hi

I save a file(any kind) in a db in a OLE Field!

If i read it and append it to a file with the extention it work!

A jpeg for example!

but, for my project, i need for info in that file, so i add tag before and after the binary content of that file, so that i can upload it to a server!

but my problem is that my last write of my tag add unwanted charracter!!

here my code

VB Code:
  1. Put #freeF, , xmlContent
  2.                     While lngCurr < lngFileSize
  3.                         binChunk() = rs.Fields("attachementSource").GetChunk(intChunk)
  4.                         Put #freeF, , binChunk()
  5.                         lngCurr = lngCurr + intChunk
  6.                     Wend
  7.                     Put #freeF, , tmpXml 'this line add  the extra char

those one ->  </_img.data_>

can some help me, tx!