title: How to encode the image into string format?
body: <p>I am trying to encode an image by using the below code, but the encoded data is not correct.</p>
  
  <p>I am writing the code here. How can I change my code and get the correct encoded data?</p>
  
  <pre><code>NSData *imageData = UIImageJPEGRepresentation(myimages.image, 90);
  // NSData *encrypteddata = [imageData dataUsingEncoding:NSASCIIStringEncoding];
  NSString *encodedImage = [Base64 encode:imageData];
  NSLog(@"my encoded image is 6666%@",encodedImage);
  </code></pre>
  
  <p>It prints bulk data. And whenever I pass this code into URL an blank image is displayed instead of the original image.</p>