On 27/11/2009, at 4:32 AM, Anjo Krank wrote:

> Am 26.11.2009 um 18:26 schrieb Lachlan Deck:
> 
>> String hexString = new String(nsdata.bytes(), "UTF-8");
> 
> This won't work. There are a lot of invalid UTF-8 combinations, so you will 
> get exceptions - if your DB accepts the syntax in the first place.

Well, he had two questions: the first being, 'how do I get a string from 
NSData'?
Whether or not that will work via sql is a separate question, no?

> Use bind variables. And why are you using SQL and not a simple fetch spec?
> 
> Cheers, Anjo
> 
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Webobjects-dev mailing list      ([email protected])
> Help/Unsubscribe/Update your Subscription:
> http://lists.apple.com/mailman/options/webobjects-dev/lachlan.deck%40gmail.com
> 
> This email sent to [email protected]

with regards,
--

Lachlan Deck



 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to