|
-
Mar 19th, 2003, 06:32 PM
#1
Thread Starter
Frenzied Member
Binary Write add extra character :(
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:
Put #freeF, , xmlContent
While lngCurr < lngFileSize
binChunk() = rs.Fields("attachementSource").GetChunk(intChunk)
Put #freeF, , binChunk()
lngCurr = lngCurr + intChunk
Wend
Put #freeF, , tmpXml 'this line add the extra char
those one -> </_img.data_>
can some help me, tx!
-
Mar 19th, 2003, 06:43 PM
#2
Thread Starter
Frenzied Member
damm, even if i comment the piece that write the binary file, i still get those funny charracters!
<_img.data_> </_img.data_>
why o why !!
-
Mar 19th, 2003, 07:21 PM
#3
Thread Starter
Frenzied Member
tx
tmp() = StrConv(xmlContent, vbFromUnicode)
Put #freeF, , tmp()
solved it
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|