• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: completely and utterly confused with NSImage + MySQL
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: completely and utterly confused with NSImage + MySQL


  • Subject: Re: completely and utterly confused with NSImage + MySQL
  • From: Andrew Farmer <email@hidden>
  • Date: Sat, 25 Feb 2006 00:31:36 -0800

On 24 Feb 06, at 20:36, Eric Smith wrote:
If I take [tempData cString], run it through mysql_real_escape_string and then read it back into an image, using [[NSImage alloc] initWithData:...], the result is just a *portion* of the original image. How much? It depends on the level of compression. If I save an uncompressed image to the database, it comes back out as an entire image. What is going on here?!! Anyone have any ideas?

Two words for you: Null bytes.

Attachment: PGP.sig
Description: This is a digitally signed message part

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: completely and utterly confused with NSImage + MySQL
      • From: Eric Smith <email@hidden>
References: 
 >completely and utterly confused with NSImage + MySQL (From: Eric Smith <email@hidden>)

  • Prev by Date: Re: How to Implement Finder - Search like functionality in my App
  • Next by Date: Re: How to Implement Finder - Search like functionality in my App
  • Previous by thread: completely and utterly confused with NSImage + MySQL
  • Next by thread: Re: completely and utterly confused with NSImage + MySQL
  • Index(es):
    • Date
    • Thread