Further information in case anyone on the Tumblr team can show me
where I'm going wrong (I'm sure it's something really obvious!)
So the image is the file found at
http://www.convr.co.uk/test.jpg
My converted image has the following string:
/9j/4AAQSkZJRgABAQEASABIAAD/
2wBDAAYEBAQFBAYFBQYJBgUGCQsIBgYICwwKCgsKCgwQDAwMDAwMEAwODxAPDgwTExQUExMcGxsbHCAgICAgICAgICD/
2wBDAQcHBw0MDRgQEBgaFREVGiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICD/
wAARCAACAAIDAREAAhEBAxEB/8QAFAABAAAAAAAAAAAAAAAAAAAACP/
EABQQAQAAAAAAAAAAAAAAAAAAAAD/xAAUAQEAAAAAAAAAAAAAAAAAAAAA/
8QAFBEBAAAAAAAAAAAAAAAAAAAAAP/aAAwDAQACEQMRAD8AVIP/2Q==
so my final post is:
type=photo&data%5B0%5D=%2F9j%2F4AAQSkZJRgABAQEASABIAAD
%2F2wBDAAYEBAQFBAYFBQYJBgUGCQsIBgYICwwKCgsKCgwQDAwMDAwMEAwODxAPDgwTExQUExMcGxsbHCAgICAgICAgICD
%2F2wBDAQcHBw0MDRgQEBgaFREVGiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICD
%2FwAARCAACAAIDAREAAhEBAxEB%2F8QAFAABAAAAAAAAAAAAAAAAAAAACP
%2FEABQQAQAAAAAAAAAAAAAAAAAAAAD%2FxAAUAQEAAAAAAAAAAAAAAAAAAAAA
%2F8QAFBEBAAAAAAAAAAAAAAAAAAAAAP%2FaAAwDAQACEQMRAD8AVIP%2F2Q%3D
%3D&state=draft
but the response I get back from Tumblr is:
{"meta":{"status":400,"msg":"Bad Request"},"response":{"errors":
["Error uploading photo."]}}
Could someone tell me why the photo data is invalid?
Thanks in advance
Steven Pears
On Oct 31, 9:47 am, Steven Pears <
steven.pe...@live.co.uk> wrote:
> Morning everyone! While I'm in discussion with my OAuth author about some tweaks for large photos, I thought I'd try and get a simple picture sample uploaded just so I could move forward with my testing - the problem is that every time I upload the photo I getn error in the tumblr response ("error saving photo" or similar - don't have the fiddler trace on this machine) The file I'm trying to encode & upload
iswww.convr.co.uk/test.jpg(an empty jpg, a few pixels each way) just to make sure the process is right. Would it be possible for someone to post a correctly encoded version of this file for me so I have a valid sample to compare against please? That way I can see where my .NET code is going wrong. Thanks in advance Steven