Publishing on Twitpic

Hi all,
Currently I am working in an application that publish content in twitter and facebook. Part of this content is an image than I should upload to twitpic. To authenticate in twitter and twitpic, I’m using part of code that there is in the section ‘Code Exchange’. I’ve got to authenticate in both of them and to use theirs APIs. However, I’ve not got upload the image due to an error of image format.

Some of the things I’ve tried was:

  • Post the image as multipart (I’m not sure that I did it correctly).
  • Read an image using the Lua’s io and file API to load files in a variable and then use it as parameter of the Twitpic API.
  • Encode the image using the mime module
  • Another crazy things that I’m sure they have no sense :slight_smile:

Any idea of how do that???
Thanks a lot! [import]uid: 36211 topic_id: 8881 reply_id: 308881[/import]

Any luck with this? I too am having a hard time posting an image to twitter. Currently trying to do it with oAuth…I’d be willing to go through twitpic if their API worked. Thanks for any tips.
[import]uid: 88842 topic_id: 8881 reply_id: 92826[/import]