vstirbu / InstagramPlugin

Instagram plugin for PhoneGap/Cordova
MIT License
120 stars 78 forks source link

jpg to Base64 dont work #37

Closed zhock closed 9 years ago

zhock commented 9 years ago

After struggling so long, i finally found the solution! my photos .jpg(like https://farm9.static.flickr.com/8774/17224261904_3608efc466_z.jpg) converted in base64 through PHP and than changed into InstagramPlugin with Ajax.

Problem: .jpg base64 photos can't be shared on instagram.

Solution: i changed them into data:images/png (data:image/png;base64,/9j/4AAQSkZJ...) in order to fool instagram and make it work.

will-holley commented 9 years ago

I don't understand what your problem nor solution was; Can you clarify?

vstirbu commented 9 years ago

@zhock Are you getting the image from an external service?