문제

I am working in iOS native development using Objective C. I want to implement camera

functionality in my application. I implemented camera using UIImagePickerController. I

am able to take the image and store it in the photo library in iPAD.Now I have to store

it in BASE 64 format. And I am using SUP 2.1.3 as my middleware.For that what all

steps I have to do? Please help me to sort out this issue? For that We have to first convert

the image from IPAD to BASE 64 right? Please suggest something? How can I achieve this?

도움이 되었습니까?

해결책

You can get the image data using following code:

NSData* data = UIImageJPEGRepresentation(yourImage, 1.0f);
[Base64 initialize];
NSString *strEncoded = [Base64 encode:data];
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top