Storing pictures in database ...how?
Storing pictures in database ...how?
- Subject: Storing pictures in database ...how?
- From: leszek <email@hidden>
- Date: Mon, 17 Nov 2003 13:48:50 +0100
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.