i know about the null terminating character, but i don't think this is the 
problem. comparing with the wav file, i notice that there are some 
characters changed, e.g.

rigth data: <82>
wrong data: 

rigth data: ^
wrong data: 

so, i don't think that this is the main issue that i'm facing here...

any toughts?


On 8/15/05, Warren Young <[EMAIL PROTECTED]> wrote:
> 
> Karima Velasquez wrote:
> >
> > i'm capturing raw audio/video data and want to store it into mysql. in 
> my
> > c++ program i create the query to do this, i use sprintf to create this
> > query using %s format for the printing.
> 
> Um, you are aware that C strings (which sprintf uses) are
> null-terminated, and that nulls will be _everywhere_ in raw video and
> audio data, right?
> 
> You need to dig up some sample code on using BLOB columns. That will
> show you how to insert raw binary data into a table.
> 
> --
> MySQL General Mailing List
> For list archives: http://lists.mysql.com/mysql
> To unsubscribe: 
> http://lists.mysql.com/[EMAIL PROTECTED]
> 
>

Reply via email to