Photo Help

126 views
Skip to first unread message

Steven Pears

unread,
Oct 31, 2011, 5:47:33 AM10/31/11
to tumbl...@googlegroups.com
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 is www.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

Jackalope Music

unread,
Nov 1, 2011, 10:19:08 AM11/1/11
to Tumblr API Discussion
Here: http://twitblog.tumblr.com/private/12196559838/tumblr_ltzjn5nbr21qck8s0
(I have it encoded to stretch/shrink the dimensions automatically to
500px.)

May I see your source code referencing just photo post?


On Oct 31, 4: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                                        

Steven Pears

unread,
Nov 1, 2011, 10:43:00 AM11/1/11
to tumbl...@googlegroups.com

Sorry, this is the image itself - I wanted to compare the actual encoded version that is sent in the photo post request, as that will allow me to see why the version I sent is being rejected by tumblr, I expect it's just a simple substitution mistake.
 
The code is using the Hammock Silverlight API - and so is of very little help to show what's happening.
 
Thanks in advance

Steven

Steven Pears

unread,
Nov 5, 2011, 11:26:17 AM11/5/11
to Tumblr API Discussion
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

Steven Pears

unread,
Nov 6, 2011, 8:25:00 AM11/6/11
to Tumblr API Discussion
I've just tried it with the URL-safe variant which gives me:

_9j_4AAQSkZJRgABAQEASABIAAD_2wBDAAYEBAQFBAYFBQYJBgUGCQsIBgYICwwKCgsKCgwQDAwMDAwMEAwODxAPDgwTExQUExMcGxsbHCAgICAgICAgICD_2wBDAQcHBw0MDRgQEBgaFREVGiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICD_wAARCAACAAIDAREAAhEBAxEB_8QAFAABAAAAAAAAAAAAAAAAAAAACP_EABQQAQAAAAAAAAAAAAAAAAAAAAD_xAAUAQEAAAAAAAAAAAAAAAAAAAAA_8QAFBEBAAAAAAAAAAAAAAAAAAAAAP_aAAwDAQACEQMRAD8AVIP_2Q2

and still I get the same response from Tumblr.

mohacs

unread,
Nov 15, 2011, 5:52:12 AM11/15/11
to Tumblr API Discussion
did you find any solution?

Steven Pears

unread,
Nov 15, 2011, 8:32:07 AM11/15/11
to tumbl...@googlegroups.com
Nothing yet. The author of the Hammock library (really useful and easy to use .NET OAuth project) is ready to change his source code for large encoding of content, but he needs a working example of a small photo first.
 
Without some help from Tumblr I'm really stuck on this!

Mohac Bilecen

unread,
Nov 15, 2011, 9:28:24 AM11/15/11
to tumbl...@googlegroups.com
indeed you are right unfortunately they are not willing to help. 
i just need to know how should i encode the image file rest of the my code working fine. i able to post text, link etc. also  i did finish all information gathering classes.

most of people think we should put more than one data into parameters as like

data[0] = <image binary URL encoded str>
data[1] = <image binary URL encoded str>
.....N

however documentation says it should be array that's why i am thinking it should be like this

data = data[<unknown binary URL encoded str>]data[<unknown binary URL encoded str>].....N

thank you.

On Tue, Nov 15, 2011 at 3:32 PM, Steven Pears <steven...@live.co.uk> wrote:
Nothing yet. The author of the Hammock library (really useful and easy to use .NET OAuth project) is ready to change his source code for large encoding of content, but he needs a working example of a small photo first.
 
Without some help from Tumblr I'm really stuck on this!



--
Mohac BILECEN

Steven Pears

unread,
Nov 15, 2011, 11:03:43 AM11/15/11
to tumbl...@googlegroups.com
I'm honestly not sure, the documentation for V2 photo posts (I'm in the same boat as you, it's the only thing that doesn't post) is not quite as clear as V1 and really I'd like a request/response example rather than a specific programming language, then we could each adapt our code to produce their result.
 
Steven

GG

unread,
Jul 19, 2012, 6:31:30 PM7/19/12
to tumbl...@googlegroups.com
Any luck here?  Been banging my head over this all day. "Error uploading photo."
Reply all
Reply to author
Forward
0 new messages