List:General Discussion« Previous MessageNext Message »
From:Karima Velasquez Date:August 15 2005 7:11pm
Subject:Re: character encoding
View as plain text  
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 <warren@stripped> 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/mysql?unsub=1
> 
>

Thread
character encodingKarima Velasquez15 Aug
  • Re: character encodingWarren Young15 Aug
    • Re: character encodingKarima Velasquez15 Aug
      • Re: character encodingWarren Young15 Aug
        • Re: character encodingKarima Velasquez15 Aug
          • Re: character encodingWarren Young15 Aug
            • Re: character encodingKarima Velasquez16 Aug
              • Re: character encodingWarren Young16 Aug
                • Re: character encodingKarima Velasquez17 Aug
                  • Re: character encodingJasper Bryant-Greene17 Aug