3

How do I send UIImage that I take from Camera Roll to html?

I'm able to send string right now using this library "https://github.com/marcuswestin/WebViewJavascriptBridge", I'm just having a hard time trying to send a UIImage.

Thank you,
Tee

teepusink
  • 27,444
  • 37
  • 107
  • 147
  • Check out the new JavascriptCore frameworks in iOS 7. It makes tons of Javascript/Obj-c stuff possible. – Linuxios Nov 01 '13 at 18:52

1 Answers1

2

Figured this out. I had to convert the image into base64.

teepusink
  • 27,444
  • 37
  • 107
  • 147
  • Hello, How did you do that? you have some code to share please ? i m working on it for long time but i couldnt figure this out, i need to send UIImage to javascript but i cannot do that yet . Thanks in advance – Yucel Bayram Jan 07 '14 at 14:04
  • I finally figured this out, encoded and decoded as you say, so i vote it up. Thanks for tip. http://stackoverflow.com/questions/11251340/convert-image-to-base64-string-in-ios this link is very helpful. – Yucel Bayram Jan 07 '14 at 15:00