ios - convert UIImage to NSString - without using encoding & decoding -


i want convert uiimage nsstring without using encoding , decoding methods. following code used.. please guide me.. here have used "encoding:nsasciistringencoding". don't want use. want use binary directly. possible ?

  uiimage *image = [[uiimage alloc]initwithdata:imagename];   nsdata *imagedatastring = uiimagepngrepresentation(image);   nsstring *content = [[nsstring alloc]initwithbytes:[imagedatastring bytes] length:[imagedatastring length] encoding:nsasciistringencoding]; 

thanks in advance.

if save binary file, why don't use nsdatas writetourl:atomically: method? if don't want save file - continue working nsdata. objective-c wrapper around raw binary data.


Comments

Popular posts from this blog

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -

php - Controller/JToolBar not working in Joomla 2.5 -