Re: Storing pictures in database ...how?
Re: Storing pictures in database ...how?
- Subject: Re: Storing pictures in database ...how?
- From: Moray Taylor <email@hidden>
- Date: Mon, 17 Nov 2003 13:17:21 +0000
What's the error message?
Moray
Hi,
I'm trying to store pictures in MySQL (using SMySQL.framework) with no
success. My code looks like:
(...)
props = [NSDictionary
dictionaryWithObjectsAndKeys:@"0.65",@"NSImageCompressionFactor",nil];
myNSData = [bitmap representationUsingType:NSJPEGFileType
properties:props];
(connecting etc.)
myQuery = [NSString stringWithFormat:@"insert into fota (foto) values
('%@');",[myConnection prepareBinaryData: myNSData]];
myResult = [myConnection queryString:myQuery];
...and nope, what's wrong with my code?
Any help greatly appreciated. Thanks in advance.
Leszek Nie
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.