Need help with a FB Plugin

I have been writing a c++ facebook plugin (pc and mac) that I hope to bring to the community. I have been stuck on a single issue the past week and I am willing to pay a reasonable fee to someone that can figure it out. I have the login(oauth2), post to wall, get user data, etc, working… What I am stuck on is uploading an image from a file. The FB response is always:
“message”:“Invalid parameter”,“type”:“FacebookApiException”,“code”:100,“error_subcode”:1366046,“is_transient”:false,“error_user_title”:“Can’t Read Files”,“error_user_msg”:“Your photos couldn’t be uploaded. Photos should be less than 4 MB and saved as JPG, PNG, GIF or TIFF files.”

The image i try to send is about 50kb and I have tried all formats. I have tried so many different ways to send the file (Base64, binary, FString, c_str()), but I just cant figure it out.
So if you think this is something you would like to take a swing at for a few bucks, let me know…

Figured it out…

Having same issue

How did you figure out? please mention it… This will really help me to come out from this issue

Thanks,